Skip to main content
Streamable HTTP connection management for MCP implementations. This module provides a connection manager for streamable HTTP-based MCP connections that ensures proper task isolation and resource cleanup.

StreamableHttpConnectionManager

method init

Initialize a new streamable HTTP connection manager.Parameters
str
required
The HTTP endpoint URL
dict[str, str] | None
default:"None"
Optional HTTP headers
float
default:"5"
Timeout for HTTP operations in seconds
float
default:"300"
Timeout for HTTP read operations in seconds
httpx.Auth | None
default:"None"
Optional httpx.Auth instance for authentication
mcp.shared._httpx_utils.McpHttpClientFactory | None
default:"None"
Custom HTTPX client factory for MCP
Signature