Repository navigation
Conversation
Once serveStdio pins a connection to 2026-07-28, a later request whose envelope names another revision was still dispatched. Answer it with -32022 before the method runs. Unknown methods stay -32601 and a malformed envelope stays -32602.
🦋 Changeset detectedLatest commit: f393e61 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 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/core
@modelcontextprotocol/server
@modelcontextprotocol/server-legacy
@modelcontextprotocol/express
@modelcontextprotocol/fastify
@modelcontextprotocol/hono
@modelcontextprotocol/node
commit: |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3179
Once serveStdio pins a connection to 2026-07-28, a later request whose envelope names another revision was still dispatched. It's now answered with -32022 before the method runs. Unknown methods stay -32601 and a malformed envelope stays -32602.
Motivation and Context
After the pin, tools/list and server/discover returned normal results for a request naming an unsupported revision, and tools/call actually ran the tool. The HTTP entry already rejects these with -32022 (UnsupportedProtocolVersionError), so stdio was inconsistent with it.
How Has This Been Tested?
Added cases to packages/server/test/server/serveStdio.test.ts:
Server package build, lint and tests all pass (727 tests).
Breaking Changes
None. Requests naming 2026-07-28 behave as before; only requests that were wrongly dispatched now get -32022.
Types of changes
Checklist
Additional context
subscriptions/listen keeps the version check it already had. Patch changeset included for @modelcontextprotocol/server.