Skip to content

Bad Request of "Missing Session Id" from a stateful MCP server #1759

Description

@jzhouw

I used the MCP Client SDK and was trying to call a MCP server. With a test connection of calling the ListServerTools and got below response:

Response status code does not indicate success: 400 (Bad Request). Response body: {"jsonrpc":"2.0","id":"server-error","error":{"code":-32600,"message":"Bad Request: Missing session ID"}}

I have read the document here https://csharp.sdk.modelcontextprotocol.io/v1/concepts/stateless/stateless.html

In my understanding the client SDK should be able to handle the Mcp_Session_Id internally, or anything I have missed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproInsufficient information to reproduce

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions