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.
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
from mcp_use.client.task_managers.streamable_http import StreamableHttpConnectionManager
method init
Initialize a new streamable HTTP connection manager.Parameters
Timeout for HTTP operations in seconds
Timeout for HTTP 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, read_timeout: float = 300, auth: httpx.Auth | None = None, httpx_client_factory: mcp.shared._httpx_utils.McpHttpClientFactory | None = None):