Problem
MCPay's client proxy already coordinates x402 negotiation, wallet payment, confirmation, and retry. On Base, an otherwise funded agent may hold ETH/WETH but lack enough USDC for the requested tool, forcing a manual interruption. A separate transaction preflight can also reduce unsafe token, approval, slippage, and calldata signing.
Proposed optional client hook
At the existing “proxy cannot/shouldn't pay” client branch:
- call SafeRoute Proof for the proposed transaction and require its signed
ALLOW result (or surface BLOCK/REVIEW);
- if canonical Base USDC is short, request an exact AutoFund route for the payment plus a configurable residual buffer;
- verify chain 8453, payer, target balance, maximum sell, expiry, route calldata, simulation evidence, and SafeRoute's Ed25519 receipt;
- use MCPay's local EVM wallet path to authorize the exact transaction;
- wait for confirmation, recheck the USDC balance, and retry the MCP call once.
This is non-custodial: SafeRoute never receives the private key and cannot auto-sign or broadcast. The live public beta stays Base-only, with a $10 AutoFund cap and 100-bps slippage ceiling.
Integration surfaces:
I can prepare a small client-side adapter/example after maintainers confirm the preferred package boundary. Partners can attach a verified referral code and accrue 25% of settled external SafeRoute service fees; owner/QA/self-paid/failed/duplicate calls are excluded.
Problem
MCPay's client proxy already coordinates x402 negotiation, wallet payment, confirmation, and retry. On Base, an otherwise funded agent may hold ETH/WETH but lack enough USDC for the requested tool, forcing a manual interruption. A separate transaction preflight can also reduce unsafe token, approval, slippage, and calldata signing.
Proposed optional client hook
At the existing “proxy cannot/shouldn't pay” client branch:
ALLOWresult (or surfaceBLOCK/REVIEW);This is non-custodial: SafeRoute never receives the private key and cannot auto-sign or broadcast. The live public beta stays Base-only, with a $10 AutoFund cap and 100-bps slippage ceiling.
Integration surfaces:
https://saferoute-x402-production.up.railway.app/mcphttps://saferoute-x402-production.up.railway.app/openapi.jsonI can prepare a small client-side adapter/example after maintainers confirm the preferred package boundary. Partners can attach a verified referral code and accrue 25% of settled external SafeRoute service fees; owner/QA/self-paid/failed/duplicate calls are excluded.