TheDocumentation Index
Fetch the complete documentation index at: https://nekzus-32.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
LiopClient class is the orchestrator for Agent Nodes. It connects your Node.js or edge application to the Kademlia DHT Mesh, validates cryptographic identities, and dispatches WebAssembly logic payloads directly to remote Data Nodes (Servers).
Unlike traditional REST clients that just <fetch> static JSON endpoints, a LiopClient literally pushes its logic functions across the internet to be executed natively at the server.
Initialization and Configuration
The client accepts optional TLS configuration for secure gRPC communication.Configuration Options
When creating aLiopClient, you may provide:
tls?(LiopTlsOptions): Optional TLS credentials for secure gRPC communication. If omitted, insecure transport is used (suitable for local development).
Connecting to the Mesh
Unlike MCP which requires a direct stdio pipe or a hardcoded SSE URL, LIOP uses decentralized peer-to-peer routing. libp2p handles NAT traversal automatically.Calling a Server Capability (Tool)
UseresolveCapability() to discover available servers on the DHT, then invoke tools via callTool() with a CallToolRequest object:
Creating Watchdogs (Push Subscriptions) [PLANNED]
This feature is on the roadmap but not yet implemented in the current SDK release.Watchdogs enable persistent push subscriptions. Instead of manually polling
callTool(), you will be able to deploy a persistent watcher module that pushes events asynchronously over multiplexed QUIC channels back to the agent. Track progress on the GitHub repository.
Cryptographic Validation (The ZK Shield)
While the network layer is encrypted using symmetric AES-256-GCM, theLiopClient fundamentally doubts the execution origin.
When callTool returns from the remote Data Node, the client performs ZK verification internally through its built-in LiopVerifier whenever receipts are present in the execution flow. The exposed callTool result remains MCP-compatible (content/isError). You can also manually verify when you have raw proof artifacts:
LiopMcpBridge automatically runs this validation natively on behalf of legacy MCP clients.
Lifecycle Management
Always close the client gracefully to release mesh resources:Error Handling & Zero-Trust Rejections
Because the Server enforces a strictWASI sandbox and uses the Zero-Time Guardian to inspect your .wasm payload BEFORE execution, your client must be prepared to handle sandbox rejections.
LiopError and ErrorCode are exported by the SDK and can be used by applications that normalize or re-wrap protocol errors. Current runtime paths may still throw native Error instances depending on context.