mcp Web Socket Transport
fun HttpClient.mcpWebSocketTransport(urlString: String? = null, requestBuilder: HttpRequestBuilder.() -> Unit = {}): WebSocketClientTransport(source)
Returns a new WebSocket transport for the Model Context Protocol using the provided HttpClient.
Return
A WebSocketClientTransport configured for MCP communication.
Parameters
url String
Optional URL of the MCP server.
request Builder
Optional lambda to configure the HTTP request.