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 content_types::McpContent;
pub use content_types::McpResponse;
pub use content_types::ToMcpResponse;
pub use websocket::handle_mcp_ws_main as handle_mcp_ws;
Modules§
- content_
types - Type-safe MCP content types for tool responses
- core
- MCP Server Core
- framework
- High-level framework for building MCP (Model Context Protocol) servers with minimal boilerplate.
- handler
- MCP Handler Trait and Core Types
- 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 reduced boilerplate.
Traits§
- Json
Schema - A type which can be described as a JSON Schema document.
Derive Macros§
- Json
Schema - Derive macro for
JsonSchema
trait.