mcp Sse Transport
fun HttpClient.mcpSseTransport(urlString: String? = null, reconnectionTime: Duration? = null, requestBuilder: HttpRequestBuilder.() -> Unit = {}): SSEClientTransport(source)
Returns a new SSE transport for the Model Context Protocol using the provided HttpClient.
Return
A SSEClientTransport configured for MCP communication.
Parameters
url String
Optional URL of the MCP server.
reconnection Time
Optional duration to wait before attempting to reconnect.
request Builder
Optional lambda to configure the HTTP request.