# Interface StreamableHTTPConnectionParams

Defines the parameters for establishing a connection to an MCP server over HTTP using Server-Sent Events (SSE) for streaming.

Usage: const connectionParams: StreamableHTTPConnectionParams = { type: 'StreamableHTTPConnectionParams', url: 'http://localhost:8788/mcp' };

interface StreamableHTTPConnectionParams {
header?: Record<string, unknown>;
sseReadTimeout?: number;
terminateOnClose?: boolean;
timeout?: number;
transportOptions?: StreamableHTTPClientTransportOptions;
type: "StreamableHTTPConnectionParams";
url: string;
}

- Defined in tools/mcp/mcp_session_manager.ts:38

## Properties

### `Optional` header

header?: Record<string, unknown>

#### Deprecated

Use transportOptions.requestInit.headers instead. This field will be ignored if transportOptions is provided even if no headers are specified in transportOptions.

- Defined in tools/mcp/mcp_session_manager.ts:46

### `Optional` sseReadTimeout

sseReadTimeout?: number

- Defined in tools/mcp/mcp_session_manager.ts:48

### `Optional` terminateOnClose

terminateOnClose?: boolean

- Defined in tools/mcp/mcp_session_manager.ts:49

### `Optional` timeout

timeout?: number

- Defined in tools/mcp/mcp_session_manager.ts:47

### `Optional` transportOptions

transportOptions?: StreamableHTTPClientTransportOptions

- Defined in tools/mcp/mcp_session_manager.ts:50

### type

type: "StreamableHTTPConnectionParams"

- Defined in tools/mcp/mcp_session_manager.ts:39

### url

url: string

- Defined in tools/mcp/mcp_session_manager.ts:40