feat: expose negotiated protocol era and version in MCP server status - #451
Merged
Conversation
…tiation - swap @modelcontextprotocol/sdk@1.29.0 for @modelcontextprotocol/client@2.0.0 (+core, server dev-only); workspace zod ^4.2.0; drop stale v1 patch - remove StreamableHTTP->SSE fallback; Streamable HTTP failure is terminal - handler registration moved to method strings; oauth-provider types from client root; test mocks re-pointed to the v2 package root - ConfigMCPV1 local/remote gain optional protocol: auto|legacy|modern, mapped to ClientOptions.versionNegotiation (default auto probes server/discover with 2025 fallback; modern pins 2026-07-28) - regenerate JS SDK types; mcp auth diagnostics mirror the era mapping - behavior note: v2 removes transparent 404 session recovery and SSE-only (pre-2025-03-26) servers no longer connect; protocol: legacy is the escape hatch Closes#447Closes#448
refactor: upgrade MCP client to SDK v2 packages
LeXwDeX
marked this pull request as ready for review
August 26, 2026 03:28
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
Closes#450
Why
MCP SDK v2 迁移后,每个 server 协商出的协议 era(modern 2026-07-28 / legacy 2025-11-25)不可见,排障只能靠猜。
What changed
era/protocolVersion(未上报时整体缺席,早退裸 connected)mcp list渲染connected · modern (2026-07-28)Evidence
超流评审 PASS(0 P0/P1):oxlint 4814/4850 0 err;typecheck 绿;SDK regen 已提交;场景断言 era 出现/缺席规则。DAG workflow dag_fe5fc4380363FiaRrn7FiF0zed。