0.9.0
·
58 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
What's Changed
Breaking Changes
- Server call handlers now receive a
RequestContext— handler lambdas for tools, prompts, and resources have a newcontextparameter providing access to request metadata (#515) by @rnett - Ktor extension functions moved from
RoutingtoRoute— update call sites:routing { mcpSse() }→route("/mcp") { mcpSse() }or use directly in anyRouteblock (#531) by @kpavlov StdioServerTransportrethrowsCancellationException— cancellation is no longer silently swallowed;ReadBufferparsing was also fixed (#571) by @kpavlov
New Features
kotlin-sdk-testingmodule — new artifact providing an in-process, channel-basedTestClientTransport/TestServerTransportfor unit testing MCP servers and clients without network I/O (#505) by @kpavlovStreamableHttpServerTransport.Configuration— configurable builder for the Streamable HTTP server transport (timeouts, session handling, etc.) (#560) by @kpavlov- Ktor extensions for Streamable HTTP —
mcpStreamableHttp()Ktor plugin and routing DSL for mounting a Streamable HTTP MCP server (#504 by @devcrocod, #568 by @kpavlov) $defssupport inToolSchema— JSON Schema$defs/ definitions can now be expressed in tool input schemas (#526) by @i1bro
Bug Fixes
- Fixed SSE transport endpoint resolution for non-root mount paths (#565) by @Amaneusz
- Fixed
StdioClientTransporthanging indefinitely by adding proper read timeouts (#528) by @kpavlov
Improvements
- Introduced
AbstractClientTransportbase class, simplifying client transport lifecycle management (#516) by @kpavlov - Deprecation cycle started — annotated APIs scheduled for removal in a future release (#498) by @devcrocod
- Detekt static analysis integrated into CI (#493, #507) by @kpavlov
- Code coverage reporting added via Codecov (#579, #580) by @kpavlov
- Flaky
StdioClientTransporttests replaced with real stdin pipe–based tests (#508) by @kpavlov
Dependency Updates
- Kotest 6.1.2, MockK 1.14.9, AtomicFU 0.31.0, Gradle 9.3.1, Kover 0.9.7
New Contributors
- @jskjw157 made their first contribution in #486
- @i1bro made their first contribution in #526
- @localden made their first contribution in #536
- @aozherelyeva made their first contribution in #551
- @rnett made their first contribution in #515
- @Amaneusz made their first contribution in #565
Full Changelog: 0.8.4...0.9.0