Skip to main content

Module http

Module http 

Source
Expand description

The actix adapter for /api/v0/mcp: maps HTTP requests to McpServer::handle and its responses back, streaming progress as server-sent events when the client accepts them.

Modules§

auth
Authentication for the MCP server at /api/v0/mcp, and the RFC 9728 metadata its 401 challenge points to.

Structs§

McpEndpoint
The MCP server with the state its tools run against, shared by every worker.

Constants§

MAX_REQUEST_BYTES 🔒
Room for upload_file’s largest file (25 MB) base64-encoded.

Functions§

accepts_event_stream 🔒
configure
Adds the endpoint’s route to a scope that is wrapped in auth::authenticate and has an McpEndpoint in its app data.
finished 🔒
The plain JSON answer of a call that finished before streaming started.
handle 🔒
has_progress_token 🔒
into_actix 🔒
request_state_key 🔒
A key for sealing requestState, derived from the JWT secret so that it can’t be used to forge the secret’s other signatures.
sse_event 🔒