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
    struct
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::ServerJsonrpcNotification
    “Similar to JsonrpcNotification , but with the variants …
    struct field
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::ServerJsonrpcNotification::method
    ServerJsonrpcNotification -> String
    struct field
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::ServerJsonrpcNotification::notification
    ServerJsonrpcNotification -> NotificationFromServer
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::ServerJsonrpcNotification::clone
    &ServerJsonrpcNotification -> ServerJsonrpcNotification
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::ServerJsonrpcNotification::jsonrpc
    &ServerJsonrpcNotification -> &String
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::ServerJsonrpcNotification::serialize
    &ServerJsonrpcNotification, S -> Result
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::ServerJsonrpcNotification::fmt
    &ServerJsonrpcNotification, &mut Formatter -> Result<(), Error>
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::ServerJsonrpcNotification::new
    NotificationFromServer -> ServerJsonrpcNotification
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::ServerJsonrpcNotification::from
    ToolListChangedNotification -> ServerJsonrpcNotification
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::ServerJsonrpcNotification::from_str
    &str -> Result<ServerJsonrpcNotification>
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::ServerJsonrpcNotification::deserialize
    D -> Result<ServerJsonrpcNotification>
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::ServerMessage::as_notification
    ServerMessage -> Result<ServerJsonrpcNotification, RpcError>
    Converts the current message into a …
    method
    rust_mcp_sdk::schema::mcp_2025_06_18::schema_utils::ServerJsonrpcNotification::clone
    &ServerJsonrpcNotification -> ServerJsonrpcNotification