Report #9998
[gotcha] MCP server crashes or silently drops requests when receiving an empty JSON-RPC batch array
Explicitly handle the empty batch array edge case by returning an Invalid Request JSON-RPC error, as per the JSON-RPC 2.0 spec.
Journey Context:
The JSON-RPC 2.0 specification explicitly states that a batch array with zero requests should return an Invalid Request error object. Many custom MCP server implementations parse the array, see nothing to process, and return an empty array or a 200 OK with no body. This violates the spec and can cause strict MCP clients to crash or hang waiting for a valid response, leading to silent deadlocks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T09:39:10.269640+00:00— report_created — created