Skip to content

feat: route MCP payments through user wallets - #133

Merged
SuPuHe merged 3 commits into
developfrom
feature/mcp-user-wallet-payments
Sep 13, 2026
Merged

SuPuHe merged 3 commits into
developfrom
feature/mcp-user-wallet-payments

Conversation

@SuPuHe

@SuPuHe SuPuHe commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Route personal MCP payments through the connected Privy/MetaMask wallet instead of the Privy server wallet.
  • Make arc_payment create a durable user-wallet job and return the quote plus exact Arc USDC ERC-20 calldata.
  • Add arc_payment_submit to bind the wallet transaction hash and verify the exact Arc receipt and Transfer log.
  • Disable the web UI server-wallet fallback for personal direct payments.
  • Retain the corporate server-wallet configuration as disabled compatibility code marked НЕ УДАЛЯТЬ.

Safety

  • The payer wallet is durably bound before verification.
  • A different transaction hash is rejected.
  • UNKNOWN and RPC failures remain retryable with the same hash only.
  • No live transaction or deployment was performed.

Validation

  • pnpm test — 80 files / 1053 tests passed
  • pnpm test:browser — 8/8 passed
  • pnpm typecheck — passed
  • pnpm lint — passed
  • pnpm format:check — passed
  • git diff --check — passed

Deployment note

Set ONESHOT_ARC_RPC_URL on the API deployment so arc_payment_submit can verify Arc Testnet receipts.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 13, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
oneshot bffa03e Sep 13 2026, 11:40 AM

@SuPuHe
SuPuHe merged commit d671af1 into develop Sep 13, 2026
5 checks passed
@selezenart
selezenart deleted the feature/mcp-user-wallet-payments branch September 13, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant