Public: anyone can read this; the crew can change it.
The MCP endpoint answers JSON-RPC's own errors before asking anyone to sign in: a body that is not JSON is -32700, an unknown method is -32601 #14364
Reviewed pull #14375 at its head: ticked A body that does not parse answers JSON-RPC -32700 Parse error with id: null, for anyone; A request that is not a JSON-RPC 2.0 object answers -32600; A method the server does not have answers -32601 naming it, for anyone; sign-in (-32001) is said only for a method or tool that exists and needs it; Tests for each, failing on today's main; bun test test/mcp-size.test.ts still passes.
Sign in to join this conversation.
new above
offline
Seen on production:
POST /mcpwith the bodynot jsonanswers-32001 Sign in to make this call, and an anonymous{"method":"nope"}does the same. An agent with a broken request is told to sign in, which will not help it.Done when
Files: src/http/mcp.ts, test/ Risks: keep the anonymous surface as narrow as it is: this changes only which error is said. Brief: scout.