Trouble with Model Context Protocol session
LLM apps3 posts from 2 people2d active+00 posts in the last 7 days, 0 the 7 days before (fading)
Posts per day
The posts behind it
3, newest firsteverything: Streamable HTTP answers 400 instead of 404 for an unknown or terminated session## Problem For a request carrying an `Mcp-Session-Id` that the server does not know, or that was ended with `DELETE`, `transports/streamableHttp.ts` answers `400 Bad Request`. The spec (2025-11-25, Streamable HTTP, Session Management) says the server MUST respond `404 Not...modelcontextprotocol/servers · cliffhall1 repliesOpen ↗everything: Streamable HTTP SIGINT handler never closes a session (for...in over a Map)## Problem The shutdown handler in `transports/streamableHttp.ts` iterates the session `Map` with `for...in`, which yields no entries for a `Map`. On Ctrl-C the process logs and exits 0 without closing any transport, so open sessions are never cleaned up. ## Where it is pinned...modelcontextprotocol/servers · cliffhall1 repliesOpen ↗everything: subscriptions map never drops a disconnected sessionIn `src/everything/resources/subscriptions.ts`, `subscriptions` is a module-level `Map >`. A session id is added on `resources/subscribe` and removed only on `resources/unsubscribe`. Nothing removes it when the session ends. Both transports call `cleanup(sessionId)` from...modelcontextprotocol/servers · olaservo1 repliesOpen ↗
Companies and products named
About this problem
Evidence
3 posts from 2 people in 1 place, about 1 a week over 38 days. Mostly on modelcontextprotocol/servers.
Frustration Frustration 0 of 3· Seen on GitHub issues
How it was grouped
Posts about Model Context Protocol with no known issue, sharing the word "session". First post Aug 28, 2026, latest Oct 4, 2026. Corroborated: 3 or more posts from 2 or more people or places. Method
Other Model Context Protocol problems
Model Context Protocol tables suffer from small files and skewModel Context Protocol users keep filing bugsModel Context Protocol upgrades break working setupsTrouble with Model Context Protocol serverModel Context Protocol rate limits and usage caps block workModel Context Protocol fails to return valid structured outputTrouble with Model Context Protocol reportsModel Context Protocol vulnerabilities are hard to triage and patchTrouble with Model Context Protocol clientModel Context Protocol login, SSO or OAuth breaksModel Context Protocol compute costs spiral out of controlModel Context Protocol gives confidently wrong answers
History
unverified to corroborated
new to fading
Trouble with Model Context Protocol session (2 posts)