Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs: runnable examples for four MCP packages, plus two new tutorials in the sidebar

nirholas620dbefd8028
diff --git a/docs/index.html b/docs/index.html
index 470ecd0b8..0a11d2542 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -1012,6 +1012,8 @@
{ label: 'Build a site concierge', path: 'tutorials/build-a-site-concierge' },
{ label: 'Add a 3D avatar assistant', path: 'tutorials/add-a-3d-assistant' },
{ label: 'Register on-chain', path: 'tutorials/register-onchain' },
+ { label: 'Give an agent a spending envelope', path: 'tutorials/agent-spending-envelope' },
+ { label: 'Render avatar images anywhere', path: 'tutorials/render-avatar-images' },
{ label: "Read an agent's reputation", path: 'tutorials/agent-reputation' },
{ label: "Read a Solana agent's reputation", path: 'tutorials/solana-agent-reputation' },
],
diff --git a/packages/marketplace-mcp/README.md b/packages/marketplace-mcp/README.md
index 301c12192..42a548dc0 100644
--- a/packages/marketplace-mcp/README.md
+++ b/packages/marketplace-mcp/README.md
@@ -109,6 +109,19 @@ npx -y @modelcontextprotocol/inspector npx @three-ws/marketplace-mcp
Pass `next_cursor` back as `cursor` to fetch the following page.
+## Examples
+
+Runnable examples live in [`examples/`](./examples):
+
+```bash
+node examples/list-tools.mjs # every tool with its full input schema
+node examples/browse-marketplace.mjs # categories + agents + detail + skills, live
+```
+
+Both spawn this server over stdio and read the live public catalog. Every tool
+here is read-only, so nothing can be published or purchased. See
+[`examples/README.md`](./examples/README.md) for expected output.
+
## Requirements
- **Node.js >= 20.**
diff --git a/packages/pumpfun-mcp/README.md b/packages/pumpfun-mcp/README.md
index 937cd41af..124eacd74 100644
--- a/packages/pumpfun-mcp/README.md
+++ b/packages/pumpfun-mcp/README.md
@@ -110,6 +110,20 @@ The live tool list is fetched from the backend at startup; a bundled copy ships
npx -y @modelcontextprotocol/inspector npx @three-ws/pumpfun-mcp
```
+## Examples
+
+Runnable examples live in [`examples/`](./examples):
+
+```bash
+node examples/list-tools.mjs # every tool the backend currently serves, with schemas
+node examples/token-report.mjs # live on-chain report for one mint
+```
+
+Both spawn this server over stdio and read live Solana mainnet data. Every tool
+here is free and read-only. See [`examples/README.md`](./examples/README.md) for
+expected output, including why the advertised tool count depends on whether the
+backend has an indexer configured.
+
## Configuration
No configuration is required. One optional override exists:
diff --git a/packages/pumpfun-mcp/examples/README.md b/packages/pumpfun-mcp/examples/README.md
new file mode 100644
index 000000000..e4b0e710a
--- /dev/null
+++ b/packages/pumpfun-mcp/examples/README.md
@@ -0,0 +1,131 @@
+# Examples: @three-ws/pumpfun-mcp
+
+Two runnable examples. Both spawn this package's own MCP server over stdio (the
+same `node src/index.js` entry point the README documents), speak real MCP
+JSON-RPC to it, and read live Solana mainnet data through the canonical three.ws
+backend.
+
+| File | What it does | Run |
+|---|---|---|
+| [`list-tools.mjs`](list-tools.mjs) | Prints every tool the backend currently serves, with titles, annotation hints, and full input schemas. | `node examples/list-tools.mjs` |
+| [`token-report.mjs`](token-report.mjs) | A live on-chain report for one mint: backend status, SPL mint facts, curve state, top holders, recent trades. | `node examples/token-report.mjs` |
+
+Run them from the package directory:
+
+```bash
+cd packages/pumpfun-mcp
+node examples/list-tools.mjs
+node examples/token-report.mjs
+```
+
+Nothing to install and nothing to configure: every tool on this server is free
+and read-only, and there is no write tool to reach for. The server prints a
+one-line banner to stderr on connect (`[pumpfun-mcp] three.ws-pumpfun-mcp
+vx.y.z ready`), which is normal.
+
+## list-tools.mjs
+
+Runs the MCP `initialize` handshake, then `tools/list`, and formats every tool.
+Expected output (abridged):
+
+```
+server: three.ws-pumpfun-mcp v0.2.4 (stdio)
+capabilities: tools
+tools: 20
+
+1. get_token_details
+ title: Token Details
+ hints: read-only, open-world
+ params:
+ - mint (required; string)
+
+2. get_bonding_curve
+ params:
+ - mint (required; string)
+ - network (optional; string, one of mainnet | devnet, default "mainnet")
+
+3. get_token_trades 4. get_token_holders 5. pumpfun_vanity_mint
+6. pumpfun_watch_whales 7. pumpfun_list_claims 8. pumpfun_watch_claims
+...
+```
+
+### Why the tool count moves
+
+This package is a stdio bridge in front of the canonical backend, and it asks the
+backend for the authoritative tool list at startup. So the list reflects what the
+backend can actually serve at that moment.
+
+Six discovery tools depend on an external pump.fun indexer: `search_tokens`,
+`get_trending_tokens`, `get_new_tokens`, `get_graduated_tokens`,
+`get_king_of_the_hill`, and `get_creator_profile`. When the backend has no
+`PUMPFUN_BOT_URL` configured, it filters those out of `tools/list` entirely,
+which is deliberate: a client should only see tools it can call. They reappear
+with no client change once an indexer is wired up. The on-chain tools never
+depend on it. `pumpfun_bot_status` reports that state directly, which is why
+`token-report.mjs` calls it first.
+
+## token-report.mjs
+
+Five live calls that add up to a real token report. Run against the $THREE mint
+by default:
+
+```
+pumpfun_bot_status:
+ indexer configured: false
+ indexer healthy: false
+ PUMPFUN_BOT_URL is not configured. On-chain tools are available; indexer-backed discovery tools are disabled.
+
+get_token_details: FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump
+ decimals: 6
+ supply: 999,674,525.94
+ mint authority: revoked (no further minting)
+ freeze authority: revoked (accounts cannot be frozen)
+
+get_bonding_curve:
+ curve complete: yes, this token graduated off the bonding curve
+ price now comes from the PumpSwap pool, so use pumpfun_quote_swap
+
+get_token_holders: top 5
+ top-holder share: 47.81%
+ 47.81% <HOLDER_ADDRESS> 70,041,374
+ 15.17% <HOLDER_ADDRESS> 22,217,654
+ ...
+
+get_token_trades: last 5 on-chain
+ BUY $ 0.0620 0.000844943 SOL 21s ago
+ BUY $ 0.0117 0.00015927 SOL 7s ago
+ SELL $ 0.1154 0.001572055 SOL 19s ago
+ ...
+
+Every call was a read. Nothing was signed, sent, or paid for.
+```
+
+The real run prints full Base58 holder addresses and transaction-level trades;
+they are elided above because they change every block. Balances, holder ranking,
+and trades are live, so every number moves between runs.
+
+Two things the report is deliberate about:
+
+- **Curve versus pool.** A graduated token has no bonding curve left to read, so
+ `get_bonding_curve` answers `complete: true` with zeroed reserves rather than
+ pretending to price it. Post-graduation pricing lives in the PumpSwap pool, via
+ `pumpfun_quote_swap`. A pre-graduation mint instead prints its graduation
+ percentage and live reserves.
+- **Authorities.** `mintAuthority` and `freezeAuthority` reading `null` means
+ revoked, which is the safe state: no one can mint more supply or freeze a
+ holder's account. The example spells that out rather than printing `null`.
+
+### Arguments
+
+```bash
+node examples/token-report.mjs <MINT_ADDRESS>
+```
+
+Any pump.fun mint works. A mint still on the curve exercises the other
+`get_bonding_curve` branch.
+
+### Environment
+
+Optional: `PUMPFUN_MCP_URL` repoints the bridge at a self-hosted backend
+(default `https://three.ws/api/pump-fun-mcp`). It is forwarded to the server if
+set. There is no API key to supply, for any tool.
diff --git a/packages/vanity-mcp/README.md b/packages/vanity-mcp/README.md
index d288f7137..b5e5845ac 100644
--- a/packages/vanity-mcp/README.md
+++ b/packages/vanity-mcp/README.md
@@ -106,6 +106,19 @@ npx -y @modelcontextprotocol/inspector npx @three-ws/vanity-mcp
}
```
+## Examples
+
+Runnable examples live in [`examples/`](./examples):
+
+```bash
+node examples/list-tools.mjs # every tool with its full input schema
+node examples/quote-and-appraise.mjs # config + quote + appraise + stats, live
+```
+
+Both spawn this server over stdio and read the live market. Every tool here is
+read-only, so nothing can be posted, claimed, or paid. See
+[`examples/README.md`](./examples/README.md) for expected output.
+
## Requirements
- **Node.js >= 20.**
diff --git a/packages/x402-mcp/README.md b/packages/x402-mcp/README.md
index c8d35dca8..cba779f4f 100644
--- a/packages/x402-mcp/README.md
+++ b/packages/x402-mcp/README.md
@@ -101,6 +101,19 @@ claude mcp add x402 --env SOLANA_SECRET_KEY=<base58> -- npx -y @three-ws/x402-mc
{ "ok": true, "paid": true, "payer": "Gx5E…", "price_usd": 0.05, "settlement": { … }, "result": { … } }
```
+## Examples
+
+Runnable, no-payment examples live in [`examples/`](./examples):
+
+```bash
+node examples/list-tools.mjs # every tool with its full input schema
+node examples/inspect-price.mjs # find_services + inspect_endpoint on live data
+```
+
+Both spawn this server over stdio and hit the real bazaar. Neither reads a key or
+calls `pay_and_call`, so nothing is signed and nothing is spent. See
+[`examples/README.md`](./examples/README.md) for expected output.
+
## Requirements
- **Node.js >= 20.**