Skip to content

Add agent payment example (agentpay-mcp) to MCP guide#35

Open
up2itnow0822 wants to merge 1 commit intoluongnv89:mainfrom
up2itnow0822:add/agentpay-mcp-payment-example
Open

Add agent payment example (agentpay-mcp) to MCP guide#35
up2itnow0822 wants to merge 1 commit intoluongnv89:mainfrom
up2itnow0822:add/agentpay-mcp-payment-example

Conversation

@up2itnow0822
Copy link
Copy Markdown

What this adds

A real-world MCP use case that's missing from the guide: autonomous agent payments.

When Claude calls a paid API and gets HTTP 402 Payment Required, agentpay-mcp handles the payment via the x402 protocol and retries — so the agent keeps working without stopping to ask a human to go pay.

Changes

  • 05-mcp/README.md — New "Agent Payments with agentpay-mcp" section with:
    • Mermaid sequence diagram showing the 402 → pay → retry flow
    • claude mcp add setup command + .mcp.json config
    • Governance controls table (spend caps, approval thresholds, audit trail)
    • Concrete example: agent pays for premium weather data
  • 05-mcp/payment-mcp.json — Ready-to-use MCP config template

Why this fits

The guide covers MCP servers for GitHub, databases, Slack, filesystems — but nothing for agent payments. As agents start consuming paid APIs autonomously, having a payment MCP server is a natural addition to the ecosystem section.

agentpay-mcp is already integrated into NVIDIA's NeMo Agent Toolkit Examples (PR #17, merged).

Style

Follows the existing guide conventions: Mermaid diagrams, copy-paste configs, security notes, and practical examples rather than marketing.

Add a real-world MCP use case: autonomous agent payments via the x402
protocol. Includes a Mermaid sequence diagram, .mcp.json config template,
governance controls table, and a concrete example of an agent paying for
premium weather data.

agentpay-mcp is already integrated into NVIDIA's NeMo Agent Toolkit
(PR luongnv89#17, merged).
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