Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: upgrade mcp sdk to 1.24.3 (#10966)

Nimarea389f8c2839
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2f1f8d2c72..03a25acc50 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -59,7 +59,7 @@ importers:
next-auth:
specifier: ^4.24.12
zod:
specifier: ^3.25.62
version: 3.25.62
@@ -248,7 +248,7 @@ importers:
version: 4.1.1
next-auth:
specifier: ^4.24.12
nodemailer:
specifier: ^7.0.11
version: 7.0.11
@@ -398,8 +398,8 @@ importers:
specifier: ^1.2.1
version: 1.2.1
'@modelcontextprotocol/sdk':
- specifier: ^1.20.2
- version: 1.22.0(@cfworker/[email protected])
+ specifier: ^1.24.3
+ version: 1.24.3(@cfworker/[email protected])([email protected])
'@mui/material':
specifier: ^7.3.1
@@ -657,7 +657,7 @@ importers:
next-auth:
specifier: ^4.24.12
next-query-params:
specifier: ^5.1.0
@@ -3239,11 +3239,12 @@ packages:
'@microsoft/[email protected]':
resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==}
- '@modelcontextprotocol/[email protected]':
- resolution: {integrity: sha512-VUpl106XVTCpDmTBil2ehgJZjhyLY2QZikzF8NvTXtLRF1CvO5iEE2UNZdVIUer35vFOwMKYeUGbjJtvPWan3g==}
+ '@modelcontextprotocol/[email protected]':
+ resolution: {integrity: sha512-YgSHW29fuzKKAHTGe9zjNoo+yF8KaQPzDC2W9Pv41E7/57IfY+AMGJ/aDFlgTLcVVELoggKE4syABCE75u3NCw==}
engines: {node: '>=18'}
peerDependencies:
'@cfworker/json-schema': ^4.1.1
+ zod: ^3.25 || ^4.0
peerDependenciesMeta:
'@cfworker/json-schema':
optional: true
@@ -9390,10 +9391,6 @@ packages:
resolution: {integrity: sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==}
- resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==}
- engines: {node: '>= 0.8'}
-
resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==}
engines: {node: '>= 0.8'}
@@ -10058,6 +10055,9 @@ packages:
resolution: {integrity: sha512-1vUQX+IdDMVPj4k8kOxgUqlcK518yluMuGZwqlr44FS1ppZB/5GWh4rZG89erpOBOJjU/OBsnCVFfapsRz6nEA==}
+ resolution: {integrity: sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==}
+
resolution: {integrity: sha512-nbp/6jN2Ftxgw0VwoVnOg0m5qYM1rVcfvij+MZx99Z5IK13eGve9FJoCwGv+17JvVthTjhSmNtT5e1coJnr6aw==}
engines: {node: '>=12.20.0'}
@@ -12059,10 +12059,6 @@ packages:
resolution: {integrity: sha512-lWx2y8NBVlTOLPyqs+6y7dxfEpT6YFqKy3MzWbCy95sTTOhOuxufP2QvRyOHpfXpB9OUJPbVLybw3z3AVAS5fA==}
- resolution: {integrity: sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==}
- engines: {node: '>= 0.8'}
-
resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==}
engines: {node: '>= 0.10'}
@@ -12787,10 +12783,6 @@ packages:
resolution: {integrity: sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==}
- resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==}
- engines: {node: '>= 0.8'}
-
resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}
engines: {node: '>= 0.8'}
@@ -17844,7 +17836,7 @@ snapshots:
dependencies:
'@langchain/core': 0.3.58([email protected]([email protected]))
uuid: 10.0.0
- zod-to-json-schema: 3.23.5([email protected])
+ zod-to-json-schema: 3.25.0([email protected])
transitivePeerDependencies:
- zod
optional: true
@@ -17853,7 +17845,7 @@ snapshots:
dependencies:
'@langchain/core': 0.3.58([email protected]([email protected]))
uuid: 10.0.0
- zod-to-json-schema: 3.23.5([email protected])
+ zod-to-json-schema: 3.25.0([email protected])
transitivePeerDependencies:
- zod
@@ -18021,7 +18013,7 @@ snapshots:
'@microsoft/[email protected]': {}
- '@modelcontextprotocol/[email protected](@cfworker/[email protected])':
+ '@modelcontextprotocol/[email protected](@cfworker/[email protected])([email protected])':
dependencies:
ajv: 8.17.1
ajv-formats: 3.0.1([email protected])
@@ -18032,8 +18024,9 @@ snapshots:
eventsource-parser: 3.0.6
express: 5.2.1
express-rate-limit: 7.5.1([email protected])
+ jose: 6.1.3
pkce-challenge: 5.0.0
- raw-body: 3.0.0
+ raw-body: 3.0.2
zod: 3.25.62
zod-to-json-schema: 3.25.0([email protected])
optionalDependencies:
@@ -18210,7 +18203,7 @@ snapshots:
dependencies:
dependencies:
@@ -22277,7 +22270,7 @@ snapshots:
eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
eslint-plugin-eslint-comments: 3.2.0([email protected])
- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])
eslint-plugin-jsx-a11y: 6.8.0([email protected])
@@ -24519,7 +24512,7 @@ snapshots:
dependencies:
- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])
dependencies:
@@ -24550,7 +24543,7 @@ snapshots:
enhanced-resolve: 5.17.1
eslint: 8.57.0
- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])
fast-glob: 3.3.3
get-tsconfig: 4.10.1
is-core-module: 2.15.1
@@ -24583,16 +24576,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- debug: 3.2.7
- optionalDependencies:
- '@typescript-eslint/parser': 8.48.1([email protected])([email protected])
- eslint: 8.57.0
- eslint-import-resolver-node: 0.3.9
- transitivePeerDependencies:
- - supports-color
-
dependencies:
'@eslint-community/eslint-utils': 4.9.0([email protected])
@@ -24606,7 +24589,7 @@ snapshots:
eslint: 8.57.0
ignore: 5.3.2
dependencies:
array-includes: 3.1.7
array.prototype.findlastindex: 1.2.4
@@ -24616,7 +24599,7 @@ snapshots:
doctrine: 2.1.0
eslint: 8.57.0
eslint-import-resolver-node: 0.3.9
hasown: 2.0.2
is-core-module: 2.15.1
is-glob: 4.0.3
@@ -24627,7 +24610,7 @@ snapshots:
semver: 6.3.1
tsconfig-paths: 3.15.0
optionalDependencies:
- '@typescript-eslint/parser': 8.48.1([email protected])([email protected])
+ '@typescript-eslint/parser': 7.12.0([email protected])([email protected])
transitivePeerDependencies:
- eslint-import-resolver-typescript
- eslint-import-resolver-webpack
@@ -25054,7 +25037,7 @@ snapshots:
dependencies:
- debug: 4.3.4
+ debug: 4.4.3
get-stream: 5.2.0
yauzl: 2.10.0
optionalDependencies:
@@ -25644,14 +25627,6 @@ snapshots:
domutils: 3.2.2
entities: 4.5.0
- dependencies:
- depd: 2.0.0
- inherits: 2.0.4
- setprototypeof: 1.2.0
- statuses: 2.0.1
- toidentifier: 1.0.1
-
dependencies:
depd: 2.0.0
@@ -26593,6 +26568,8 @@ snapshots:
+
optionalDependencies:
'@babel/core': 7.28.5
@@ -27904,7 +27881,7 @@ snapshots:
dependencies:
type-fest: 2.19.0
dependencies:
'@babel/runtime': 7.28.4
'@panva/hkdf': 1.2.1
@@ -28919,13 +28896,6 @@ snapshots:
- dependencies:
- bytes: 3.1.2
- http-errors: 2.0.0
- iconv-lite: 0.6.3
- unpipe: 1.0.0
-
dependencies:
bytes: 3.1.2
@@ -29837,8 +29807,6 @@ snapshots:
-
diff --git a/web/package.json b/web/package.json
index cf93b538c7..3838608af2 100644
--- a/web/package.json
+++ b/web/package.json
@@ -42,7 +42,7 @@
"@langfuse/ee": "workspace:*",
"@langfuse/shared": "workspace:*",
"@lezer/highlight": "^1.2.1",
- "@modelcontextprotocol/sdk": "^1.20.2",
+ "@modelcontextprotocol/sdk": "^1.24.3",
"@mui/material": "^7.3.1",
"@mui/x-tree-view": "^8.17.0",
"@next-auth/prisma-adapter": "^1.0.7",
diff --git a/web/src/features/mcp/server/transport.ts b/web/src/features/mcp/server/transport.ts
index 7dfa82c28e..c98fa0684f 100644
--- a/web/src/features/mcp/server/transport.ts
+++ b/web/src/features/mcp/server/transport.ts
@@ -65,6 +65,7 @@ export async function handleMcpRequest(
const transport = new StreamableHTTPServerTransport({
sessionIdGenerator: undefined, // Stateless mode
enableJsonResponse: true, // Use JSON response (simpler for stateless mode)
+ enableDnsRebindingProtection: true, // CVE-2025-66414: Protect against DNS rebinding attacks
});
// Connect server to transport