Crate rust_mcp_sdk

Source

Modules§

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.

Macros§

tool_box
Generates an enum representing a toolbox with mcp tool variants and associated functionality.

Structs§

GenericSendError
A wrapper around a broadcast send error. This structure allows for generic error handling by boxing the underlying error into a type-erased form.
GenericWatchSendError
A wrapper around a broadcast send error. This structure allows for generic error handling by boxing the underlying error into a type-erased form.
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

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.
TransportError

Traits§

McpClient
McpDispatch
A trait for sending MCP messages.
McpServer
Transport
A trait representing the transport layer for MCP.

Type Aliases§

TransportResult