chore: Pin @modelcontextprotocol/sdk to exact 1.29.0#789
Merged
Conversation
Recent SDK upgrade from 1.25.2 to 1.29.0 happened transitively (via @modelcontextprotocol/ext-apps@1.7.0 peer dep ^1.29.0) without an explicit version-bump diff, shipping a behavior change in WebStandardStreamableHTTPServerTransport (now calls onerror on previously-silent 4xx paths) that surfaced as new [MCP Error] log spam in prod. Pin the direct dep to exact 1.29.0 and add overrides so transitive peer deps cannot bump it. Future bumps require an explicit edit and PR review. No runtime change: lockfile was already resolving to 1.29.0; only the npm semver range narrows.
jirispilka
approved these changes
May 5, 2026
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.
Context
Recent SDK upgrade from 1.25.2 → 1.29.0 happened transitively in #770 via
@modelcontextprotocol/ext-apps@1.7.0, whose peer dep tightened to^1.29.0. There was no explicit version-bump commit, so the change wasn't visible in PR review.The new SDK ships a behavior change in `WebStandardStreamableHTTPServerTransport` (SDK PR #1580, released in v1.27.1): previously-silent 4xx paths now call `transport.onerror`, which surfaces as new `[MCP Error]` log spam in production. Already mitigated for the SSE-conflict case in #787.
Solution
Pin `@modelcontextprotocol/sdk` to exact `1.29.0` and add an `overrides` entry so transitive peer deps can't bump it. Future SDK bumps now require an explicit, reviewable edit.
Worth your attention