You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f7af617
Browse filesBrowse the repository at this point in the historyBrowse files
fix(everything): answer unknown and duplicate SSE sessions
The HTTP+SSE transport left POST /message for an unknown session and a
second GET /sse for a live session unanswered, and GET /sse with an
unknown sessionId threw a TypeError that Express turned into a 500.
Each now gets a prompt JSON-RPC error response: 404 for an unknown
session (POST or GET), 400 for a POST with no sessionId, and 409 for a
GET /sse naming a session that already has its stream. A rejected
GET /sse no longer builds a server it never connects.
The pinning tests in sse.test.ts now assert these responses, and their
KNOWN BUG modelcontextprotocol#4981 markers are removed.
Closesmodelcontextprotocol#4981
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: cliffhall <[email protected]>
The HTTP+SSE transport now answers requests for sessions it cannot serve instead of leaving them hanging or failing with a 500: `POST /message` for an unknown session returns `404` (and `400` with no `sessionId`), and `GET /sse?sessionId=…` returns `409` for a session that already has its stream and `404` for an unknown one. Each carries a JSON-RPC error body.
0 commit comments