Crate rust_mcp_sdk Copy item path Source error macros mcp_client Includes the runtimes and traits required to create a type-safe MCP client. mcp_server Includes the runtimes and traits required to create a type-safe MCP server. tool_box Generates an enum representing a toolbox with mcp tool variants and associated functionality. MessageDispatcher Provides a dispatcher for sending MCP messages and handling responses. StdioTransport Implements a standard I/O transport for MCP communication. TransportOptions Configuration for the transport layer IOStream Enum representing a stream that can either be readable or writable.
This allows the reuse of the same traits for both MCP Server and MCP Client,
where the data direction is reversed. MCPClient MCPDispatch A trait for sending MCP messages. MCPServer Transport A trait representing the transport layer for MCP.