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, in MCP 2026-07-28: no initialize, and the version and capabilities ride in each request’s _meta.

Constants§

LEGACY_VERSIONS
The revisions that open with initialize; an unknown version asked there is answered with the first.
MODERN_VERSIONS
The stateless revisions: version and capabilities in every request’s _meta, no initialize.
PROTOCOL_VERSIONS
The MCP protocol versions isb serve speaks, newest 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.