Sse

data class Sse(val url: String, val sseEndpoint: String = "sse", val headers: Map<String, String> = emptyMap(), val timeout: Duration = Duration.ofSeconds(5), val sseReadTimeout: Duration = Duration.ofMinutes(5)) : McpConnectionParameters

Parameters for establishing a MCP Server-Sent Events (SSE) connection.

Prefer StreamableHttp. Use these parameters only for a server still on the phased-out 2024-11-05 protocol, which StreamableHttp does not fall back to.

Constructors

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

Properties

Link copied to clipboard

The headers to include in the request.

Link copied to clipboard

The SSE endpoint.

Link copied to clipboard

The SSE read timeout.

Link copied to clipboard

The connection timeout.

Link copied to clipboard
val url: String

The URL of the SSE server.