Crate solidmcp

Source
Expand description

MCP (Model Context Protocol) Server Library

A standalone implementation of the Model Context Protocol server supporting both WebSocket and HTTP transports.

Re-exports§

pub use core::McpServer;
pub use protocol::McpProtocol;
pub use protocol_impl::McpProtocolHandlerImpl;
pub use tools::McpTools;
pub use handler::LogLevel;
pub use handler::McpContext;
pub use handler::McpHandler;
pub use handler::McpNotification;
pub use handler::PromptArgument;
pub use handler::PromptContent;
pub use handler::PromptInfo;
pub use handler::PromptMessage;
pub use handler::ResourceContent;
pub use handler::ResourceInfo;
pub use handler::ToolDefinition;
pub use handler::TypedToolDefinition;
pub use framework::FrameworkHandler;
pub use framework::McpServerBuilder;
pub use framework::PromptProvider;
pub use framework::ResourceProvider;
pub use websocket::handle_mcp_ws_main as handle_mcp_ws;

Modules§

core
MCP Server Core
framework
Simplified Framework API for Building MCP Servers
handler
MCP Handler Trait
handlers
MCP Protocol Handlers
http
MCP HTTP Handler
logging
MCP Debug Logging Module
protocol
MCP Protocol Implementation
protocol_impl
MCP Protocol Implementation
shared
MCP Protocol Engine
tools
MCP Tools Implementation
transport
Transport capability detection and negotiation for SolidMCP
validation
MCP Message Validation
websocket
MCP WebSocket Handler

Macros§

mcp_tool
Convenience macro for registering tools with less boilerplate

Traits§

JsonSchema
A type which can be described as a JSON Schema document.

Derive Macros§

JsonSchema
Derive macro for JsonSchema trait.