Skip to main content

Module http

Module http 

Source
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 OtherAdapter

This allows users to swap HTTP frameworks without changing their code.

Structs§

HttpServerConfig
Configuration for an HTTP MCP server
HttpServerInstance
A running HTTP server instance

Traits§

HttpServerAdapter
Trait for HTTP server implementations