Skip to content

fix(deps): Bump @modelcontextprotocol/server to 2.4.0 for fast-uri 3.1.8 - #1758

Merged
BYK merged 1 commit into
mainfrom
fix/mcp-server-sdk-fast-uri
Oct 30, 2026
Merged

BYK merged 1 commit into
mainfrom
fix/mcp-server-sdk-fast-uri

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

@modelcontextprotocol/server ships a prebuilt ajv provider with its own copy of fast-uri inlined. In 2.3.0 that copy is fast-uri 3.1.0, which is affected by the CVEs listed in #1752. Our ajv@8.20.0>fast-uri override only covers the normal ajv dependency, so it never reached the inlined copy. 2.4.0 is the first release that inlines a fixed fast-uri (3.1.8).

The catalog pin covers both mcp-core and mcp-cloudflare, so this fixes the stdio package, the hosted Worker, and sentry mcp in the CLI. In the hosted context, agents@0.20.1 also resolves its @modelcontextprotocol/server peer to 2.4.0 now. The only 2.0.0 copy left comes in through @mastra/core, and none of the bundles below include it.

Checked locally by looking for code that only fast-uri 3.1.0 has (normalizeComponentEncoding) and code that only 3.1.8 has (URI scheme is malformed.) in each build output:

Build 3.1.0 code 3.1.8 code
mcp-cloudflare Worker (dist/sentry_mcp/index.js) none present
@sentry/mcp-server (dist/index.js, dist/index.cjs) none present
CLI npm bundle (dist/index.cjs, dist/index.mjs) none present

Before this change, the CLI npm bundle still had the 3.1.0 code.

mcp-core and mcp-cloudflare tests and tsc pass locally. The fix only reaches users once a new @sentry/mcp-server is published.

Fixes #1752

via BYK.

--

View Session in Sentry

@modelcontextprotocol/server 2.3.0 inlines fast-uri 3.1.0 in its prebuilt
ajv provider, so the ajv>fast-uri override never reached that copy. 2.4.0
is the first release that embeds a fixed fast-uri (3.1.8).

Fixes #1752

Co-Authored-By: BYK <burak.kaya@sentry.io>
@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-local Ready Ready Preview Oct 30, 2026 7:27pm UTC

Request Review

@BYK
BYK enabled auto-merge (squash) October 30, 2026 19:28
@BYK
BYK merged commit 372c7d4 into main Oct 30, 2026
41 checks passed
@BYK
BYK deleted the fix/mcp-server-sdk-fast-uri branch October 30, 2026 19:40

This branch was successfully deployed

1 active deployment
Preview — 7a2b2adb Deployed Oct 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@sentry/mcp-server bundles fast-uri 3.1.0 through @modelcontextprotocol/server 2.0.0

1 participant