Crate mcp_rs_sdk

Crate mcp_rs_sdk 

Source
Expand description

A Rust SDK for building agents for the Model Context Protocol (MCP).

Re-exports§

pub use agent::run_agent;
pub use types::FunctionCall;
pub use types::FunctionDefinition;
pub use types::GetContextRequest;
pub use types::GetContextResponse;
pub use types::Message;
pub use types::PartialResponse;
pub use types::Response;
pub use types::Role;
pub use types::Tool;
pub use types::ToolCall;
pub use types::ToolInputSchema;
pub use types::ToolResult;
pub use types::UserInfo;
pub use helpers::create_content_response;
pub use helpers::create_error_response;
pub use helpers::create_function_response;
pub use helpers::parse_function_args;

Modules§

agent
The agent module provides the main runner for an MCP agent.
error
Defines the custom error type for the MCP Rust SDK.
helpers
Contains helper functions to simplify common tasks when building an MCP agent.
types
Contains all the data structures that represent the Model-Context-Protocol specification.