Expand description
In-process MCP server hosting.
Exposes Rust functions as MCP tools that the claude binary can call
during agentic work, following the SDK’s create_sdk_mcp_server and
@tool decorator model. The wire details were observed from the CLI
rather than specified.
Re-exports§
pub use protocol::JsonRpcRequest;pub use protocol::JsonRpcResponse;pub use protocol::JsonRpcResult;pub use protocol::McpError;pub use protocol::ServerInfo;pub use protocol::ToolDescription;pub use server::McpServer;pub use server::McpServerBuilder;pub use tool::Tool;pub use tool::ToolInput;pub use tool::ToolOutput;pub use tool::ToolOutputBlock;
Modules§
- macros
- Declarative
tool!macro for convenient Tool-trait impls. - orchestration 🔒
- Glue between
McpServerinstances and theclaudebinary. - protocol
- JSON-RPC 2.0 message types used by MCP.
- server
- The in-process MCP server.
- tool
- The
Tooltrait and its I/O types.