-
Notifications
You must be signed in to change notification settings - Fork 64
Update MCP SDK to v1.23.0 with native zod v3/v4 compatibility #265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…karound Co-authored-by: christian-kreuzberger-dtx <56065213+christian-kreuzberger-dtx@users.noreply.github.com>
Co-authored-by: christian-kreuzberger-dtx <56065213+christian-kreuzberger-dtx@users.noreply.github.com>
📦 Package.json Changes DetectedThis PR modifies Checklist for Reviewers
Package.json Diffdiff --git a/package.json b/package.json
index bf1e1f0..059a74d 100644
--- a/package.json
+++ b/package.json
@@ -54,11 +54,11 @@
"@dynatrace-sdk/client-query": "^1.18.1",
"@dynatrace-sdk/shared-errors": "^1.0.0",
"@dynatrace/openkit-js": "^4.1.0",
- "@modelcontextprotocol/sdk": "^1.8.0",
+ "@modelcontextprotocol/sdk": "^1.23.0",
"commander": "^14.0.0",
"dt-app": "^1.3.1",
"open": "^8.4.2",
- "zod-to-json-schema": "~3.24.5"
+ "zod-to-json-schema": "^3.24.5"
},
"devDependencies": {
"@types/jest": "^30.0.0",
This comment was automatically generated by the PR Package.json Comment workflow. |
1 similar comment
📦 Package.json Changes DetectedThis PR modifies Checklist for Reviewers
Package.json Diffdiff --git a/package.json b/package.json
index bf1e1f0..059a74d 100644
--- a/package.json
+++ b/package.json
@@ -54,11 +54,11 @@
"@dynatrace-sdk/client-query": "^1.18.1",
"@dynatrace-sdk/shared-errors": "^1.0.0",
"@dynatrace/openkit-js": "^4.1.0",
- "@modelcontextprotocol/sdk": "^1.8.0",
+ "@modelcontextprotocol/sdk": "^1.23.0",
"commander": "^14.0.0",
"dt-app": "^1.3.1",
"open": "^8.4.2",
- "zod-to-json-schema": "~3.24.5"
+ "zod-to-json-schema": "^3.24.5"
},
"devDependencies": {
"@types/jest": "^30.0.0",
This comment was automatically generated by the PR Package.json Comment workflow. |
|
Snyk flags dt-app@1.3.1 and suggests an upgrade to 1.3.2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the MCP SDK from v1.8.0 to v1.23.0, which includes native support for both Zod v3 and v4. This enables the removal of the restrictive zod-to-json-schema version pinning workaround that was previously needed. The update also requires migrating from deprecated APIs to the new SDK interfaces.
Key Changes
- Dependency updates: Updated
@modelcontextprotocol/sdkto v1.23.0 and relaxedzod-to-json-schemaconstraint from~3.24.5to^3.24.5 - API migration: Migrated from deprecated
server.tool()toserver.registerTool()with type assertions to work around TypeScript deep type instantiation issues - SDK compliance fixes: Corrected
readonlyHinttoreadOnlyHintproperty casing and removedelicitationfrom server capabilities (it's a client capability)
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Updated MCP SDK to v1.23.0 and relaxed zod-to-json-schema version constraint |
| package-lock.json | Lock file updates reflecting new SDK version and its dependencies (ajv v8, zod v4 bundled in SDK) |
| src/index.ts | Migrated to new registerTool API, fixed property casing, removed unused import, and removed elicitation from server capabilities |
| CHANGELOG.md | Added entry documenting the MCP SDK update |
|
|
||
| ## Unreleased Changes | ||
|
|
||
| - Updated MCP SDK to v1.23.0 which includes native zod v3/v4 compatibility, enabling removal of the restrictive zod-to-json-schema version pinning workaround |
Copilot
AI
Dec 1, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changelog entry should provide more detail about the specific changes made. According to the project's changelog style guidelines, entries should include technical details relevant to users. Consider expanding this entry to mention:
- The MCP SDK API migration from deprecated
server.tool()toserver.registerTool() - The fix for
readonlyHint→readOnlyHintproperty casing - Removal of
elicitationfrom server capabilities
Example format:
- Updated MCP SDK to v1.23.0 which includes native zod v3/v4 compatibility
- Changed zod-to-json-schema version constraint from ~3.24.5 to ^3.24.5 (workaround no longer needed)
- Migrated from deprecated server.tool() API to server.registerTool() API
- Fixed readonlyHint property casing to readOnlyHint to match SDK specification
- Removed elicitation from server capabilities (it is a client capability)
MCP SDK v1.23.0 (released Nov 25, 2025) includes native zod v3/v4 compatibility via typescript-sdk#1040, allowing us to remove the restrictive version pinning workaround from #248 and #250.
Changes
Dependencies
@modelcontextprotocol/sdkfrom^1.8.0to^1.23.0zod-to-json-schemafrom~3.24.5to^3.24.5(workaround no longer needed)SDK API adaptation
elicitationfrom server capabilities (it's a client capability)readonlyHint→readOnlyHint(correct casing per SDK spec)server.tool()toserver.registerTool()APIThe
as anyassertion is required because the SDK's complex Zod type inference causes TypeScript heap exhaustion during compilation. Runtime behavior is correct.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com//advisories/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.