mcpSseTransport
fun HttpClient.mcpSseTransport(urlString: String? = null, reconnectionTime: Duration? = null, requestBuilder: HttpRequestBuilder.() -> Unit = {}): SseClientTransport(source)
Deprecated
The SSE transport is deprecated in the MCP specification (SEP-2596) and will be removed in a future release. Use mcpStreamableHttpTransport instead.
Returns a new SSE transport for the Model Context Protocol using the provided HttpClient.
Return
A SseClientTransport configured for MCP communication.
Parameters
urlString
Optional URL of the MCP server.
reconnectionTime
Optional duration to wait before attempting to reconnect.
requestBuilder
Optional lambda to configure the HTTP request.