Repository navigation
Closed
Description
Stack: SDK V2 + New Spec — 3 of 10 (the deepest connection-model change).
Make protocol era a first-class connection dimension. Today InspectorClient and the UI assume connect ⇒ initialize ⇒ negotiated capabilities + optional session id ⇒ session-scoped everything. On modern (≥2026-07-28) servers none of that exists.
Scope
- Per-server era config:
auto | legacy | pin-2026, defaulting not toauto(SDK docs warn debugging tools shouldn't auto-probe — it stalls on silent stdio legacy servers and pollutes transcripts). - Expose
getProtocolEra()/getNegotiatedProtocolVersion()(and optionally persistedgetDiscoverResult()) through the event target, state stores, anduseInspectorClient. - Transport type and era are orthogonal:
config.tsgetServerTypecurrently returns onlystdio | sse | streamable-http; carry era alongside it. The remote-transport protocol (/api/mcp/connect,/api/mcp/disconnect,RemoteSession) must carry both — and "connected" no longer implies a server-side session (nothing to DELETE on modern disconnect). - Capability gating source:
InspectorView.tsxgates tabs on theinitializeresult today; on modern, capabilities come fromserver/discover(or lazily from error responses). Add handling for-32021 MissingRequiredClientCapabilityand read theextensionsmaps on both sides. ConnectionInfoContentera-aware redesign: for modern servers there is no initialize result or session id — show theserver/discoverresult, the pinned/negotiated version, and "sessionless" explicitly. (Note: there is no session-id field in ConnectionInfo today, so this is additive.) Consider persistinggetDiscoverResult()in the catalog and passing it aspriorfor instant reconnects.
Key files
core/mcp/inspectorClient.ts, core/mcp/config.ts (getServerType), core/mcp/remote/node/server.ts + remote-session.ts, core/mcp/remote/*, clients/web/src/components/views/InspectorView/InspectorView.tsx, .../groups/ConnectionInfoContent/*.
Acceptance
- Era selectable per server; UI affordances gate on era, not just capabilities.
- Modern connect works sessionless; Connection Info shows discover/version/sessionless.
npm run cigreen.
Ref: specification/v2_new_spec_impact.md §7.1, §7.8, §8.3(negotiation), §9.1, §9.5(3).
Activity
Era-aware connection model & capability gating (#1626) (#1697)
cliffhall commentedon Jul 17, 2026
Merged via #1697 (squash-merged into v2/main as e026051). Follow-ups tracked in #1699 (flaky tests) and #1700 (modern-era test server for live modern-path testing).
Add modern-era (2026-07-28) test-server preset (#1700) (#1703)