Skip to content

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
feature/upgrade-mcp-sdk-protocol-2025-11-25
Draft

fix: upgrade @modelcontextprotocol/sdk to 1.28.0 for 2025-11-25 protocol support#12243
roomote-v0[bot] wants to merge 1 commit intomainfrom
feature/upgrade-mcp-sdk-protocol-2025-11-25

Conversation

@roomote-v0
Copy link
Copy Markdown
Contributor

@roomote-v0 roomote-v0 Bot commented Apr 30, 2026

Related GitHub Issue

Closes: #11997

Description

This PR attempts to address Issue #11997. Feedback and guidance are welcome.

Changes:

  • Upgraded @modelcontextprotocol/sdk from 1.12.0 to 1.28.0 in src/package.json
  • Updated McpToolCallResponse type in packages/types/src/mcp.ts to include the new resource_link content type and optional annotations/_meta fields on content items introduced in the newer SDK

Why:
The MCP SDK v1.12.0 only supported protocol versions up to 2025-03-26. SDK v1.28.0 sets LATEST_PROTOCOL_VERSION to 2025-11-25 and 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

  • All 47 existing MCP tests in services/mcp/__tests__/McpHub.spec.ts pass
  • All 108 ClineProvider tests pass (102 passed, 6 skipped as before)
  • Full type checking passes across all packages (turbo check-types)
  • Full linting passes across all packages (turbo lint)

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Documentation Impact: I have considered if my changes require documentation updates.
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Documentation Updates

  • No documentation updates are required.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Doesn't support MCP 2025-11-25 protocol version

1 participant