-
Notifications
You must be signed in to change notification settings - Fork 198
Open
Description
Create Ktor extensions for StreamableHttpServerTransport.
Server should support both stateful and stateless operation mode.
1. Application-level extensions.
API might look like. Naming is an open question
application {
routing {
mcpStreamableHttp(config: StreamableHttpServerTransport.Configuration) { mcpServer }
}
}2. Route-level extensions. API might look like
application {
install(SSE)
routing {
route("/mcp") {
mcpStreamableHttp(config: StreamableHttpServerTransport.Configuration) { mcpServer }
}
}
}Definition of Done:
For both (Application+Route level extensions) x (Statefull+stateless mode) = (4 combinations):
- Routes implemented
- Integration test for happy scenario
- Unit tests for route initialization, like this
Related PRs:
- Ktor extensions for streamable http #504 initial implementation
- feat: introduce StreamableHttpServerTransport.Configuration #560 streamable transport configuration
- refactor: replace flat parameter definitions with
StreamableHttpServerTransport.Configurationin Application Ktor extensions #563 - feat: Verify MCP endpoints with authentication for Streamable HTTP transport, test for SSE transport #535
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels