feat: settle MCP payments in the payment-aware fetch#567
Conversation
commit: |
6423f4a to
bd3001d
Compare
141429a to
e28e494
Compare
e28e494 to
0337a82
Compare
bfcd9c1 to
e8df79b
Compare
brendanjryan
left a comment
There was a problem hiding this comment.
One comment, but otherwise LGTM
👁️ Cyclops Security Review
🧭 Audit failed · mode=
Findings
⚙️ Controls
📜 26 events🔍 |
6465097 to
abc576f
Compare
1ab6eac to
402e170
Compare
Compose the HTTP transport from MPP, x402, and MCP-over-HTTP protocol handlers. Collect every payment offer from HTTP responses and route retry credentials through the protocol that produced the selected challenge. Detect MCP JSON-RPC -32042 responses at the fetch boundary, including first SSE events, and preserve Request-carried bodies for retries.
402e170 to
ac52a12
Compare
Summary
Transport.http()from protocol handlers for MPP, x402, and MCP-over-HTTP challenges behind the payment-aware fetch.-32042responses at the fetch boundary, including the first SSE event, and retry with credentials in MCP_metawhile preserving Request-carried bodies.Validation
pnpm check:ciVITE_TEMPO_NETWORK=none pnpm check:typesVITE_TEMPO_NETWORK=none pnpm vp test --project node src/client/internal/protocols/Mcp.test.ts src/client/Transport.test.tsVITE_TEMPO_NETWORK=none pnpm vp test --project node src/client/internal/Fetch.test.ts -t "combined MPP|MCP-over-HTTP|Request input|native HTTP 402|JSON-RPC payment|PAYMENT-REQUIRED"