mcp Sse
suspend fun HttpClient.mcpSse(urlString: String? = null, reconnectionTime: Duration? = null, requestBuilder: HttpRequestBuilder.() -> Unit = {}): Client(source)
Creates and connects an MCP client over SSE using the provided HttpClient.
Return
A connected Client ready 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.