You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
serverInfo should be within Meta instead of serverDiscover result #3144
Yep good find! I've got a local branch to work on this, unfortunately it's a little trickier than just a simple schema change as it requires new stamping logic throughout the code 🙃
Fixed in #3143 and released in mcp 2.0.0 (DiscoverResult no longer has serverInfo; servers stamp io.modelcontextprotocol/serverInfo into every result's _meta, and Client.server_info reads it from there). Closing.
Initial Checks
Description
It seems like the MCP specs was updated to move serverInfo into the
_metafield (https://github.com/modelcontextprotocol/modelcontextprotocol/pull/3002/changes). This change is not currently reflected in the python sdk v2.The official schema seems to also reflect that (serverInfo was removed from DiscoverResult): https://github.com/modelcontextprotocol/modelcontextprotocol/blob/88191b9f574d67d553ea9372278a14e09d762f55/schema/draft/schema.ts#L678
Example Code
Python & MCP Python SDK