DEV Community

Heinrich Neb
Heinrich Neb

Posted on Edited on

Is your MCP server still on the old protocol? Send it one server/discover request. If it answers -32601 Method not found, it only speaks the pre-July handshake. Mine did.

Top comments (1)

Collapse
 
heinrichneb profile image
Heinrich Neb •

The one-liner for a server that runs over stdio:

echo '{"jsonrpc":"2.0","id":1,"method":"server/discover","params":{}}' | npx -y <your-server>
Enter fullscreen mode Exit fullscreen mode

Some servers keep running after the input ends, stop them with Ctrl+C. What changed in the July spec, and why old and new can't talk to each other: Everyone calls it MCP 2.0. The spec never does