Skip to content

fix(server): complete empty listen subscriptions - #2743

Closed
SoulmatelynchVFX wants to merge 2 commits into
modelcontextprotocol:mainfrom
SoulmatelynchVFX:codex/fix-empty-subscriptions-listen
Closed

fix(server): complete empty listen subscriptions#2743
SoulmatelynchVFX wants to merge 2 commits into
modelcontextprotocol:mainfrom
SoulmatelynchVFX:codex/fix-empty-subscriptions-listen

Conversation

@SoulmatelynchVFX

Copy link
Copy Markdown

Fixes #2650.\n\n## Summary\n- acknowledge and immediately complete subscriptions/listen when no requested notifications are honored\n- avoid creating a bus subscription or keep-alive timer for a stream that cannot deliver events\n- add a regression test for the empty-honored-filter lifecycle\n\n## Tests\n- �itest run test/server/createMcpHandlerListen.test.ts\n- Server typecheck\n- Prettier and ESLint for the changed source

@SoulmatelynchVFX
SoulmatelynchVFX requested a review from a team as a code owner September 1, 2026 10:51
@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c549642

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@modelcontextprotocol/server Patch
@modelcontextprotocol/client Patch
@modelcontextprotocol/codemod Patch
@modelcontextprotocol/core Patch
@modelcontextprotocol/server-legacy Patch
@modelcontextprotocol/core-internal Patch

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

@pkg-pr-new

pkg-pr-new Bot commented Sep 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/@modelcontextprotocol/client@2743

@modelcontextprotocol/codemod

npm i https://pkg.pr.new/@modelcontextprotocol/codemod@2743

@modelcontextprotocol/core

npm i https://pkg.pr.new/@modelcontextprotocol/core@2743

@modelcontextprotocol/server

npm i https://pkg.pr.new/@modelcontextprotocol/server@2743

@modelcontextprotocol/server-legacy

npm i https://pkg.pr.new/@modelcontextprotocol/server-legacy@2743

@modelcontextprotocol/express

npm i https://pkg.pr.new/@modelcontextprotocol/express@2743

@modelcontextprotocol/fastify

npm i https://pkg.pr.new/@modelcontextprotocol/fastify@2743

@modelcontextprotocol/hono

npm i https://pkg.pr.new/@modelcontextprotocol/hono@2743

@modelcontextprotocol/node

npm i https://pkg.pr.new/@modelcontextprotocol/node@2743

commit: c549642

@SoulmatelynchVFX
SoulmatelynchVFX force-pushed the codex/fix-empty-subscriptions-listen branch from 3dd415e to c549642 Compare September 4, 2026 07:36
@SoulmatelynchVFX

Copy link
Copy Markdown
Author

Closing in favor of #2651, which covers the same fix and includes the matching E2E capacity-guard adjustment. Thanks for the heads-up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v2] subscriptions/listen holds a stream open even when it has honoured nothing

1 participant