About
The `ktor-server-mcp` library bridges the gap between the official MCP Kotlin SDK and Ktor's powerful session and authentication features. It allows developers to build robust MCP servers where tools can seamlessly access authenticated user sessions and principals. By integrating within Ktor's `authenticate {}` flow, it ensures MCP endpoints respect Ktor's security hierarchy, making it ideal for creating OAuth-protected MCP servers.