Skip to content

Surface negotiated protocolVersion through useInspectorClient #1324

Closed

Description

@cliffhall

Background

useInspectorClient returns status, capabilities, serverInfo, instructions — but not the protocolVersion the InspectorClient negotiated with the server. The MCP InitializeResult includes protocolVersion as a top-level field.

#1244's App.tsx builds an InitializeResult for InspectorView's connected header by hard-coding protocolVersion: "2025-06-18" since the hook doesn't expose the real value. That's a placeholder; the connected header doesn't read protocolVersion today, but as soon as anything wants to display "MCP 2025-06-18 over stdio" the hard-code becomes a bug.

Scope

  • Add protocolVersion?: string to UseInspectorClientResult in core/react/useInspectorClient.ts.
  • Track it via the existing serverInfoChange / capabilitiesChange event family, or add a dedicated protocolVersionChange event to InspectorClientEventMap if it can land independently of capabilities.
  • Update App.tsx (#1244) to read the value from the hook and drop the hard-coded "2025-06-18".

Out of scope

  • Negotiation strategy / version compatibility checks — separate concern.

Related

Activity

  1. added 2 commits that reference this issue on May 19, 2026
  2. self-assigned this
    on May 31, 2026
  3. linked a pull request that will close this issueExpose negotiated protocol version in v2 #1335on Jun 8, 2026
  4. added this to the v2.0.0 milestone on Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

v2Issues and PRs for v2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions