Expand description
MCP server implementation.
Modules§
- adapters
Non-WebAssembly - Transport adapter patterns for connecting protocol handlers to various transports.
- auth
Non-WebAssembly - Server-side authentication providers and middleware.
- axum_
router streamable-http - Axum Router convenience function for secure MCP server hosting. Axum Router convenience function for MCP servers.
- batch
Non-WebAssembly - Server-side batch request handling.
- builder
Non-WebAssembly - Builder pattern for constructing
ServerCoreinstances. - builder_
middleware_ executor Non-WebAssembly - Builder-scoped middleware executor for workflow registration. Builder-scoped middleware executor for workflow registration.
- cancellation
Non-WebAssembly - Cancellation token infrastructure and the canonical
RequestHandlerExtrarequest-context struct handed to every tool, prompt, and resource handler. - core
Non-WebAssembly - Transport-independent MCP server core implementation.
- dynamic
Non-WebAssembly - Dynamic server management for runtime configuration changes.
- dynamic_
resources Non-WebAssembly - Dynamic resource provider system for pattern-based resource routing. Dynamic resource provider system for pattern-based resource routing.
- elicitation
Non-WebAssembly - User input elicitation support for MCP servers (MCP 2025-11-25).
- error_
codes Non-WebAssembly - Standard error codes for validation with client elicitation support. Standard error codes for validation with client elicitation support
- http_
middleware Non-WebAssembly - Server-side HTTP middleware for request/response interception.
- limits
- Configurable payload and resource limits for MCP servers.
- mcp_
apps mcp-appsand non-WebAssembly - MCP Apps Extension - Interactive UI support for multiple MCP hosts.
- middleware_
executor Non-WebAssembly - Middleware executor abstraction for consistent tool execution. Middleware executor abstraction for tool execution.
- notification_
debouncer Non-WebAssembly - Advanced notification debouncing system for MCP servers.
- observability
Non-WebAssembly - Observability infrastructure for tracing, metrics, and logging. Observability infrastructure for MCP servers.
- path_
validation Non-WebAssembly - Cross-platform path validation with security constraints. Cross-platform path validation with security constraints
- preset
Non-WebAssembly - Server middleware presets with sensible defaults.
- progress
Non-WebAssembly - Progress reporting support for long-running operations. Progress reporting support for long-running operations.
- resource_
watcher resource-watcherand non-WebAssembly - Resource watcher for monitoring file system changes.
- roots
Non-WebAssembly - Server-side roots management.
- schema_
utils schema-generation - Schema utilities for normalizing and inlining JSON schemas. Schema utilities for normalizing and inlining JSON schemas
- schema_
validation schema-validation - Runtime enforcement of a tool’s declared
inputSchemaattools/calltime (Phase 128, D-01). - simple_
prompt Non-WebAssembly - Simple prompt implementations with metadata support. Simple prompt implementations with metadata support.
- simple_
resources Non-WebAssembly - Simple resource implementations with builder pattern support. Simple resource implementations with builder pattern support.
- simple_
tool Non-WebAssembly - Simple tool implementations with schema support. Simple tool implementations with schema support.
- state
Non-WebAssembly - State extractor for
#[mcp_tool]shared state injection. State extractor for MCP tools. - streamable_
http_ server streamable-httpand non-WebAssembly - Streamable HTTP server implementation for MCP.
- subscriptions
Non-WebAssembly - Server-side resource subscription management.
- task_
store Non-WebAssembly - SDK-level task store trait and in-memory implementation. SDK-level task store trait and in-memory implementation.
- tasks
Non-WebAssembly - Task routing trait for MCP Tasks integration. Task routing trait for MCP Tasks integration.
- tool_
middleware Non-WebAssembly - Tool middleware for cross-cutting concerns in tool execution. Tool middleware for cross-cutting concerns in tool execution.
- tower_
layers streamable-http - Tower middleware layers for MCP HTTP security (DNS rebinding, security headers). Tower middleware layers for MCP server security.
- transport
Non-WebAssembly - Server-specific transport implementations.
- typed_
prompt Non-WebAssembly - Typed prompt implementations with automatic argument schema generation. Type-safe prompt implementations with automatic argument schema generation.
- typed_
tool Non-WebAssembly - Typed tool implementations with automatic schema generation. Type-safe tool implementations with automatic schema generation.
- ui
Non-WebAssembly - UI resource implementations for MCP Apps Extension (SEP-1865). UI resource builder for MCP Apps Extension (SEP-1865).
- workflow
Non-WebAssembly - Workflow-based prompt system with type-safe handles and ergonomic builders. Workflow-based prompt system
Structs§
- Server
Non-WebAssembly - MCP server implementation.
- Server
Builder Non-WebAssembly - Builder for creating servers.
Enums§
- Tool
Output Non-WebAssembly - Output of a
ToolHandlercall: either a plain value the server wraps into aCallToolResult, or a fully-formedCallToolResultthe handler owns end-to-end.
Traits§
- McpServer
Non-WebAssembly - Trait for types annotated with
#[mcp_server]. - Prompt
Handler - Handler for prompt generation.
- Resource
Handler - Handler for resource access.
- Sampling
Handler - Handler for message sampling (LLM operations).
- Tool
Handler - Handler for tool execution.