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))

Types

Link copied to clipboard
class Builder

Fluent builder for StreamableHttp, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

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 full URL of the MCP endpoint; its path is used as-is (e.g. https://host/tenant/service/mcp). A URL with no path falls back to the /mcp endpoint.

Functions

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.