Skip to main content

Module mcp_client

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).
McpServerCapabilities
Server-advertised MCP capabilities parsed from the initialize result. Sub-flags subscribe / listChanged are 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.