Skip to content

[v2] Spec mismatch: error when io.modelcontextprotocol/clientInfo is missing #2537

Description

@tobiasBora

What happened?

The v2 specs https://modelcontextprotocol.io/specification/draft/basic#_meta explains that clientInfo is optional. Yet, it produces an error for instance when used with serveStdio:

Invalid _meta envelope for protocol revision 2026-07-28: io.modelcontextprotocol/clientInfo: missing

What did you expect?

No error following the spec

Code to reproduce

Just take the MWE but removes io.modelcontextprotocol/clientInfo in the _meta field

SDK version

2.0.0-beta.4

Area

Server

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs confirmationNeeds confirmation that the PR is actually required or needed.v2Ideas, requests and plans for v2 of the SDK which will incorporate major changes and fixes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions