Expand description
Model Context Protocol client and server adapters.
Layering: depends on kage-core, kage-jsonrpc, and kage-tools.
Re-exports§
pub use catalog::PromptMessage;pub use catalog::ResourceContents;pub use manager::McpManager;pub use oauth::TokenSource;pub use serve::ServeGate;pub use serve::serve;pub use server::McpConnection;pub use server::McpError;pub use server::McpServerHandle;pub use server::PROTOCOL_VERSION;pub use server::ServerRequestHandler;pub use tools::McpTool;pub use tools::McpToolDef;pub use tools::tools_from_connection;
Modules§
- catalog
- List and read an MCP server’s resources, resource templates and prompts.
- expand
- Expand MCP prompt commands and resource mentions in a user prompt.
- manager
- Own every configured MCP server and keep its tools registered.
- oauth
- OAuth 2.1 for remote MCP servers.
- serve
kage mcp serve: expose kage’s built-in tools as an MCP server.- server
- Spawn and handshake one external MCP server over stdio or HTTP.
- tools
- Discover an MCP server’s tools and expose them as kage tools.
Structs§
- McpResource
Tool - Lists a server’s cached resources and templates, or reads one resource by URI.
- Sampling
Policy - Shared sampling permission, including connections held by active runs.
Constants§
- RESOURCE_
TOOL - Name the model invokes.