Docs.rs
  • rust-mcp-sdk-0.5.0
    • rust-mcp-sdk 0.5.0
    • Permalink
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • hashemix
    • Dependencies
      • async-trait ^0.1 normal
      • axum ^0.8 normal optional
      • axum-server ^0.7 normal optional
      • futures ^0.3 normal
      • hyper ^1.6.0 normal optional
      • rust-mcp-macros ^0.5.0 normal optional
      • rust-mcp-schema ^0.7 normal
      • rust-mcp-transport ^0.4.0 normal
      • serde ^1.0 normal
      • serde_json ^1.0 normal
      • thiserror ^2.0 normal
      • tokio ^1.4 normal
      • tokio-stream ^0.1 normal optional
      • tracing ^0.1 normal
      • uuid ^1 normal optional
      • reqwest ^0.12 dev
      • tracing-subscriber ^0.3 dev
    • Versions
    • 51.61% of the crate is documented
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate rust_mcp_sdk

rust_mcp_sdk0.5.0

  • All Items

Crate Items

  • Modules
  • Macros
  • Structs
  • Enums
  • Traits
  • Type Aliases

Crates

  • rust_mcp_sdk

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

Macros§

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

Structs§

ClientSseTransport
Client-side Server-Sent Events (SSE) transport implementation
ClientSseTransportOptions
Configuration options for the Client SSE Transport
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.
SseTransport
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§

SessionId
TransportResult

Results

Settings
Help
    enum
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::MessageFromServer
    An enum representing various types of messages that can be …
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::MessageFromServer::clone
    &MessageFromServer -> MessageFromServer
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::MessageFromServer::is_error
    &MessageFromServer -> bool
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::MessageFromServer::is_request
    &MessageFromServer -> bool
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::MessageFromServer::is_response
    &MessageFromServer -> bool
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::MessageFromServer::message_type
    &MessageFromServer -> MessageTypes
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::MessageFromServer::is_notification
    &MessageFromServer -> bool
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::MessageFromServer::serialize
    &MessageFromServer, __S -> Result
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::ServerMessage::from_message
    MessageFromServer, Option<RequestId> -> Result<ServerMessage, RpcError>
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::MessageFromServer::fmt
    &MessageFromServer, &mut Formatter -> Result<(), Error>
    method
    rust_mcp_sdk::MessageDispatcher::send
    &MessageDispatcher<ClientMessage>, MessageFromServer, Option<RequestId>, Option<Duration> -> Pin<Box<Future>>
    Sends a message from the server to the client and awaits a …
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::MessageFromServer::from
    ToolListChangedNotification -> MessageFromServer
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::MessageFromServer::clone
    &MessageFromServer -> MessageFromServer