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

SseConnectionManager

method init

Initialize a new SSE connection manager.Parameters
str
required
The SSE 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 SSE 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