Skip to main content

Module server

Module server 

Source
Expand description

MCP server implementation.

Modules§

adaptersNon-WebAssembly
Transport adapter patterns for connecting protocol handlers to various transports.
authNon-WebAssembly
Server-side authentication providers and middleware.
axum_routerstreamable-http
Axum Router convenience function for secure MCP server hosting. Axum Router convenience function for MCP servers.
batchNon-WebAssembly
Server-side batch request handling.
builderNon-WebAssembly
Builder pattern for constructing ServerCore instances.
builder_middleware_executorNon-WebAssembly
Builder-scoped middleware executor for workflow registration. Builder-scoped middleware executor for workflow registration.
cancellationNon-WebAssembly
Cancellation token infrastructure and the canonical RequestHandlerExtra request-context struct handed to every tool, prompt, and resource handler.
coreNon-WebAssembly
Transport-independent MCP server core implementation.
dynamicNon-WebAssembly
Dynamic server management for runtime configuration changes.
dynamic_resourcesNon-WebAssembly
Dynamic resource provider system for pattern-based resource routing. Dynamic resource provider system for pattern-based resource routing.
elicitationNon-WebAssembly
User input elicitation support for MCP servers (MCP 2025-11-25).
error_codesNon-WebAssembly
Standard error codes for validation with client elicitation support. Standard error codes for validation with client elicitation support
http_middlewareNon-WebAssembly
Server-side HTTP middleware for request/response interception.
limits
Configurable payload and resource limits for MCP servers.
mcp_appsmcp-apps and non-WebAssembly
MCP Apps Extension - Interactive UI support for multiple MCP hosts.
middleware_executorNon-WebAssembly
Middleware executor abstraction for consistent tool execution. Middleware executor abstraction for tool execution.
notification_debouncerNon-WebAssembly
Advanced notification debouncing system for MCP servers.
observabilityNon-WebAssembly
Observability infrastructure for tracing, metrics, and logging. Observability infrastructure for MCP servers.
path_validationNon-WebAssembly
Cross-platform path validation with security constraints. Cross-platform path validation with security constraints
presetNon-WebAssembly
Server middleware presets with sensible defaults.
progressNon-WebAssembly
Progress reporting support for long-running operations. Progress reporting support for long-running operations.
resource_watcherresource-watcher and non-WebAssembly
Resource watcher for monitoring file system changes.
rootsNon-WebAssembly
Server-side roots management.
schema_utilsschema-generation
Schema utilities for normalizing and inlining JSON schemas. Schema utilities for normalizing and inlining JSON schemas
schema_validationschema-validation
Runtime enforcement of a tool’s declared inputSchema at tools/call time (Phase 128, D-01).
simple_promptNon-WebAssembly
Simple prompt implementations with metadata support. Simple prompt implementations with metadata support.
simple_resourcesNon-WebAssembly
Simple resource implementations with builder pattern support. Simple resource implementations with builder pattern support.
simple_toolNon-WebAssembly
Simple tool implementations with schema support. Simple tool implementations with schema support.
stateNon-WebAssembly
State extractor for #[mcp_tool] shared state injection. State extractor for MCP tools.
streamable_http_serverstreamable-http and non-WebAssembly
Streamable HTTP server implementation for MCP.
subscriptionsNon-WebAssembly
Server-side resource subscription management.
task_storeNon-WebAssembly
SDK-level task store trait and in-memory implementation. SDK-level task store trait and in-memory implementation.
tasksNon-WebAssembly
Task routing trait for MCP Tasks integration. Task routing trait for MCP Tasks integration.
tool_middlewareNon-WebAssembly
Tool middleware for cross-cutting concerns in tool execution. Tool middleware for cross-cutting concerns in tool execution.
tower_layersstreamable-http
Tower middleware layers for MCP HTTP security (DNS rebinding, security headers). Tower middleware layers for MCP server security.
transportNon-WebAssembly
Server-specific transport implementations.
typed_promptNon-WebAssembly
Typed prompt implementations with automatic argument schema generation. Type-safe prompt implementations with automatic argument schema generation.
typed_toolNon-WebAssembly
Typed tool implementations with automatic schema generation. Type-safe tool implementations with automatic schema generation.
uiNon-WebAssembly
UI resource implementations for MCP Apps Extension (SEP-1865). UI resource builder for MCP Apps Extension (SEP-1865).
workflowNon-WebAssembly
Workflow-based prompt system with type-safe handles and ergonomic builders. Workflow-based prompt system

Structs§

ServerNon-WebAssembly
MCP server implementation.
ServerBuilderNon-WebAssembly
Builder for creating servers.

Enums§

ToolOutputNon-WebAssembly
Output of a ToolHandler call: either a plain value the server wraps into a CallToolResult, or a fully-formed CallToolResult the handler owns end-to-end.

Traits§

McpServerNon-WebAssembly
Trait for types annotated with #[mcp_server].
PromptHandler
Handler for prompt generation.
ResourceHandler
Handler for resource access.
SamplingHandler
Handler for message sampling (LLM operations).
ToolHandler
Handler for tool execution.