Throws McpException when the input is not valid JSON, is not an array,
is an empty array, or when every member fails validateEnvelope (all-malformed
batch). For mixed batches the well-formed members are returned and malformed
members are silently dropped.
Deprecated: Use parseBatchTolerant or parseAny to preserve per-member error
information, which is required to produce the JSON-RPC 2.0 §6 id:null error
response for each malformed member.
Parse a JSON-RPC batch (array) from text.
Throws McpException when the input is not valid JSON, is not an array, is an empty array, or when every member fails validateEnvelope (all-malformed batch). For mixed batches the well-formed members are returned and malformed members are silently dropped.