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.

feat: add marketplace plugins, agent skills, and claude plugin configs

nirholasf9a0ea68b0aa
diff --git a/.agents/.claude-plugin/plugin.json b/.agents/.claude-plugin/plugin.json
new file mode 100644
index 000000000..37386bf58
--- /dev/null
+++ b/.agents/.claude-plugin/plugin.json
@@ -0,0 +1,10 @@
+{
+ "name": "three-ws-core",
+ "description": "Core wallet and x402 payment skills — authenticate, fund, send tokens, trade, search the bazaar, pay for services, monetize APIs, and query onchain data.",
+ "version": "1.0.0",
+ "author": {
+ "name": "nirholas"
+ },
+ "homepage": "https://three.ws",
+ "license": "Apache-2.0"
+}
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
new file mode 100644
index 000000000..63ce72863
--- /dev/null
+++ b/.claude-plugin/marketplace.json
@@ -0,0 +1,95 @@
+{
+ "name": "three-ws",
+ "owner": {
+ "name": "nirholas"
+ },
+ "description": "Official plugin marketplace for three.ws — wallet operations, x402 payments, MCP tools, pump.fun trading, and agent scaffolding.",
+ "version": "1.0.0",
+ "plugins": [
+ {
+ "name": "three-ws-core",
+ "source": "./.agents",
+ "displayName": "three.ws Core",
+ "description": "Core wallet and x402 payment skills — authenticate, fund, send tokens, trade, search the bazaar, pay for services, monetize APIs, and query onchain data.",
+ "version": "1.0.0",
+ "author": {
+ "name": "nirholas"
+ },
+ "homepage": "https://three.ws",
+ "repository": "https://github.com/nirholas/three.ws",
+ "license": "Apache-2.0",
+ "keywords": [
+ "wallet",
+ "x402",
+ "usdc",
+ "payments",
+ "trade",
+ "base",
+ "solana",
+ "polygon"
+ ],
+ "category": "payments",
+ "tags": [
+ "wallet",
+ "x402",
+ "defi",
+ "payments"
+ ]
+ },
+ {
+ "name": "three-ws-developer",
+ "source": "./marketplace/plugins/three-ws-developer",
+ "displayName": "three.ws Developer Tools",
+ "description": "Developer tools for three.ws — scaffold agents, configure MCP servers, and get runnable code examples for paid MCP tools.",
+ "version": "1.0.0",
+ "author": {
+ "name": "nirholas"
+ },
+ "homepage": "https://three.ws",
+ "repository": "https://github.com/nirholas/three.ws",
+ "license": "Apache-2.0",
+ "keywords": [
+ "developer",
+ "scaffold",
+ "mcp",
+ "tools",
+ "agent"
+ ],
+ "category": "developer-tools",
+ "tags": [
+ "developer",
+ "mcp",
+ "scaffold",
+ "agent-kit"
+ ]
+ },
+ {
+ "name": "three-ws-pump-fun",
+ "source": "./pump-fun-skills",
+ "displayName": "three.ws Pump.fun Trading",
+ "description": "Pump.fun on-chain trading skills — create coins, swap tokens, manage creator fees, tokenize agents, and drive live avatar reactions from the pump.fun feed.",
+ "version": "1.0.0",
+ "author": {
+ "name": "pump-fun"
+ },
+ "homepage": "https://pump.fun",
+ "repository": "https://github.com/nirholas/three.ws",
+ "license": "Apache-2.0",
+ "keywords": [
+ "pump.fun",
+ "solana",
+ "trading",
+ "defi",
+ "tokens",
+ "swap"
+ ],
+ "category": "trading",
+ "tags": [
+ "pump.fun",
+ "solana",
+ "defi",
+ "trading"
+ ]
+ }
+ ]
+}
diff --git a/.claude/settings.json b/.claude/settings.json
new file mode 100644
index 000000000..138392dac
--- /dev/null
+++ b/.claude/settings.json
@@ -0,0 +1,15 @@
+{
+ "extraKnownMarketplaces": {
+ "three-ws": {
+ "source": {
+ "source": "github",
+ "repo": "nirholas/three.ws"
+ }
+ }
+ },
+ "enabledPlugins": {
+ "three-ws-core@three-ws": true,
+ "three-ws-developer@three-ws": true,
+ "three-ws-pump-fun@three-ws": true
+ }
+}
diff --git a/marketplace/plugins/three-ws-developer/.claude-plugin/plugin.json b/marketplace/plugins/three-ws-developer/.claude-plugin/plugin.json
new file mode 100644
index 000000000..c4d9919be
--- /dev/null
+++ b/marketplace/plugins/three-ws-developer/.claude-plugin/plugin.json
@@ -0,0 +1,20 @@
+{
+ "name": "three-ws-developer",
+ "description": "Developer tools for three.ws — scaffold agents, configure MCP servers, and get runnable code examples for paid MCP tools.",
+ "version": "1.0.0",
+ "author": {
+ "name": "nirholas"
+ },
+ "homepage": "https://three.ws",
+ "license": "Apache-2.0",
+ "mcpServers": {
+ "3d-agent": {
+ "command": "npx",
+ "args": ["-y", "@3d-agent/mcp-server"],
+ "env": {
+ "MCP_EVM_PAYMENT_ADDRESS": "${MCP_EVM_PAYMENT_ADDRESS}",
+ "MCP_SVM_PAYMENT_ADDRESS": "${MCP_SVM_PAYMENT_ADDRESS}"
+ }
+ }
+ }
+}
diff --git a/marketplace/plugins/three-ws-developer/commands/scaffold-agent.md b/marketplace/plugins/three-ws-developer/commands/scaffold-agent.md
new file mode 100644
index 000000000..621546b2d
--- /dev/null
+++ b/marketplace/plugins/three-ws-developer/commands/scaffold-agent.md
@@ -0,0 +1,113 @@
+---
+description: Scaffold a new three.ws AI agent in the current project — creates an entry file wired to the three.ws SDK, MCP tools, and x402 payments. Pass a name: /scaffold-agent MyAgent
+---
+
+You are scaffolding a new three.ws agent into the user's project. The argument `$ARGUMENTS` is the agent name (default: `MyAgent` if blank).
+
+## Step 1 — Detect project type
+
+Check the current working directory for:
+- `package.json` → Node.js / browser project
+- `vite.config.*` → Vite frontend
+- `next.config.*` → Next.js
+- No package.json → standalone HTML
+
+Read `package.json` if present to understand the existing stack.
+
+## Step 2 — Install dependencies
+
+For Node.js projects, run:
+
+```bash
+npm install @nirholas/agent-kit @x402/mcp @modelcontextprotocol/sdk/client
+```
+
+If the project uses a lockfile other than `package-lock.json` (yarn.lock → yarn, pnpm-lock.yaml → pnpm), use the right package manager.
+
+## Step 3 — Create the agent entry file
+
+Create `agent.js` (or `agent.ts` if TypeScript is detected) in the project root with this structure, substituting `$ARGUMENTS` for the agent name:
+
+```js
+import { AgentKit } from '@nirholas/agent-kit';
+import { Client } from '@modelcontextprotocol/sdk/client/index.js';
+import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
+
+// Connect to the three.ws paid MCP tools
+const transport = new StdioClientTransport({
+ command: 'npx',
+ args: ['-y', '@3d-agent/mcp-server'],
+ env: {
+ MCP_EVM_PAYMENT_ADDRESS: process.env.EVM_WALLET_ADDRESS ?? '',
+ MCP_SVM_PAYMENT_ADDRESS: process.env.SOLANA_WALLET_ADDRESS ?? '',
+ },
+});
+
+const mcp = new Client({ name: '<AgentName>', version: '1.0.0' });
+await mcp.connect(transport);
+
+// Mount the three.ws chat + avatar panel
+const agent = new AgentKit({
+ name: '<AgentName>',
+ description: 'A three.ws AI agent',
+ endpoint: process.env.AGENT_ENDPOINT ?? 'http://localhost:3000',
+ onMessage: async (text, context) => {
+ // Your LLM call goes here — replace with Anthropic, OpenAI, or Vercel AI SDK
+ return `Echo: ${text}`;
+ },
+});
+
+// Use paid MCP tools
+export async function getPose(prompt) {
+ const result = await mcp.callTool('get_pose_seed', { prompt });
+ return JSON.parse(result.content[0].text);
+}
+
+export async function getTokenSnapshot(mint) {
+ const result = await mcp.callTool('pump_snapshot', { mint });
+ return JSON.parse(result.content[0].text);
+}
+
+export { agent, mcp };
+```
+
+Replace `<AgentName>` with the actual value from `$ARGUMENTS`.
+
+## Step 4 — Create `.env.example`
+
+If `.env.example` does not already exist, create it:
+
+```env
+# three.ws agent configuration
+AGENT_ENDPOINT=http://localhost:3000
+
+# Wallet addresses for x402 USDC payments to the MCP server
+EVM_WALLET_ADDRESS=0x...
+SOLANA_WALLET_ADDRESS=...
+
+# Optional: Helius for richer pump.fun data
+HELIUS_API_KEY=
+
+# Optional: Coinbase CDP for Bazaar discovery
+CDP_API_KEY_ID=
+CDP_API_KEY_SECRET=
+```
+
+If `.env.example` already exists, append only the missing keys.
+
+## Step 5 — Add npm script
+
+In `package.json`, add under `"scripts"`:
+```json
+"agent": "node agent.js"
+```
+
+## Step 6 — Report
+
+Tell the user:
+1. What files were created or modified
+2. To copy `.env.example` → `.env` and fill in wallet addresses
+3. To run `npm run agent` to start
+4. That the agent will be available at `http://localhost:3000` by default
+
+If any step fails (missing package.json, write permission error, etc.), report the exact error and ask how to proceed.
diff --git a/marketplace/plugins/three-ws-developer/commands/setup-mcp.md b/marketplace/plugins/three-ws-developer/commands/setup-mcp.md
new file mode 100644
index 000000000..8dcc5e7ba
--- /dev/null
+++ b/marketplace/plugins/three-ws-developer/commands/setup-mcp.md
@@ -0,0 +1,81 @@
+---
+description: Configure the @3d-agent/mcp-server in Claude Desktop, Claude Code, or Cursor — outputs the exact JSON snippet and optionally writes it to your config file.
+---
+
+You are helping the user add the `@3d-agent/mcp-server` to their MCP client config. Follow these steps precisely:
+
+## Step 1 — Detect OS and find the config file
+
+Check the user's platform:
+
+- **macOS Claude Desktop:** `~/Library/Application Support/Claude/claude_desktop_config.json`
+- **Windows Claude Desktop:** `%APPDATA%\Claude\claude_desktop_config.json`
+- **Claude Code (project):** `.mcp.json` in the current working directory
+- **Claude Code (global):** `~/.claude/claude_desktop_config.json`
+- **Cursor:** `~/.cursor/mcp.json`
+
+Use `uname -s` or `$OS` to detect the platform. Check which of these files already exists with the shell.
+
+## Step 2 — Collect wallet addresses
+
+Ask the user (in a single message) for:
+
+1. **EVM wallet address** (Base USDC payouts) — `0x...` format
+2. **Solana wallet address** (Solana USDC payouts) — base58 format
+3. **Helius API key** (optional, improves pump_snapshot data — get free at helius.dev)
+4. **CDP API key ID + secret** (optional, enables Coinbase Bazaar discovery — get at portal.cdp.coinbase.com)
+
+If the user skips any optional field, omit that env var from the config.
+
+## Step 3 — Generate the config snippet
+
+Produce the exact JSON block to add to their config file under `"mcpServers"`:
+
+```json
+{
+ "mcpServers": {
+ "3d-agent": {
+ "command": "npx",
+ "args": ["-y", "@3d-agent/mcp-server"],
+ "env": {
+ "MCP_EVM_PAYMENT_ADDRESS": "<their EVM address>",
+ "MCP_SVM_PAYMENT_ADDRESS": "<their Solana address>"
+ }
+ }
+ }
+}
+```
+
+Add optional env vars only if the user supplied them:
+- `"HELIUS_API_KEY": "<key>"` — better pump.fun token data
+- `"CDP_API_KEY_ID": "<id>"` and `"CDP_API_KEY_SECRET": "<secret>"` — Coinbase Bazaar discovery
+- `"SOLANA_RPC_URL": "https://mainnet.helius-rpc.com/?api-key=<key>"` — if Helius key provided
+
+If the config file already exists, read it first and **merge** the `"3d-agent"` entry into the existing `"mcpServers"` object rather than replacing the whole file.
+
+## Step 4 — Write or show
+
+Ask the user: "Should I write this to `<config path>` now, or do you want to paste it yourself?"
+
+- If they say write: use the Write or Edit tool to update the file.
+- If they say paste: display the final JSON block in a code fence with clear copy instructions.
+
+## Step 5 — Verify
+
+After writing, confirm the file is valid JSON with:
+```bash
+node -e "JSON.parse(require('fs').readFileSync('<path>', 'utf8')); console.log('valid')"
+```
+
+Then tell the user to restart Claude Desktop / Claude Code / Cursor for the tools to appear.
+
+## Tools available
+
+Once configured, these four paid tools will be available (settled in USDC via x402):
+
+| Tool | Price | What it does |
+|------|-------|--------------|
+| `get_pose_seed` | $0.001 | Deterministic pose map for a three.ws avatar |
+| `pump_snapshot` | $0.005 | Live pump.fun token snapshot — price, volume, holders |
+| `agent_reputation` | $0.01 | ERC-8004 reputation lookup on any EVM chain |
+| `vanity_grinder` | up to $0.50 | Mine a Solana keypair with a custom address prefix |
diff --git a/marketplace/plugins/three-ws-developer/commands/use-tools.md b/marketplace/plugins/three-ws-developer/commands/use-tools.md
new file mode 100644
index 000000000..2d8f8abdb
--- /dev/null
+++ b/marketplace/plugins/three-ws-developer/commands/use-tools.md
@@ -0,0 +1,67 @@
+---
+description: Show ready-to-run code for calling any of the four @3d-agent/mcp-server paid tools. Pass a tool name: /use-tools pump_snapshot
+---
+
+You are producing a working code example for a specific three.ws MCP tool. `$ARGUMENTS` is the tool name the user wants to use. If blank, show a menu of all four tools.
+
+## Tool catalog
+
+| Tool | Price | Input | Output |
+|------|-------|-------|--------|
+| `get_pose_seed` | $0.001 | `{ prompt: string }` | Pose map with Euler rotations (radians) + previewUrl |
+| `pump_snapshot` | $0.005 | `{ mint: string }` | USD price, 24h volume, holders, metadata, bundle signals |
+| `agent_reputation` | $0.01 | `{ agentId: string, chainId?: number }` | Reputation score, stake, recent events from ReputationRegistry |
+| `vanity_grinder` | up to $0.50 | `{ prefix: string, suffix?: string }` | Solana keypair whose address starts with `prefix` |
+
+## If `$ARGUMENTS` is blank
+
+List all four tools in a table and ask: "Which tool do you want to use?"
+
+## If `$ARGUMENTS` names a tool
+
+Produce a complete, runnable Node.js script for that tool. The script must:
+
+1. Spawn the MCP server via `StdioClientTransport` using `npx @3d-agent/mcp-server`
+2. Set `MCP_EVM_PAYMENT_ADDRESS` and `MCP_SVM_PAYMENT_ADDRESS` from env
+3. Use `wrapMCPClientWithPayment` from `@x402/mcp` for automatic 402 retry with a real EVM private key from `process.env.AGENT_EVM_PRIVATE_KEY`
+4. Call the tool and `console.log` the parsed result
+5. Close the transport
+
+### Template for `get_pose_seed`
+
+```js
+import { Client } from '@modelcontextprotocol/sdk/client/index.js';
+import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
+import { wrapMCPClientWithPayment } from '@x402/mcp';
+import { x402Client } from '@x402/core/client';
+import { ExactEvmScheme } from '@x402/evm/exact/client';
+import { privateKeyToAccount } from 'viem/accounts';
+
+const transport = new StdioClientTransport({
+ command: 'npx',
+ args: ['-y', '@3d-agent/mcp-server'],
+ env: {
+ MCP_EVM_PAYMENT_ADDRESS: process.env.MCP_EVM_PAYMENT_ADDRESS,
+ MCP_SVM_PAYMENT_ADDRESS: process.env.MCP_SVM_PAYMENT_ADDRESS ?? '',
+ },
+});
+
+const mcp = new Client({ name: 'demo', version: '1.0.0' });
+await mcp.connect(transport);
+
+const account = privateKeyToAccount(process.env.AGENT_EVM_PRIVATE_KEY);
+const x402 = new x402Client().register('eip155:8453', new ExactEvmScheme(account));
+const paid = wrapMCPClientWithPayment(mcp, x402, { autoPayment: true });
+
+const result = await paid.callTool('get_pose_seed', { prompt: 'warrior stance' });
+console.log(JSON.parse(result.content[0].text));
+
+await transport.close();
+```
+
+Adapt the tool name, input, and any tool-specific notes (e.g., for `vanity_grinder` note that the returned secret key must be treated as a secret and stored securely; for `agent_reputation` note that `agentId` can be an EVM address and `chainId` defaults to Base).
+
+After the code block, add a one-paragraph note on:
+- What env vars are required (`AGENT_EVM_PRIVATE_KEY`, `MCP_EVM_PAYMENT_ADDRESS`, and optionally `MCP_SVM_PAYMENT_ADDRESS`)
+- That the x402 payment (~$0.001–$0.50 USDC) is deducted automatically from the EVM wallet on each successful call
+- Where to get a free Helius RPC if they want better Solana data for `pump_snapshot`
diff --git a/pump-fun-skills/.claude-plugin/plugin.json b/pump-fun-skills/.claude-plugin/plugin.json
new file mode 100644
index 000000000..179fa15da
--- /dev/null
+++ b/pump-fun-skills/.claude-plugin/plugin.json
@@ -0,0 +1,11 @@
+{
+ "name": "three-ws-pump-fun",
+ "description": "Pump.fun on-chain trading skills — create coins, swap tokens, manage creator fees, tokenize agents, and drive live avatar reactions from the pump.fun feed.",
+ "version": "1.0.0",
+ "author": {
+ "name": "pump-fun"
+ },
+ "homepage": "https://pump.fun",
+ "license": "Apache-2.0",
+ "skills": "."
+}