Expand description
HTTP Server Adapter for MCP
This module defines a pluggable interface for HTTP servers that expose MCP protocols. The adapter pattern allows different HTTP frameworks (axum, actix, warp, etc.) to be swapped without changing the MCPServerBuilder API.
§Design
MCPServerBuilder
↓
(configures)
↓
HttpServerAdapter (trait)
↓ (implements)
┌────┴────┬─────────────┐
↓ ↓ ↓
AxumAdapter ActixAdapter OtherAdapterThis allows users to swap HTTP frameworks without changing their code.
Structs§
- Bearer
Auth Context - Per-request context passed to a dynamic bearer-token authorizer.
- Http
Server Config - Configuration for an HTTP MCP server
- Http
Server Instance - A running HTTP server instance
Traits§
- Bearer
Token Authorizer - Dynamic bearer-token authorization hook for MCP HTTP transports.
- Http
Server Adapter - Trait for HTTP server implementations