fix: upgrade @modelcontextprotocol/sdk to 1.28.0 for 2025-11-25 protocol support#12243
Draft
roomote-v0[bot] wants to merge 1 commit intomainfrom
Draft
fix: upgrade @modelcontextprotocol/sdk to 1.28.0 for 2025-11-25 protocol support#12243roomote-v0[bot] wants to merge 1 commit intomainfrom
roomote-v0[bot] wants to merge 1 commit intomainfrom
Conversation
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.
Related GitHub Issue
Closes: #11997
Description
This PR attempts to address Issue #11997. Feedback and guidance are welcome.
Changes:
@modelcontextprotocol/sdkfrom1.12.0to1.28.0insrc/package.jsonMcpToolCallResponsetype inpackages/types/src/mcp.tsto include the newresource_linkcontent type and optionalannotations/_metafields on content items introduced in the newer SDKWhy:
The MCP SDK v1.12.0 only supported protocol versions up to
2025-03-26. SDK v1.28.0 setsLATEST_PROTOCOL_VERSIONto2025-11-25and supports["2025-11-25", "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"], resolving the "Server's protocol version is not supported: 2025-11-25" error.Test Procedure
services/mcp/__tests__/McpHub.spec.tspassturbo check-types)turbo lint)Pre-Submission Checklist
Documentation Updates
Additional Notes
This is a semver-minor bump (1.12.0 -> 1.28.0) within the same major version. All existing imports (
Client,StdioClientTransport,getDefaultEnvironment,SSEClientTransport,StreamableHTTPClientTransport, and type schemas) remain available with the same module paths. The upgrade adds support for newer protocol versions while maintaining backward compatibility with older ones.Interactively review PR in Roo Code Cloud