Expand description
Reusable inbound HTTP MCP transport lifecycle helpers.
Computes the RMCP Streamable HTTP allow-listed Host/Origin values and
builds the transport config/service from primitive bind/config values —
no product config type required. A product adapter owns extracting those
primitives from its own config struct; this module owns the deterministic
computation and the RMCP transport wiring.
Structs§
- Allowed
Hosts Input - Inputs needed to compute the allow-listed
Hostheader values for an inbound MCP HTTP server. - Allowed
Origins Input - Inputs needed to compute the allow-listed
Originheader values for an inbound MCP HTTP server.
Functions§
- allowed_
hosts - allowed_
origins - streamable_
http_ config - streamable_
http_ service - Build a [
StreamableHttpService] for any [ServerHandler], given a factory that produces a fresh handler per session and a transport config (seestreamable_http_config).