Skip to content

Streamable-HTTP invalid protocol version #374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
imaai opened this issue May 4, 2025 · 3 comments · Fixed by #377
Closed

Streamable-HTTP invalid protocol version #374

imaai opened this issue May 4, 2025 · 3 comments · Fixed by #377
Labels
bug Something isn't working

Comments

@imaai
Copy link

imaai commented May 4, 2025

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,
}
@imaai imaai added the bug Something isn't working label May 4, 2025
@imaai
Copy link
Author

imaai commented May 4, 2025

This happens because of outdated sdk package.

"dependencies": {
	"@modelcontextprotocol/sdk": "=1.10.2"
}

On 1.11.0 works as expected.

@kavinkumar807
Copy link
Contributor

@cliffhall @olaservo Raised PR

@cliffhall
Copy link
Contributor

cliffhall commented May 5, 2025

This was fixed in the latest protocol release, and we will be updating that in the inspector this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants