Crate rust_mcp_sdk
SourceModules§
- 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.
- schema
Macros§
- tool_
box - Generates an enum representing a toolbox with mcp tool variants and associated functionality.
Structs§
- Client
SseTransport - Client-side Server-Sent Events (SSE) transport implementation
- Client
SseTransport Options - Configuration options for the Client SSE Transport
- Generic
Send Error - A wrapper around a broadcast send error. This structure allows for generic error handling by boxing the underlying error into a type-erased form.
- Generic
Watch Send Error - A wrapper around a broadcast send error. This structure allows for generic error handling by boxing the underlying error into a type-erased form.
- Message
Dispatcher - Provides a dispatcher for sending MCP messages and handling responses.
- SseTransport
- Stdio
Transport - Implements a standard I/O transport for MCP communication.
- Transport
Options - Configuration for the transport layer
Enums§
- 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.
- Transport
Error
Traits§
- McpClient
- McpDispatch
- A trait for sending MCP messages.
- McpServer
- Transport
- A trait representing the transport layer for MCP.