Requests integration of 'agentpay-mcp' into the AI SDK to provide a standard way for agents to handle x402 payments mid-workflow, including human approval and on-chain spend caps, addressing the current manual and fragmented payment handling.
## The problem AI SDK doesn't have a standard way for agents to handle payments mid-workflow. When an agent needs to call a paid API or trigger usage-based billing, developers handle it manually — out-of-band, untracked, and fragmented across implementations. x402 (HTTP 402 Payment Required) is gaining traction as a standard for agent-to-service payments. There are already open discussions about it in this repo (#13822, #13724), but nothing covering the full tooling stack with safety guardrails. ## What agentpay-mcp adds [agentpay-mcp](https://github.com/up2itnow0822/agentpay-mcp) is an MIT-licensed MCP server that gives AI SDK agents a `pay` tool backed by the x402 protocol. It was recently merged into NVIDIA's NeMo-Agent-Toolkit-Examples: https://github.com/NVIDIA/NeMo-Agent-Toolkit-Examples/pull/17 Key features: - **Human-approval mode**: agent requests payment, a human confirms before funds move — critical for production deployments where you can't have agents spending autonom