StreamableHttp

data class StreamableHttp(val url: String, val headers: Map<String, String> = emptyMap(), val timeout: Duration = Duration.ofSeconds(5), val readTimeout: Duration = Duration.ofMinutes(5)) : McpConnectionParameters

Parameters for establishing a MCP Streamable HTTP connection.

Constructors

Link copied to clipboard
constructor(url: String, headers: Map<String, String> = emptyMap(), timeout: Duration = Duration.ofSeconds(5), readTimeout: Duration = Duration.ofMinutes(5))

Properties

Link copied to clipboard

The headers to include in the request.

Link copied to clipboard

The read timeout.

Link copied to clipboard

The connection timeout.

Link copied to clipboard
val url: String

The URL of the HTTP server.