# SSEConnection

> **Class** in `langchain_mcp_adapters`

📖 [View in docs](https://reference.langchain.com/python/langchain-mcp-adapters/sessions/SSEConnection)

Configuration for Server-Sent Events (SSE) transport connections to MCP.

## Signature

```python
SSEConnection()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    transport: Literal['sse'],
    url: str,
    headers: NotRequired[dict[str, Any] | None],
    timeout: NotRequired[float],
    sse_read_timeout: NotRequired[float],
    session_kwargs: NotRequired[dict[str, Any] | None],
    httpx_client_factory: NotRequired[McpHttpClientFactory | None],
    auth: NotRequired[httpx.Auth],
)
```

| Name | Type |
|------|------|
| `transport` | `Literal['sse']` |
| `url` | `str` |
| `headers` | `NotRequired[dict[str, Any] \| None]` |
| `timeout` | `NotRequired[float]` |
| `sse_read_timeout` | `NotRequired[float]` |
| `session_kwargs` | `NotRequired[dict[str, Any] \| None]` |
| `httpx_client_factory` | `NotRequired[McpHttpClientFactory \| None]` |
| `auth` | `NotRequired[httpx.Auth]` |


## Properties

- `transport`
- `url`
- `headers`
- `timeout`
- `sse_read_timeout`
- `session_kwargs`
- `httpx_client_factory`
- `auth`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-mcp-adapters/blob/8f580f029fabd78891ea4dbfd1de3b1d9e4fa001/langchain_mcp_adapters/sessions.py#L130)