Module streamable_http

Module streamable_http 

Source
Expand description

Streamable HTTP Transport for MCP 2025-06-18

This module implements the “Streamable HTTP” transport mechanism introduced in MCP 2025-03-26, which replaces the previous HTTP+SSE approach from 2024-11-05.

§Key Improvements over HTTP+SSE

  • Serverless Compatibility: Enables deployment on AWS Lambda, Google Cloud Run
  • Improved Scalability: Supports chunked transfer encoding and progressive delivery
  • Session Management: Cryptographically secure session IDs for connection tracking
  • Enterprise Network Friendly: No long-lived connections or polling requirements

Structs§

StreamableHttpContext
Streamable HTTP request context
StreamableHttpHandler
Streamable HTTP transport handler

Enums§

McpProtocolVersion
MCP Protocol versions
StreamableResponse
Streamable HTTP response types