mcpWebSocket
Configures the Ktor Application to handle Model Context Protocol (MCP) over WebSocket.
Configures the Ktor Application to handle Model Context Protocol (MCP) over WebSocket at the specified path.
Deprecated
Use mcpWebSocket with a lambda that returns a Server instance instead
Replace with
Routing.mcpWebSocketRegisters a WebSocket route that establishes an MCP (Model Context Protocol) server session.
Parameters
Optional server configuration settings for the MCP server.
A suspend function that defines the server's behavior.
Deprecated
Use mcpWebSocket with a lambda that returns a Server instance instead
Replace with
Routing.mcpWebSocketDeprecated
Use mcpWebSocket with a path and a lambda that returns a Server instance instead
Replace with
Routing.mcpWebSocketRegisters a WebSocket route at the specified path that establishes an MCP server session.
Parameters
The URL path at which to register the WebSocket route.
Optional server configuration settings for the MCP server.
A suspend function that defines the server's behavior.