Package-level declarations
Types
Represents a connection interface between a server and a client, enabling communication through notifications, requests, and other operations. This interface defines various methods to facilitate the interaction.
Interface for resumability support via event storage
A wrapper class representing a registered prompt on the server.
A wrapper class representing a registered resource on the server.
A wrapper class representing a registered tool on the server.
An MCP server is responsible for storing features and handling new connections.
Configuration options for the MCP server.
Represents a server session.
Server transport for SSE: this will send messages over an SSE connection and receive messages from HTTP POST requests.
A server transport that communicates with a client via standard I/O.
Server transport for Streamable HTTP: this implements the MCP Streamable HTTP transport specification. It supports both SSE streaming and direct HTTP responses.
Server-side implementation of the MCP (Model Context Protocol) transport over WebSocket.
Functions
Configures the Ktor Application to handle Model Context Protocol (MCP) over Server-Sent Events (SSE) Transport and sets up routing with the provided configuration block.
Registers MCP over Server-Sent Events (SSE) Transport endpoints on this Route.
Registers MCP over Server-Sent Events (SSE) Transport at the specified path on this Route.
Configures the Ktor Application to handle Model Context Protocol (MCP) over stateless Streamable HTTP Transport
Configures the Ktor Application to handle Model Context Protocol (MCP) over Streamable HTTP Transport
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.
Registers a WebSocket route that establishes an MCP (Model Context Protocol) server session.
Registers a WebSocket route at the specified path that establishes an MCP server session.
Registers a WebSocket route that creates an MCP server transport layer.
Registers a WebSocket route at the specified path that creates an MCP server transport layer.