# 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.

## Constructors

Sse
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

headers
Link copied to clipboard
val headers: Map<String, String>

The headers to include in the request.

sseEndpoint
Link copied to clipboard
val sseEndpoint: String

The SSE endpoint.

sseReadTimeout
Link copied to clipboard
val sseReadTimeout: Duration

The SSE read timeout.

timeout
Link copied to clipboard
val timeout: Duration

The connection timeout.

url
Link copied to clipboard
val url: String

The URL of the SSE server.