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::authenticateand has anMcpEndpointin 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 🔒