# McpConnectionParameters

sealed class McpConnectionParameters

Sealed class for holding MCP connection parameters.

#### Inheritors

Stdio
Sse
StreamableHttp

## Types

Sse
Link copied to clipboard
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.

Stdio
Link copied to clipboard
data class Stdio(val serverParameters: ServerParameters, val timeoutDuration: Duration = Duration.ofSeconds(5)) : McpConnectionParameters

Parameters for establishing a MCP Stdio connection.

StreamableHttp
Link copied to clipboard
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.