Skip to content

Streamable-HTTP invalid protocol version #374

Closed
@imaai

Description

@imaai

Inspector initialize with Streamable HTTP Transport uses old protocol version.

{
  jsonrpc: "2.0",
  id: 0,
  method: "initialize",
  params: {
    protocolVersion: "2024-11-05",
    capabilities: {
      sampling: [Object ...],
      roots: [Object ...],
    },
    clientInfo: {
      name: "mcp-inspector",
      version: "0.11.0",
    },
  },
}

For comparison here is an example client initialize using sdk.

import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";

const transport = new StreamableHTTPClientTransport(new URL("http://127.0.0.1:3000/mcp"));

const client = new Client(
    {
        name: "example-client",
        version: "1.0.0",
    }
);

await client.connect(transport);
{
  method: "initialize",
  params: {
    protocolVersion: "2025-03-26",
    capabilities: {},
    clientInfo: {
      name: "example-client",
      version: "1.0.0",
    },
  },
  jsonrpc: "2.0",
  id: 0,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions