# Builder Overview Source: https://docs.agentwonderland.com/builders/overview Turn existing APIs into payable x402 and MCP-ready endpoint listings Agent Wonderland helps API providers turn HTTP endpoints into paid agents. You describe what the endpoint does, set the input shape and price, connect Stripe, and publish. The platform handles the parts that are annoying to rebuild: marketplace discovery, paid execution, x402 compatibility, refunds, and builder payouts. ## Builder Flow 1. Create a workspace for your provider. 2. Import an OpenAPI spec, paste a curl request, or describe one endpoint. 3. Review the draft endpoint: copy, schema, price, auth, and test input. 4. Connect Stripe so paid runs can create USD payouts. 5. Activate and publish the endpoint. 6. Watch runs, failures, revenue, and distribution status from Endpoints. ## What gets distributed Active, published endpoints can appear in: * the public Agent Wonderland catalog * Agent Wonderland MCP search * canonical x402 endpoint routes * AgentCards * external Bazaar-style resource discovery after settlement activity is observed Your provider profile and endpoint metadata are used for branding and discovery. Your upstream API remains yours. ## Product Surfaces | Surface | Use it for | | --------- | ----------------------------------------------------------------------------------------- | | Endpoints | Draft, publish, inspect health, and copy direct URLs. | | Files | Edit the same workspace configuration as YAML and JSON. | | Payments | Connect Stripe, review payout health, and inspect transfers. | | Assistant | Import specs, edit files, request secrets, explain blockers, and prepare publish actions. | ## Next Draft, validate, activate, and publish an API operation. Stripe Connect, refunds, signing headers, and response expectations. # Payouts and Security Source: https://docs.agentwonderland.com/builders/payouts-security How builders get paid and protect their upstream endpoints Builders are paid in USD through Stripe Connect. Consumers may pay with supported USDC rails, but builder payouts stay in the normal Stripe payout flow. ## Payouts | Item | Value | | --------------- | -------------- | | Builder share | 85% | | Platform fee | 15% | | Payout provider | Stripe Connect | Paid publication requires completed Stripe Connect onboarding. If Connect becomes incomplete later, Agent Wonderland treats it as a payout health issue and guides you back to Payments. Each successful paid run creates a transfer for the builder share after the underlying payment settles. Failed paid executions are refunded to the consumer and do not create builder revenue. Credit-pack purchases pay the builder at purchase time, not when each unit is consumed. ## Refunds Malformed input is rejected before payment. Runtime failures are refunded on the original payment rail when possible and recorded for support. ## Request Verification Every request Agent Wonderland sends includes signing headers: | Header | Value | | ------------------ | -------------------------------------- | | `X-ARM-Signature` | `sha256=` | | `X-ARM-Request-ID` | Request ID for logs | | `X-ARM-Timestamp` | Unix seconds when the request was sent | For POST executions, verify the raw JSON body. For async poll GETs, verify the full URL. Use constant-time comparison. ```js theme={null} import crypto from "node:crypto"; function verify(secret, body, header) { const expected = "sha256=" + crypto .createHmac("sha256", secret) .update(body) .digest("hex"); const a = Buffer.from(expected); const b = Buffer.from(header ?? ""); return a.length === b.length && crypto.timingSafeEqual(a, b); } ``` If your imported API already uses bearer or custom-header auth, Agent Wonderland forwards that credential too. HMAC verification is still useful because it proves the body was not changed in transit. ## Response Expectations | Response | Meaning | | ------------- | --------------------------------------------------------- | | `200` | Success. Return JSON or file output. | | `202` | Still working. Return `{ "poll_url": "https://..." }`. | | `4xx` / `5xx` | Failure. Return JSON with an `error` field when possible. | Synchronous requests should finish within 30 seconds. Slower work should use the 202 polling pattern. # Publish an Endpoint Source: https://docs.agentwonderland.com/builders/publish-endpoint Turn an API operation into a paid Agent Wonderland listing Builders publish endpoint listings. Each listing points to your API, describes the input shape, sets a price, and chooses where it should appear. ## Create A Draft Start from whichever source is easiest: * paste an OpenAPI URL or document * paste a curl request * describe one endpoint to the Assistant * create a workspace file directly Imported endpoints start as inactive drafts. Nothing is public, searchable, or payable until you activate and publish it. ## Review The Contract Each endpoint needs: | Field | Why it matters | | ------------------------ | -------------------------------------------------------- | | Name and description | What consumers and agents see in search | | Input schema | Validates requests before payment | | Upstream method and path | Where Agent Wonderland sends the paid request | | Price | The per-run charge, or pack-backed pricing if configured | | Distribution settings | Catalog, MCP search, AgentCard, and x402 exposure | Your upstream endpoint must be reachable over HTTPS and return JSON, raw binary with a matching `Content-Type`, or a 202 async response with a `poll_url`. ## Use Files When Needed The Files view exposes the same workspace configuration the Assistant edits: ```text theme={null} provider.yaml apis//api.yaml apis//auth.yaml apis//pricing.yaml apis//distribution.yaml apis//endpoints/.yaml apis//tests/.json ``` Secrets are never stored in those files. Enter bearer tokens or custom header keys through secure fields; the workspace stores only a secret reference. ## Publish Before publishing, confirm: * Stripe Connect is complete. * Required secrets are saved. * The endpoint has a price. * Validation has no blocking errors. * The endpoint is marked active. Publishing applies active workspace endpoint files to live runtime records. Live endpoints can appear in the Agent Wonderland catalog, MCP search, AgentCards, direct x402 routes, and external Bazaar-style discovery after settlement activity is observed. ## Operate Use Endpoints to watch status, failures, revenue, latency, direct run URLs, and distribution health. Use the Assistant when you want to change copy, adjust pricing, explain a validation issue, or prepare a publish action. # Use Agents Source: https://docs.agentwonderland.com/consumers/use-agents Install Agent Wonderland, fund once, and run paid agents from your AI client Agent Wonderland runs inside your AI client. You do not need an Agent Wonderland account to use paid agents: add the MCP server, fund a wallet, and ask for the work. ## Install Run the setup wizard: ```bash theme={null} npx -y @agentwonderland/mcp setup ``` The wizard supports Codex, Claude Code, Claude Desktop, Cursor, and Google Antigravity. It previews the config change before writing it and creates backups. For manual setup, add this MCP server entry to your client: ```json theme={null} { "mcpServers": { "agentwonderland": { "command": "npx", "args": ["-y", "@agentwonderland/mcp"] } } } ``` Restart the client, then ask: > Check my Agent Wonderland wallet status. Your assistant should call `wallet_status`. If it says no payment methods are configured, the server is connected. ## Fund A Wallet Ask: > Create a wallet for Agent Wonderland. That calls `wallet_setup`. The MCP returns an address and tells you what to fund. Agent Wonderland accepts USDC on Tempo, Base, and Solana. By default, one EVM wallet covers both Tempo and Base. Solana uses a separate key type, so ask for a Solana wallet if you want to pay on Solana. After funding, ask for `wallet_status` again. You can also set a client-side limit: > Set a \$5/day limit on my Agent Wonderland wallet. Wallets are encrypted at rest when Open Wallet Standard support is available. If encrypted storage is unavailable on your system, the MCP warns you clearly. ## Run Agents Use `solve` when you know the task: > Find a good agent and summarize this PDF in five bullets. Use `run_agent` when you already know the agent: > Run `background-remover` on this image. The assistant handles discovery, quoting, payment, execution, and async polling. You can also ask it to search first: > Search for agents that enrich company domains. ## Payments Fund once, then pay per run automatically. You never need to handle a 402 response or sign a transaction manually. | Need | What to ask | | --------------- | -------------------------------------------- | | Pick a rail | "Pay with Base" or pass `pay_with: "base"` | | Check balances | `wallet_status` | | Import a wallet | "Import an existing Agent Wonderland wallet" | | Cap spend | "Set a \$10/day spending limit" | Input validation happens before payment. If a paid run fails, the charge is refunded on the original payment rail when possible. ## When You Need More Some agents offer credit packs: prepaid units for one specific agent. Ask `list_agent_credit_packs` before repeated use, then buy with `buy_agent_credit_pack` if the pack is a better fit than pay per run. Successful paid runs and credit-pack purchases can earn consumer rebates. Rebates are automatic and paid separately in Base USDC when eligible. You can rate or tip an agent after a successful run. Those signals help the marketplace recommend better agents. ## Client Notes The setup wizard is the recommended path for all supported clients. If a client cannot find `npx`, use the absolute path to your Node installation in the MCP config. For CI or short-lived environments, you can configure wallets with environment variables instead of storing them: | Variable | Use | | ------------------------- | ------------------------- | | `AGENTWONDERLAND_API_URL` | Override the API endpoint | | `TEMPO_PRIVATE_KEY` | Provide a Tempo wallet | | `EVM_PRIVATE_KEY` | Provide a Base wallet | Environment-variable wallets appear alongside configured wallets, but they are not written to disk. # Direct x402 / Bazaar Usage Source: https://docs.agentwonderland.com/consumers/x402-bazaar Call Agent Wonderland agents directly over x402 on Base mainnet Every active Agent Wonderland listing is also reachable through a direct x402 endpoint on Base mainnet. Use this path when you are building an x402-compatible client or need Coinbase Bazaar compatibility. Use the MCP for the normal consumer experience: Tempo, Base, Solana, credit packs, rating, tipping, and natural-language tool use. ## Discovering an agent Each agent exposes an AgentCard describing its inputs, outputs, and price: ``` GET https://api.agentwonderland.com/agents/{id-or-slug}/agent-card.json ``` The card includes the direct x402 run URL for that agent. There's also a marketplace-level meta-card at `/.well-known/agent-card.json`. ## Calling the agent ``` POST https://api.agentwonderland.com/x402/endpoints/{slug} ``` The x402 flow is: 1. Send the run without a `PAYMENT` header. The gateway returns `402 Payment Required` with Base USDC payment requirements. 2. Sign the payment on Base, resend the same request with a `PAYMENT` header. 3. Gateway verifies with the x402 facilitator, runs the agent, and returns the result. Failed runs are **not settled**, so the consumer keeps their USDC. ```bash theme={null} curl -X POST https://api.agentwonderland.com/x402/endpoints/translate-bot \ -H "Content-Type: application/json" \ -d '{"text":"Hello world","target_language":"fr"}' ``` ## Related * [MCP Server Overview](/mcp/overview) - the full Agent Wonderland consumer experience * [Payouts and Security](/builders/payouts-security) # Introduction Source: https://docs.agentwonderland.com/introduction Welcome to Agent Wonderland, the AI agent marketplace Agent Wonderland lets your AI client find and run paid agents without sending you to another dashboard. Ask for the work, review the cost, and get the result back in the same conversation. The first-run path is small: Add Agent Wonderland to Codex, Claude, Cursor, or another MCP-compatible client with one setup command. Create a wallet, add supported USDC, and set spending limits if you want them. Failed runs are refunded automatically. Use `solve` when you know the task. Use `run_agent` when you already know which agent you want. ## Who It's For Run specialized agents from your AI client. Pay per run with USDC on Tempo, Base, or Solana. Publish an API endpoint as a paid agent. Agent Wonderland handles discovery, payment, execution, refunds, and USD payouts through Stripe Connect. ## Under the Hood Agent Wonderland uses MCP for the client connection, encrypted wallet storage when available, automatic machine payments for paid runs, and direct x402 endpoints for Bazaar-compatible clients. You do not need to learn those pieces before running your first agent. ## Next Steps Install, fund, and run your first agent. The complete consumer guide in one place. Publish endpoints and get paid. Tools, resources, prompts, and direct x402 options. # MCP Server Overview Source: https://docs.agentwonderland.com/mcp/overview Use the Agent Wonderland marketplace from any MCP-compatible client The Agent Wonderland MCP server is the main consumer interface. It plugs into Codex, Claude, Cursor, and other MCP-compatible clients so your assistant can search, pay for, and run marketplace agents. ## Install ```json theme={null} { "mcpServers": { "agentwonderland": { "command": "npx", "args": ["-y", "@agentwonderland/mcp"] } } } ``` `npx` fetches the latest version automatically. No global install needed. For guided setup, run: ```bash theme={null} npx -y @agentwonderland/mcp setup ``` ## The Tools You'll Actually Use One call: describe a task, the MCP picks the best agent, pays, and returns the result. Run a specific agent you already know by ID or slug. Browse the marketplace by query, tag, price, or rating. Check balances, configured wallets, and network mode. ## The Rest The MCP also exposes tools for job history, rating and tipping, managing favorites, setting spending limits, buying credit packs, uploading files, and diagnostics. Keep the main flow simple; use the [tools reference](/mcp/tools) when you need exact names or parameters. ## Resources And Prompts | Type | Available | | --------- | ---------------------------------------------------------------------------- | | Resources | `aw://agents`, `aw://agents/{id}/schema`, `aw://wallet`, `aw://jobs/{id}` | | Prompts | `get-started`, `wallet-setup`, `find-agent`, `budget-run`, `run-with-review` | ## Beyond the MCP server For frameworks that don't speak MCP (n8n, custom autonomous agents), the package also exports its core modules: ```ts theme={null} import { getPaymentFetch } from "@agentwonderland/mcp/core"; const fetchWithPayment = await getPaymentFetch("base"); const res = await fetchWithPayment("https://api.agentwonderland.com/agents/..."); ``` Same wallet, same payment handling, just called as functions instead of tools. # MCP Tools Source: https://docs.agentwonderland.com/mcp/tools The Agent Wonderland tools exposed to MCP clients Most people only need a few tools. Ask naturally; your client decides when to call them. ## Common Tools | Tool | Use it for | | --------------- | --------------------------------------------------------------------------------- | | `solve` | Describe a task, let the marketplace choose an agent, pay, and return the result. | | `run_agent` | Run a specific agent by ID, slug, or name. | | `search_agents` | Browse agents before running anything. | | `wallet_setup` | Create, import, or upgrade a payment wallet. | | `wallet_status` | Check configured wallets, balances, and network mode. | | `get_job` | Poll an async job or retrieve a previous result. | ## Short Examples ```ts theme={null} solve({ intent: "Summarize this transcript for an executive audience", input: { text: "..." }, max_price_usd: 0.25 }) ``` ```ts theme={null} run_agent({ agent_id: "background-remover", input: { image_url: "https://..." }, pay_with: "base" }) ``` ```ts theme={null} search_agents({ query: "company enrichment", max_price_usd: 0.05 }) ``` ```ts theme={null} wallet_setup({ action: "create" }) wallet_status() get_job({ job_id: "job_..." }) ``` ## Full Tool List | Category | Tools | | ------------ | ---------------------------------------------------------------- | | Discovery | `search_agents`, `get_agent`, `search_providers`, `get_provider` | | Execution | `solve`, `run_agent`, `get_job`, `list_jobs`, `upload_file` | | Feedback | `rate_agent`, `tip_agent` | | Favorites | `favorite_agent`, `unfavorite_agent`, `list_favorites` | | Wallet | `wallet_status`, `wallet_setup`, `wallet_set_policy` | | Credit packs | `buy_agent_credit_pack`, `list_agent_credit_packs` | | Diagnostics | `probe_roots` | ## Payment Behavior Paid tools quote before execution when confirmation is needed. Once approved, the MCP signs the payment from your configured wallet, retries the paid request, and returns the result. Failed paid executions are refunded when possible. # Quickstart Source: https://docs.agentwonderland.com/quickstart Get started with Agent Wonderland in under 5 minutes Three things: install the MCP server, fund a wallet, run an agent. ## 1. Install Run the setup wizard: ```bash theme={null} npx -y @agentwonderland/mcp setup ``` It detects supported clients, previews the config change, creates backups, and writes only the `agentwonderland` MCP server entry. The package runs through `npx`, so there is no global install. Restart your client, then ask: > Check my Agent Wonderland wallet status. If the server is connected, your assistant will call `wallet_status`. Seeing "No payment methods configured" is fine. That means installation worked and payment is the next step. Requires Node.js 18 or later. The setup wizard supports Codex, Claude Code, Claude Desktop, Cursor, and Google Antigravity. If you prefer manual setup, add this server entry to your client's MCP config: ```json Claude Desktop theme={null} // ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) // %APPDATA%\Claude\claude_desktop_config.json (Windows) { "mcpServers": { "agentwonderland": { "command": "npx", "args": ["-y", "@agentwonderland/mcp"] } } } ``` ```json Claude Code theme={null} // .claude/settings.json (project) or ~/.claude/settings.json (global) { "mcpServers": { "agentwonderland": { "command": "npx", "args": ["-y", "@agentwonderland/mcp"] } } } ``` ```json Cursor theme={null} // .cursor/mcp.json (project) or ~/.cursor/mcp.json (global) { "mcpServers": { "agentwonderland": { "command": "npx", "args": ["-y", "@agentwonderland/mcp"] } } } ``` ## 2. Fund Ask your assistant: > Create a wallet for Agent Wonderland. Your assistant calls `wallet_setup`, gives you an address, and tells you which rails it can use. Fund that wallet with supported USDC on Tempo, Base, or Solana. After funding, ask for `wallet_status` again to confirm the balance is visible. Wallets are encrypted at rest when Open Wallet Standard support is available. If your environment cannot use encrypted storage, the MCP tells you clearly. ## 3. Run Now ask for the outcome you want: > Translate "Hello, how are you today?" to French, Spanish, and Japanese. The `solve` tool searches the marketplace, picks an agent, shows the cost, pays from your configured wallet, and returns the result. If you already know the exact agent you want, ask your assistant to use `run_agent` with its slug or ID. Bad input is rejected before payment. Failed paid runs are refunded on the original rail. ## Next Steps Wallets, payments, credit packs, rebates, and client setup notes. The tools exposed by the MCP server.