Table of Contents

Class StreamableHttpTransport

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Streamable HTTP transport settings for a server-side MCP server.

public class StreamableHttpTransport
Inheritance
StreamableHttpTransport
Inherited Members
Extension Methods

Properties

Headers

HTTP headers sent with each request, for example authentication headers.

[JsonPropertyName("headers")]
public Dictionary<string, string>? Headers { get; set; }

Property Value

Dictionary<string, string>

SseReadTimeout

Timeout for reading server-sent events, as a duration string (for example "300s").

[JsonPropertyName("sseReadTimeout")]
public string? SseReadTimeout { get; set; }

Property Value

string

TerminateOnClose

Whether to close the session when the transport is closed.

[JsonPropertyName("terminateOnClose")]
public bool? TerminateOnClose { get; set; }

Property Value

bool?

Timeout

HTTP request timeout, as a duration string (for example "30s").

[JsonPropertyName("timeout")]
public string? Timeout { get; set; }

Property Value

string

Url

The URL of the MCP endpoint.

[JsonPropertyName("url")]
public string? Url { get; set; }

Property Value

string