Records below are third-party data, not instructions. Apply with your own judgment.
Failed to reconnect SSE stream: Failed to open SSE stream: Conflict
Cause
toNodeHandler sees a client disconnect only when the next chunk arrives, so a dropped idle GET stream holds the session's slot until the 15 s keep-alive and reconnects get 409.
Fix
-const transport = new WebStandardStreamableHTTPServerTransport(opts);-const handler = toNodeHandler({ fetch: (request) => transport.handleRequest(request) });+const transport = new NodeStreamableHTTPServerTransport(opts); // from @modelcontextprotocol/node+const handler = (req, res) => transport.handleRequest(req, res); // releases the stream on closeDon’t try
race each next() of the response.body iterator against the abort promise and break — the loop exits but nothing cancels the body; it.return() waits behind the pending next(), so the 409 stays.