Example Paid Tool — Development skill for Claude Code
Template for interacting with an x402-paid MCP tool.
How to install Example Paid Tool
Installs to ~/.claude/skills/mangrovetechnologies-x402-plugin-template-example-paid-tool/SKILL.md
mkdir -p ~/.claude/skills/mangrovetechnologies-x402-plugin-template-example-paid-tool && curl -fsSL https://raw.githubusercontent.com/MangroveTechnologies/x402-plugin-template/HEAD/.claude/skills/example-paid-tool.md -o ~/.claude/skills/mangrovetechnologies-x402-plugin-template-example-paid-tool/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Example Paid Tool does
name: example-paid-tool description: Template for interacting with an x402-paid MCP tool
Paid Tool Interaction
Flow
- Call the tool WITHOUT a payment parameter
- Server returns PAYMENT_REQUIRED with price and network details
- Present the price: "This costs $X USDC on Base. Proceed?"
- If confirmed, construct x402 payment using the user's wallet
- Call the tool WITH the payment parameter (base64-encoded signature)
- Present results
Error Handling
- PAYMENT_REQUIRED: Ex
Alternatives in Development
- Claude Code Examples — Official example projects and patterns from Anthropic 35.6k ★
- Example Plugin — Reference implementation for plugin developers 14k ★
- Claude How To — by luongnv89 — Example-driven guide to mastering Claude Code through progressive tutorials with copy-paste tem 8.5k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Example Free Tool
Template for interacting with a free MCP tool
Mt History
View trade history (own free, others x402 paid $0.01/3 trades)
Mt Search
Search for a trader by handle or name (x402 paid, $0.02 USDC on Base)
Verse Me Com Paid Consultation
Price a concrete forecasting or strategy question, decide whether to pay, then submit it through the x402 402-
Scvd Store X402 Verification
Check an x402 endpoint before paying it, and check the receipt after. Free instruments first; a paid signed ob
Claude Artifact Viewer Template
A modern web application for viewing and interacting with Claude-generated artifacts
Related Agents
X402 Archivist
Cache layer for x402 operations. Use proactively BEFORE any paid fetch (cache check) and AFTER any payment (ca
X402 Micropayments
Micropayments and HTTP 402 specialist for 402Lab — the x402 v2 protocol (PAYMENT-REQUIRED / PAYMENT-SIGNATURE
Style Extractor
Extracts a custom style+formatting profile from example memos and/or written rules. Produces prose-style.md (a