Module mcp_client
Expand description
MCP (Model Context Protocol) client — connects to external tool servers. Supports multiple transports: stdio (spawn local process), HTTP, and SSE.
Structs§
- McpRegistry
- Registry of all connected MCP servers, with a flat tool index.
- McpServer
- A live connection to one MCP server (any transport).
- McpServer
Capabilities - Server-advertised MCP capabilities parsed from the
initializeresult. Sub-flagssubscribe/listChangedare captured but currently unused (reserved for a future subscriptions spec).
Constants§
- MCP_
TOOL_ NAME_ SEPARATOR - Joins an MCP server’s name to one of its tools’ names in the callable name
the registry exposes:
<server>__<tool>. MCP tools join a tool registry after plugin tools, so the plugin host refuses any plugin tool name that contains this separator.