Documentation Index
Fetch the complete documentation index at: https://docs.mcp-use.com/llms.txt
Use this file to discover all available pages before exploring further.
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
from mcp_use.client.task_managers.sse import SseConnectionManager
method init
Initialize a new SSE connection manager.Parameters
Timeout for HTTP operations in seconds
Timeout for SSE read operations in seconds
auth
httpx.Auth | None
default:"None"
Optional httpx.Auth instance for authentication
httpx_client_factory
mcp.shared._httpx_utils.McpHttpClientFactory | None
default:"None"
Custom HTTPX client factory for MCP
Signaturedef __init__(url: str, headers: dict[str, str] | None = None, timeout: float = 5, sse_read_timeout: float = 300, auth: httpx.Auth | None = None, httpx_client_factory: mcp.shared._httpx_utils.McpHttpClientFactory | None = None):