fix: replay request SSE responses after disconnect#2207
Conversation
🦋 Changeset detectedLatest commit: 68a6acf The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@modelcontextprotocol/client
@modelcontextprotocol/codemod
@modelcontextprotocol/server
@modelcontextprotocol/server-legacy
@modelcontextprotocol/express
@modelcontextprotocol/fastify
@modelcontextprotocol/hono
@modelcontextprotocol/node
commit: |
|
Added a changeset for @modelcontextprotocol/node and @modelcontextprotocol/server as patch releases. Validation for this follow-up: git diff --check; verified the changeset frontmatter and package names against packages/middleware/node/package.json and packages/server/package.json. The previous CI run was already green; this push only adds release metadata. |
a706b98 to
68a6acf
Compare
|
Rebased on current Validated locally:
The pre-push hook also completed the repo-wide build, typecheck, and lint steps successfully. |
Summary
closeSSEStream()detaches the active controllerLast-Event-IDTo verify
pnpm --filter @modelcontextprotocol/node test -- streamableHttp.test.ts -t closeSSEpnpm --filter @modelcontextprotocol/server test -- streamableHttp.test.tspnpm --filter @modelcontextprotocol/server typecheckpnpm --filter @modelcontextprotocol/node typecheckpnpm --filter @modelcontextprotocol/server lintpnpm --filter @modelcontextprotocol/node lintpnpm --filter @modelcontextprotocol/server buildpnpm --filter @modelcontextprotocol/node buildgit diff --check