Connection configuration for Streamable HTTP transport.
StreamableHttpConnection()| Name | Type |
|---|---|
| transport | Literal['streamable_http'] |
| url | str |
| headers | NotRequired[dict[str, Any] | None] |
| timeout | NotRequired[timedelta] |
| sse_read_timeout | NotRequired[timedelta] |
| terminate_on_close | NotRequired[bool] |
| session_kwargs | NotRequired[dict[str, Any] | None] |
| httpx_client_factory | NotRequired[McpHttpClientFactory | None] |
| auth | NotRequired[httpx.Auth] |
The URL of the endpoint to connect to.
HTTP headers to send to the endpoint.
HTTP timeout.
How long (in seconds) the client will wait for a new event before disconnecting.
All other HTTP operations are controlled by timeout.
Whether to terminate the session on close.
Additional keyword arguments to pass to the ClientSession.
Custom factory for httpx.AsyncClient (optional).
Optional authentication for the HTTP client.