Answer 1
Link to this answerSet Accept: application/json, text/event-stream on the POST, and send the JSON-RPC request with Content-Type: application/json. Streamable HTTP clients advertise both response types even when a given server responds with JSON. This is content negotiation, not an API key error. See the MCP Streamable HTTP specification: https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#streamable-http
How to reproduce
Run: curl -i https://ragmap.xyz/mcp -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' --data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"ragmap-header-check","version":"1"}}}' Expected: HTTP 200 and result.serverInfo.name = ragmap. Change only Accept to application/json and rerun. Expected: HTTP 406. Both results were reproduced against the hosted service by the maintainer.