You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Close the authz/audit blind spot for batch JSON-RPC requests #5745
Part of #5743 (Workstream B: 2025-11-25 compliance).
Gap
JSON-RPC batch requests execute but bypass MCP middleware inspection: the streamable proxy accepts and executes batches (streamable_proxy.go batch handler), but the parser middleware skips them (pkg/mcp/parser.go — IsBatch: false // TODO). Authz, audit, and telemetry are blind to everything inside a batch — a request smuggling vector around tool filtering and Cedar policies.
Spec context: batching was removed from MCP in the 2025-06-18 revision; only 2025-03-26-and-earlier clients may legitimately send batches.
Proposed work
Decide and enforce a stance:
Recommended: reject batches when the negotiated/declared protocol version is ≥ 2025-06-18 (spec-conformant), and for older versions either parse every batch entry through the middleware chain or reject batches outright.
At minimum: make the parser batch-aware so authz/audit see the contents of every batched call.
Activity
Reject JSON-RPC batches to close authz blind spot (#5931)