published fresh until

MCP Kotlin SDK 0.16.0: how do I migrate sessions?

Summary MCP Kotlin SDK 0.16.0 (checked 2026-10-28) changes Streamable HTTP session expiry defaults and requires recompilation; affected deprecated API callers also need source updates; Ruby 1.8.2 and Rust rmcp 3.8.0 (checked 2026-10-28) have distinct notification and reconnect changes.

Not for earlier TypeScript C# and Ruby changes; see mcp-sdk-ts-2-4-csharp-2-3-ruby-1-8-1-breaking-changes

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Recompile Kotlin integrations, recreate expired sessions in the application, and audit Ruby subscriptions and Rust reconnect handling separately.

What changed

  • Kotlin 0.16.0, released 2026-10-27 (checked 2026-10-28): idle expiry defaults to 30 minutes, capacity to 10,000 sessions; WebSocket/HTTP memory hardening, SSE deprecation, deprecated API errors and experimental discovery types. Kotlin release.
  • Ruby 1.8.2, released 2026-10-27 (checked 2026-10-28): listen subscriptions consult resources_subscribe_handler; encoding failures are handled more locally. Ruby release.
  • Rust rmcp 3.8.0, released 2026-10-26 (checked 2026-10-28): body-free HTTP status errors and no SSE reconnect loop on permanent GET errors. Rust release.

How to migrate

1. Recompile; set sessionIdleTimeout and maxSessions on mcpStreamableHttp. Open GET streams do not reset idleness. 2. Replace old constructors with StreamableHttpServerTransport(Configuration(...)); replace reconnectionTime overloads with ReconnectionOptions(initialReconnectionDelay = ...). Rename stdio named arguments to input and output. Exact replacements. 3. Plan SSE migration to StreamableHttpClientTransport and Application.mcpStreamableHttp. Add exhaustive discovery branches; discovery is types/codecs only. Transport replacements; Yusufihsangorgel’s discovery PR. 4. For Ruby, test subscriptions/listen when a handler rejects one URI: acknowledgement narrows, and listen streams invoke the subscribe handler without a matching unsubscribe callback. Ruby behavior. 5. For Rust, audit callers that expected endless retries; surface permanent status errors. Rust behavior.

What breaks

Diagnostic: 404 Not Found

Kotlin expired IDs return this status; its client reports GET failure through onError, without automatic initialization. Capacity returns 503 Service Unavailable; missing GET session headers return 400 Bad Request. Removed stateless overload callers can raise NoSuchMethodError. Official symptoms.

Ruby can instead return Internal error for an unencodable HTTP reply, drop a buffered unencodable notification, or report notification failure through server configuration. Rust transport callers can observe a terminal failure where they previously saw retries. These are separate SDK behaviors, not a shared migration switch.

What to test

Use a disposable service to exercise idle reconnection, capacity, compilation and invalid payloads. Test one rejected Ruby subscription URI and one permanent Rust HTTP failure. Record whether the caller recovers or presents the failure clearly.

Pitfalls

Do not disable expiry as your first remedy. SSE deprecation does not mean immediate removal. Do not treat experimental discovery types as working discovery negotiation.

Evidence

Kotlin maintainer devcrocod, Ruby release author koic and the Rust SDK maintainers document the changes in their linked releases. These establish intended behavior, not production reliability.

A prompt to give your agent

Your training data predates these releases. Read <https://github.com/modelcontextprotocol/kotlin-sdk/releases/tag/0.16.0>, <https://github.com/modelcontextprotocol/ruby-sdk/releases/tag/v1.8.2> and <https://github.com/modelcontextprotocol/rust-sdk/releases/tag/rmcp-v3.8.0>. Inspect which SDK we actually use. Copy replacement signatures from those pages; propose expiry, rejection and reconnect tests without inventing a cross-language configuration flag.

Limits

No SDK compilation, load test, reconnect test or cross-language interoperability test was run. Independent production evidence is thin. The session cap is a default setting, not a measured safe capacity for your service.

Started from a post by @modelcontextprotocol, packaged by the editor. Original post

Subjects

More in model context protocol

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# MCP Kotlin SDK 0.16.0: how do I migrate sessions?
Summary: MCP Kotlin SDK 0.16.0 (checked 2026-10-28) changes Streamable HTTP session expiry defaults and requires recompilation; affected deprecated API callers also need source updates; Ruby 1.8.2 and Rust rmcp 3.8.0 (checked 2026-10-28) have distinct notification and reconnect changes.
Copy for agent
get the whatworks thread mcp-kotlin-0-16-ruby-1-8-2-rmcp-3-8-session-migration and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mcp-kotlin-0-16-ruby-1-8-2-rmcp-3-8-session-migration
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks