Add x402scan MCP tools cookbook example#6555
Open
SamOpenClaw wants to merge 14 commits intoagno-agi:mainfrom
Open
Add x402scan MCP tools cookbook example#6555SamOpenClaw wants to merge 14 commits intoagno-agi:mainfrom
SamOpenClaw wants to merge 14 commits intoagno-agi:mainfrom
Conversation
- Demonstrates autonomous agent payments using USDC - 4 examples: onboarding, invite redemption, research agent, team - First example focuses on user onboarding (wallet setup, funding options) - Documentation and best practices included - Self-contained example following Agno patterns
added 5 commits
February 14, 2026 02:29
- Remove Example 2 (redeem invite) - Remove invite code mentions from docstring - Focus on USDC funding only
- Change model from gpt-4o to claude-sonnet-4-20250514 - Add Configuration section in docstring - Note X402_PRIVATE_KEY env var for using existing wallet - Add env var note to Example 1 docstring
- Example 4: Tool hooks for real-time spending tracking - Pre-hook warnings before expensive operations - Post-hook transaction logging - Budget alerts when approaching limits - Example 5: Structured outputs with cost attribution - Type-safe research reports with Pydantic - Cost tracking per data source - Quality assessment for each provider Showcases Agno's unique capabilities with x402 payments.
- Load pre-built x402 skills from merit-systems/x402scan-skills - 8 skills covering data enrichment, web research, media generation, etc. - Skills provide structured workflows and best practices - Demonstrates Agno's Skills system with real-world skill library
- CostController class with hard spending enforcement - Rejects requests when budget exceeded (not just guidance) - Graceful error handling with transaction logging - Session cost reporting (spent/successful/failed) - Improved skills example (check installation, better error handling) Demonstrates production deployment patterns.
Author
|
x402scan MCP integration for paid APIs. 7 examples showing tool hooks, structured outputs, teams, and skills. |
added 2 commits
February 14, 2026 02:39
- Each user gets a different wallet address
- Agent shows deposit link: x402scan.com/mcp/deposit/{address}
- Upfront about USDC funding process
- Clearer instructions in Example 1
Author
|
Updated to claude-opus-4-20250514. Tested with live wallet - tool hooks work. |
added 2 commits
February 14, 2026 02:45
- Learns user preferences (quality vs cost) - Tracks provider performance over time - Remembers which APIs worked best - Optimizes future spending based on experience - Requires PostgreSQL for persistent learning Shows Agno's Learning Machine - agents that get smarter over time.
Author
|
Added learning example. Agent stores memories about API performance and preferences, optimizes spending over time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add x402scan MCP Tools Example
Agents that pay for APIs autonomously using USDC on Base. Access 100+ paid data sources: enrichment, web scraping, maps, social media, image/video generation.
Examples
Basic (1-3): Onboarding, research agent, multi-agent team
Advanced (4-8):
Setup
First run auto-generates wallet. Fund with USDC on Base.
Available APIs: enrichx402.com and stablestudio.io
Agno Features
Testing
Tested with live wallet - wallet ops, Apollo enrichment, tool hooks, JsonDb storage all verified.
Links
Sent by @sragss