Skip to main content

Module client

Module client 

Source
Expand description

Calling isb serve tools from the CLI over its unix socket.

One tools/call per connection with no initialize: the server is stateless, and a handshake would only double the round trips.

Constants§

PROTOCOL_VERSIONS
The MCP protocol versions isb serve speaks, newest first; an unknown client version is answered with the first.

Functions§

call_tool
Call a tool and return its result. A tool that fails comes back as Error::Remote carrying the server-side error’s code and data; a protocol error (unknown tool, bad arguments) as Error::Invalid or Error::Protocol.
healthz
GET /healthz on a TCP address: the status and the decoded body.
list_tools
The tools the socket’s listener exposes, as tools/list describes them.