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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat(autopilot): SOL spend cap + $THREE buy-only; publish autopilot-mcp 0.2.0
ni3ad593176ca85d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 066d50b7f..5977d9979 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -12,6 +12,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Docs · SAS Credentialed Attestations** (`/docs/sas-attestations`) — Set up the three.ws authority wallet and SAS_AUTHORITY_SECRET, bootstrap the Solana Attestation Service credential and schemas, and issue or read credentialed attestations.- **18 @three-ws SDKs are live on npm — and the x402 wallet now pays in $THREE** — The full @three-ws SDK suite is published to npm: 18 zero-dependency packages that wrap live three.ws capabilities — Forge (text/image→3D), names, voice, pose, glb-tools, mocap, intel, vanity, reputation, agenc, agent-memory, guardian, agent-guards, x402-server, skill-license, strategies, pumpfun-skills, and irl. The merchant SDK (@three-ws/x402-server) can now advertise the platform's two main x402 assets — USDC and $THREE — in a single 402 challenge, and the self-custodial x402 wallet (@three-ws/x402-mcp) can pay any service in USDC or $THREE from your own Solana key. Install any of them with npm i @three-ws/<name>. (`/docs`) `[sdk]`+- **Agent autopilot now spends SOL, not $THREE — and can never sell your $THREE** — We changed how an agent's autopilot is bounded. The daily spend cap is now denominated in SOL — the currency agents actually spend on gas and transfers — instead of $THREE, and the wallet_transfer action sends native SOL only. Autopilot refuses any attempt to send or sell $THREE: agents can buy, hold, and burn it, but never dispose of it. Updated across the dashboard, the API, and @three-ws/autopilot-mcp (v0.2.0). (`/docs/mcp`) `[improvement, sdk]`- **Agent profile avatars now stand and breathe instead of freezing in a T-pose** — Open any agent's profile and its 3D body is alive: the avatar settles into a natural standing idle — arms down, weight on its feet, subtle breathing and blinks — and turns slowly on a turntable, instead of hanging in the stiff arms-out T-pose the old static viewer showed. The profile now runs the same real-time animation engine as the rest of the platform, so the idle and gesture clips are retargeted onto whatever rig your avatar uses. Tap the avatar to open it full-screen and orbit it freely. If a device can't run 3D, it cleanly falls back to a still image. (`/agents`) `[improvement]`- **Agent Studio's Brain editor now has a clear Save & exit** — Building your agent's brain in the visual graph editor no longer feels like a one-way street. The editor's other buttons only moved you forward to the next section (Memory), so deep in the node graph there was no obvious way out. There's now a Save & exit button pinned in the Brain editor's footer that saves your wiring and takes you straight to your live agent page — and it always lands somewhere real even if a save hiccups, so you can never get stuck on the canvas. (`/agent-studio`) `[improvement]`- **Agents can now record and verify each other's actions over MCP — signed, on-chain-provable provenance** — A new Model Context Protocol server, @three-ws/provenance-mcp, exposes the agent action-provenance ledger: the append-only, tamper-evident trail of everything an agent did. An agent can append its own actions — each one signed with its EVM wallet (ERC-191) so authorship is cryptographically provable, not just claimed — and any agent can read another's trail and independently verify every signature offline by recovering the signer. The ledger is immutable: records are never edited or deleted, and reads are cursor-paginated and owner-scoped to your three.ws credential. This is the trust layer that makes a forked, purchased, or delegated agent believable — its history is provable math, not a database claim. `[sdk, feature, security]`diff --git a/data/changelog.json b/data/changelog.jsonindex 3e4a98969..0b39f9f6f 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,16 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-06-24",+ "title": "Agent autopilot now spends SOL, not $THREE — and can never sell your $THREE",+ "summary": "We changed how an agent's autopilot is bounded. The daily spend cap is now denominated in SOL — the currency agents actually spend on gas and transfers — instead of $THREE, and the wallet_transfer action sends native SOL only. Autopilot refuses any attempt to send or sell $THREE: agents can buy, hold, and burn it, but never dispose of it. Updated across the dashboard, the API, and @three-ws/autopilot-mcp (v0.2.0).",+ "tags": [+ "improvement",+ "sdk"+ ],+ "link": "/docs/mcp"+ },{"date": "2026-06-24","title": "18 @three-ws SDKs are live on npm — and the x402 wallet now pays in $THREE",diff --git a/docs/specs/agent-trading.md b/docs/specs/agent-trading.mdnew file mode 100644index 000000000..a05f578b7--- /dev/null+++ b/docs/specs/agent-trading.md@@ -0,0 +1,80 @@+# Spec — Agent trading capability (Feature B)++Status: **proposed** · Author: three.ws · Depends on: autopilot v0.2.0 (SOL spend cap + $THREE buy-only guard)++## Why++Today an agent's autopilot can create alerts, author briefings, and send **native SOL**. It cannot trade. The realistic, high-value autonomous behavior users want is **buying and selling pump.fun coins in SOL** — sniping new launches and acting on alpha — while treating **$THREE as buy-only** (accumulate/burn, never sell). This spec adds that capability on top of the v0.2.0 foundation.++## Principles (inherited from v0.2.0)++1. **SOL is the spend currency.** Every buy is denominated in SOL and counts against the daily SOL cap (`daily_spend_sol`). Sells return SOL.+2. **$THREE is a one-way valve.** The agent may *buy* $THREE (SOL → $THREE) and *burn* it, but a **sell of $THREE (or any transfer out of $THREE) is hard-refused server-side** — the same guard `validateWalletTransfer` already enforces, extended to the swap path.+3. **Runtime mints only.** Coins to trade are supplied at runtime (mint address from discovery/intel). Never hardcode, market, or recommend a specific non-$THREE mint in source, copy, or proposals (CLAUDE.md). $THREE remains the only coin the platform promotes.+4. **Server-side enforcement.** Scope, caps, slippage bounds, and the $THREE-sell ban live in `api/_lib/autopilot.js` / a new trade guard — the MCP client cannot bypass them.++## New autopilot action kind: `trade`++Extend `AUTOPILOT_ACTION_KINDS` with `trade` and `ACTION_TYPE.trade = 'autopilot.trade.executed'`.++**Params** (validated by a new `validateTrade`):+```+{+ side: "buy" | "sell",+ mint: "<solana mint>", // the coin to trade; "three"/$THREE allowed for side:"buy" ONLY+ amount_sol?: number, // required for buy — SOL to spend (counts against daily cap)+ amount_tokens?: number | "all", // required for sell — token units (or all) to sell back to SOL+ max_slippage_bps?: number, // default 100 (1%), hard ceiling e.g. 500+ reason: string+}+```++**Guards** (all server-side, deny — never partial-execute):+- `side:"sell"` with `mint === $THREE` (or the CA) → **refused** (`code: 'three_sell_forbidden'`). This is the buy-only valve.+- `side:"buy"`: `amount_sol > 0`, `spent_24h + amount_sol ≤ daily_spend_sol`, scope `trade` granted, `confirm:true` (reuse the irreversible-confirmation policy).+- `side:"sell"`: agent must hold the position; slippage within `max_slippage_bps`.+- Reuse `dailySolSpent` for buys; sells do not add to the spend tally (they return SOL).++## Execution path++Reuse existing building blocks — do **not** add a new swap implementation if one is reusable:+- Quote: `@three-ws/pumpfun-mcp` already exposes `pumpfun_quote_swap` / `quote_swap`; the backend equivalent should quote via the same Jupiter/pump.fun route.+- Buy: pattern already proven in `avatar-agent-mcp` (`pump_buy`) and the agent custodial wallet path (`recoverSolanaAgentKeypair`, `submitProtected`).+- Settle: bundle/submit via the same protected-send path used by `transferNativeSol`.+- Record: write a signed `agent_actions` row (`autopilot.trade.executed`) with provenance, mint, side, amounts, signature, realized SOL — same receipt discipline as `wallet_transfer`.++## MCP surface++Two options — **recommended: a dedicated `@three-ws/trading-mcp`** rather than overloading autopilot, because trading has its own discovery + quote + position surface:+- `quote_trade` (read) — price + expected out + slippage for a prospective buy/sell.+- `list_positions` (read) — open positions with cost basis + unrealized PnL (reuse `portfolio-mcp` data).+- `execute_trade` (write · destructive) — buy/sell in SOL; `confirm:true`; $THREE-sell refused.+- Autopilot integration: `generate_proposals` may emit `trade` proposals (grounded in `intel-mcp` smart-money / signal memories); they flow through the existing dryrun → confirm → execute → signed-receipt loop.++`portfolio-mcp`'s `send_transfer` already lazy-loads `@solana/spl-token`; the trading server should follow the same lazy-import discipline to avoid the ESM load crash.++## Discovery → decision (where alpha comes from)++Trading proposals should cite real signals, never guess:+- `intel-mcp` — smart-money score, KOL trades, signal-feed accuracy.+- `pumpfun-mcp` — new/trending/graduating tokens, bonding-curve + holder analysis.+- Alert fires (`alerts-mcp`) → a candidate `trade` proposal the owner reviews.++## Risk & limits++- **Per-trade cap** + **daily SOL cap** (existing) + **max open positions** + **slippage ceiling**.+- **Confirmation**: buys/sells are irreversible → `require_confirm` applies, like `wallet_transfer`.+- **Trust gating**: only agents at `trusted`/`autonomous` trust may auto-execute reversibly-scoped trades (sells of a held position); buys always confirm.+- **No $THREE sell, ever** — enforced at validate + execute, covered by a test mirroring the v0.2.0 `three_sell_forbidden` case.++## Phased plan++1. **Quotes + positions (read-only):** `quote_trade`, `list_positions` over live routes. No funds move. Ship + verify.+2. **Buy (SOL → coin):** `execute_trade side:"buy"`, confirm-gated, daily-cap-bounded, signed receipt.+3. **Sell (coin → SOL):** `execute_trade side:"sell"` for held positions; $THREE-sell hard-refused.+4. **Autopilot `trade` proposals:** generation from intel/signal memories → dryrun → confirm → execute.+5. **Changelog + docs** at each phase; publish `@three-ws/trading-mcp` (start 0.1.0) and bump `autopilot-mcp` when the `trade` kind lands.++## Definition of done (per phase)++Real routes (no mocks), server-side guards with tests (including the $THREE-sell refusal), confirm-gated irreversible actions, signed `agent_actions` receipts, MCP descriptions accurate, changelog entry, and `npm run test:mcp` green.diff --git a/packages/autopilot-mcp/README.md b/packages/autopilot-mcp/README.mdindex b2ed2e610..7a6decf8b 100644--- a/packages/autopilot-mcp/README.md+++ b/packages/autopilot-mcp/README.md@@ -4,7 +4,7 @@<h1 align="center">@three-ws/autopilot-mcp</h1>-<p align="center"><strong>An AI agent's own autonomous-execution control plane — set autopilot scopes, daily $THREE spend caps, and auto-execute, then run the propose → execute → undo loop, all from any MCP client.</strong></p>+<p align="center"><strong>An AI agent's own autonomous-execution control plane — set autopilot scopes, a daily SOL spend cap, and auto-execute, then run the propose → execute → undo loop, all from any MCP client.</strong></p><p align="center"><a href="https://www.npmjs.com/package/@three-ws/autopilot-mcp"><img alt="npm" src="https://img.shields.io/npm/v/@three-ws/autopilot-mcp?logo=npm&color=cb3837"></a>@@ -16,11 +16,11 @@----> A [Model Context Protocol](https://modelcontextprotocol.io) server that gives an AI agent **its own execution control plane** over stdio. The agent configures the boundaries it is allowed to act within — capability scopes, a daily $THREE spend ceiling, auto-execute and confirmation policy — then drives the full **propose → review → execute → undo** loop. No human in the loop, but every boundary is **enforced server-side**: an out-of-scope or over-budget action is denied, never executed.+> A [Model Context Protocol](https://modelcontextprotocol.io) server that gives an AI agent **its own execution control plane** over stdio. The agent configures the boundaries it is allowed to act within — capability scopes, a daily SOL spend ceiling, auto-execute and confirmation policy — then drives the full **propose → review → execute → undo** loop. No human in the loop, but every boundary is **enforced server-side**: an out-of-scope or over-budget action is denied, never executed.This is the keystone of the autonomous-agent story. Autopilot config and execution used to live only behind the three.ws UI/API; this server exposes them so an agent can manage its own guardrails and act within them.-> ⚠️ **This server is authenticated and write-heavy.** `execute_proposal` can move **real $THREE** on Solana mainnet and is **irreversible**. Scopes, the daily spend cap, and confirmation are all enforced on the three.ws backend — this server cannot bypass them.+> ⚠️ **This server is authenticated and write-heavy.** `execute_proposal` can move **real SOL** on Solana mainnet and is **irreversible**. It sends native SOL only — the agent never sells or sends **$THREE** (it only buys, holds, or burns it). Scopes, the daily SOL spend cap, and confirmation are all enforced on the three.ws backend — this server cannot bypass them.## Install@@ -66,21 +66,21 @@ THREE_WS_API_KEY=sk_live_… npx -y @modelcontextprotocol/inspector npx @three-w## Authentication-Every autopilot endpoint is **owner-only**, so this server is authenticated. Set **`THREE_WS_API_KEY`** to the agent owner's three.ws credential — either a three.ws **API key** (`sk_live_…` / `sk_test_…`) or an **OAuth access token**. It is sent as `Authorization: Bearer …` on every request and identifies the owning user; the agent can only manage agents that user owns. The credential can authorize **real $THREE transfers** via `execute_proposal` — store it like a password. `THREE_WS_TOKEN` and `THREE_WS_BEARER` are accepted as aliases.+Every autopilot endpoint is **owner-only**, so this server is authenticated. Set **`THREE_WS_API_KEY`** to the agent owner's three.ws credential — either a three.ws **API key** (`sk_live_…` / `sk_test_…`) or an **OAuth access token**. It is sent as `Authorization: Bearer …` on every request and identifies the owning user; the agent can only manage agents that user owns. The credential can authorize **real SOL transfers** via `execute_proposal` — store it like a password. `THREE_WS_TOKEN` and `THREE_WS_BEARER` are accepted as aliases.## Tools| Tool | Type | What it does || ------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------ |-| `get_autopilot_config` | read-only | Read the agent's guardrails: enabled, scopes, auto-execute, daily $THREE cap, confirmation policy — plus trust. |-| `set_autopilot_config` | write · idempotent | Update those guardrails with a partial patch (grant scopes, set the daily $THREE ceiling, arm/disarm). No action taken. |+| `get_autopilot_config` | read-only | Read the agent's guardrails: enabled, scopes, auto-execute, daily SOL cap, confirmation policy — plus trust. |+| `set_autopilot_config` | write · idempotent | Update those guardrails with a partial patch (grant scopes, set the daily SOL ceiling, arm/disarm). No action taken. || `generate_proposals` | write | Run the agent's mind: turn high-salience memories + reflections into real, provenance-cited candidate actions. || `list_proposals` | read-only | The proposal queue — ids, kinds, rationales, params, status, cited sources. Filter by status. || `dryrun_proposal` | read-only | Preview what executing a proposal *would* do (scope / cap / balance checks), without taking any action. || `adjust_proposal` | write · idempotent | Edit a pending proposal's params before executing (tune a threshold, amount, cadence). Validated server-side. |-| `execute_proposal` | **write · destructive** | Take the real action. ⚠️ A `wallet_transfer` moves real $THREE on mainnet, irreversible — needs `confirm:true`. |+| `execute_proposal` | **write · destructive** | Take the real action. ⚠️ A `wallet_transfer` moves real SOL on mainnet, irreversible — needs `confirm:true`. Never sends $THREE. || `dismiss_proposal` | write | Drop a pending proposal; records a feedback memory so the agent stops proposing it. |-| `undo_action` | write | Reverse a reversible execution (delete the alert rule / briefing); records a feedback memory. $THREE transfers can't be undone. |+| `undo_action` | write | Reverse a reversible execution (delete the alert rule / briefing); records a feedback memory. SOL transfers can't be undone. || `list_autopilot_activity` | read-only | The append-only signed receipts log — every autonomous action, its outcome, provenance, and signature. || `compute_trust` | read-only | The agent's earned trust level (sandbox → trusted → autonomous), computed from real action history. |@@ -91,11 +91,11 @@ The five read tools reflect live state (proposals, receipts, trust move betweenEvery tool takes **`agentId`** (the UUID of an agent you own) except `list_autopilot_activity`, where it is optional (omit to aggregate across all your agents).- **`get_autopilot_config`** / **`compute_trust`** / **`generate_proposals`** — `agentId`.-- **`set_autopilot_config`** — `agentId`, plus any of: `enabled` (bool), `scopes` (`{ create_alert?, briefing?, wallet_transfer? }`), `autoExecute` (`{ create_alert?, briefing? }`), `dailySpendThree` (number, whole $THREE; 0 disables spending), `requireConfirm` (bool).+- **`set_autopilot_config`** — `agentId`, plus any of: `enabled` (bool), `scopes` (`{ create_alert?, briefing?, wallet_transfer? }`), `autoExecute` (`{ create_alert?, briefing? }`), `dailySpendSol` (number, SOL; 0 disables spending), `requireConfirm` (bool).- **`list_proposals`** — `agentId`, `status` (`pending` | `executed` | `dismissed` | `undone` | `failed`), `limit` (1–200).- **`dryrun_proposal`** / **`dismiss_proposal`** / **`undo_action`** — `agentId`, `proposalId`.- **`adjust_proposal`** — `agentId`, `proposalId`, `params` (full replacement params for the proposal's kind).-- **`execute_proposal`** — `agentId`, `proposalId`, `confirm` (bool — required for an irreversible $THREE transfer).+- **`execute_proposal`** — `agentId`, `proposalId`, `confirm` (bool — required for an irreversible SOL transfer).- **`list_autopilot_activity`** — `agentId` (optional), `limit` (1–200), `cursor` (from a prior `next_cursor`).## The loop@@ -104,7 +104,7 @@ Every tool takes **`agentId`** (the UUID of an agent you own) except `list_autop// 1. Grant the agent a reversible capability// set_autopilot_config> { "agentId": "…", "enabled": true, "scopes": { "create_alert": true } }-{ "ok": true, "config": { "enabled": true, "scopes": { "create_alert": true, "briefing": false, "wallet_transfer": false }, "daily_spend_three": 0, "require_confirm": true } }+{ "ok": true, "config": { "enabled": true, "scopes": { "create_alert": true, "briefing": false, "wallet_transfer": false }, "daily_spend_sol": 0, "require_confirm": true } }// 2. Let the agent propose actions from its memory// generate_proposals@@ -130,7 +130,7 @@ Every tool takes **`agentId`** (the UUID of an agent you own) except `list_autop{ "ok": true, "proposal": { "status": "undone" } }```-Spending real $THREE requires the owner to have granted `scopes.wallet_transfer`, set a positive `dailySpendThree`, and (unless pre-authorized) `execute_proposal` must be re-issued with `confirm:true`. All three are checked server-side.+Spending real SOL requires the owner to have granted `scopes.wallet_transfer`, set a positive `dailySpendSol`, and (unless pre-authorized) `execute_proposal` must be re-issued with `confirm:true`. All three are checked server-side. The agent spends SOL only — it never sells or sends $THREE.## Requirements@@ -142,7 +142,7 @@ Spending real $THREE requires the owner to have granted `scopes.wallet_transfer`| Variable | Required | Default | Notes || --------------------- | -------- | ------------------ | ---------------------------------------------------------------- |-| `THREE_WS_API_KEY` | **yes** | — | three.ws API key (`sk_live_…`) or OAuth access token. Secret. Can move real $THREE. |+| `THREE_WS_API_KEY` | **yes** | — | three.ws API key (`sk_live_…`) or OAuth access token. Secret. Can move real SOL. || `THREE_WS_BASE` | no | `https://three.ws` | Override only when self-hosting or targeting a preview. || `THREE_WS_TIMEOUT_MS` | no | `60000` | Per-request timeout (generation runs a server-side LLM pass). |diff --git a/packages/autopilot-mcp/package.json b/packages/autopilot-mcp/package.jsonindex 110e3e017..e6fd62384 100644--- a/packages/autopilot-mcp/package.json+++ b/packages/autopilot-mcp/package.json@@ -1,8 +1,8 @@{"name": "@three-ws/autopilot-mcp",- "version": "0.1.0",+ "version": "0.2.0","mcpName": "io.github.nirholas/autopilot-mcp",- "description": "An AI agent's own autonomous-execution control plane over MCP — set autopilot scopes, daily $THREE spend caps, and auto-execute, then run the propose → execute → undo loop. Authenticated, write-heavy; scope + spend enforcement is server-side.",+ "description": "An AI agent's own autonomous-execution control plane over MCP — set autopilot scopes, a daily SOL spend cap, and auto-execute, then run the propose → execute → undo loop. The agent spends SOL and never sells $THREE. Authenticated, write-heavy; scope + spend enforcement is server-side.","type": "module","author": "nirholas <[email protected]>","license": "Apache-2.0",diff --git a/packages/autopilot-mcp/server.json b/packages/autopilot-mcp/server.jsonindex f6ffa2ce4..b01d1c388 100644--- a/packages/autopilot-mcp/server.json+++ b/packages/autopilot-mcp/server.json@@ -2,7 +2,7 @@"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json","name": "io.github.nirholas/autopilot-mcp","title": "three.ws Autopilot",- "description": "Set autopilot scopes and daily $THREE spend caps, then propose, execute, and undo agent actions.",+ "description": "Set autopilot scopes and a daily SOL spend cap, then propose, execute, and undo agent actions.","websiteUrl": "https://three.ws","icons": [{@@ -18,12 +18,12 @@"source": "github","subfolder": "packages/autopilot-mcp"},- "version": "0.1.0",+ "version": "0.2.0","packages": [{"registryType": "npm","identifier": "@three-ws/autopilot-mcp",- "version": "0.1.0",+ "version": "0.2.0","runtimeHint": "npx","transport": {"type": "stdio"@@ -31,7 +31,7 @@"environmentVariables": [{"name": "THREE_WS_API_KEY",- "description": "REQUIRED. The agent owner's three.ws credential — a three.ws API key (sk_live_… / sk_test_…) or an OAuth access token. Sent as Authorization: Bearer on every request; every autopilot endpoint is owner-scoped and rejects unauthenticated calls. This credential can move real $THREE via execute_proposal — treat it like a password. THREE_WS_TOKEN / THREE_WS_BEARER are accepted aliases.",+ "description": "REQUIRED. The agent owner's three.ws credential — a three.ws API key (sk_live_… / sk_test_…) or an OAuth access token. Sent as Authorization: Bearer on every request; every autopilot endpoint is owner-scoped and rejects unauthenticated calls. This credential can move real SOL via execute_proposal — treat it like a password. THREE_WS_TOKEN / THREE_WS_BEARER are accepted aliases.","format": "string","isRequired": true,"isSecret": truediff --git a/packages/autopilot-mcp/src/config.js b/packages/autopilot-mcp/src/config.jsindex a8f4e91ad..f66c417dc 100644--- a/packages/autopilot-mcp/src/config.js+++ b/packages/autopilot-mcp/src/config.js@@ -1,7 +1,7 @@// Centralized env + HTTP base for the autopilot MCP.//// This server is the agent's OWN execution control plane: it reads and writes-// the real three.ws autopilot surface (scopes, daily $THREE spend caps, the+// the real three.ws autopilot surface (scopes, daily SOL spend caps, the// propose → execute → undo loop) over live HTTP. Every autopilot route is// owner-only, so this server is authenticated — it carries a three.ws API key// (or OAuth access token) as a Bearer credential on every request. It signsdiff --git a/packages/autopilot-mcp/src/index.js b/packages/autopilot-mcp/src/index.jsindex a5624b9bd..7c0b97b14 100644--- a/packages/autopilot-mcp/src/index.js+++ b/packages/autopilot-mcp/src/index.js@@ -4,11 +4,11 @@// An AI agent's own autonomous-execution control plane over the Model Context// Protocol. It lets the agent manage its OWN guardrails and act within them —// no human in the loop, but every boundary enforced server-side:-// • get_autopilot_config / set_autopilot_config — scopes, daily $THREE spend+// • get_autopilot_config / set_autopilot_config — scopes, daily SOL spend// cap, auto-execute flags, confirmation policy// • generate_proposals — turn high-salience memories into real candidate actions// • list_proposals / dryrun_proposal / adjust_proposal — review the queue-// • execute_proposal — take the real action (⚠️ can move real $THREE; irreversible)+// • execute_proposal — take the real action (⚠️ can move real SOL; irreversible)// • undo_action / dismiss_proposal — close the trust loop// • list_autopilot_activity — the signed receipts log// • compute_trust — the agent's earned reputation@@ -16,7 +16,8 @@// AUTHENTICATED + WRITE-HEAVY. Every route is owner-only; the agent's three.ws// API key (or OAuth access token) is supplied via THREE_WS_API_KEY and carried as// a Bearer credential. Scope/spend/confirmation enforcement lives server-side —-// this server never bypasses it. $THREE is the only coin referenced.+// this server never bypasses it. The agent spends SOL and only ever buys, holds,+// or burns $THREE — it never sells or sends it.//// Run standalone:// THREE_WS_API_KEY=sk_live_… node packages/autopilot-mcp/src/index.js@@ -78,18 +79,19 @@ export function buildServer() {instructions:"three.ws Autopilot MCP — an agent's own execution control plane. The agent manages its OWN " +'autonomy boundaries and acts within them, bounded by real, server-enforced scopes and spend ' +- 'caps. Flow: get_autopilot_config to read scopes + daily $THREE cap + trust; set_autopilot_config ' ++ 'caps. Flow: get_autopilot_config to read scopes + daily SOL cap + trust; set_autopilot_config ' +'to grant capabilities (create_alert, briefing, wallet_transfer), set auto-execute, and the daily ' +'spend ceiling; generate_proposals to turn high-salience memories into real, provenance-cited ' +'candidate actions; list_proposals to read the queue; dryrun_proposal to preview a proposal ' +'(scope/cap/balance checks) without acting; adjust_proposal to tune a pending one; execute_proposal ' +- 'to take the real action — ⚠️ a wallet_transfer moves REAL $THREE on Solana mainnet, is ' ++ 'to take the real action — ⚠️ a wallet_transfer moves REAL SOL on Solana mainnet, is ' +'IRREVERSIBLE, requires confirm:true, and is capped by the daily budget; undo_action reverses a ' +'reversible execution; dismiss_proposal drops one (both record feedback memories so the agent ' +'learns the boundary); list_autopilot_activity is the append-only signed receipts log; ' +'compute_trust is the agent\'s earned reputation. Every scope, confirmation, and spend cap is ' +'enforced server-side — these tools cannot bypass it. Requires THREE_WS_API_KEY (a three.ws API ' +- 'key or OAuth access token for the agent owner). $THREE is the only coin.',+ 'key or OAuth access token for the agent owner). The agent spends SOL and only ever buys, ' ++ 'holds, or burns $THREE — it never sells or sends it.',},);diff --git a/packages/autopilot-mcp/src/tools/adjust-proposal.js b/packages/autopilot-mcp/src/tools/adjust-proposal.jsindex f39220661..f8925c883 100644--- a/packages/autopilot-mcp/src/tools/adjust-proposal.js+++ b/packages/autopilot-mcp/src/tools/adjust-proposal.js@@ -20,10 +20,11 @@ export const def = {'create_alert → { asset:"three"|<mint>, condition:"price_above"|"price_below"|"graduation"|"whale_buy", ' +'threshold_usd?|threshold_sol? }; ' +'briefing → { summary, cadence:"once"|"daily"|"weekly", topic }; ' +- 'wallet_transfer → { recipient:<solana addr>, amount_three:number, reason? }. ' ++ 'wallet_transfer → { recipient:<solana addr>, amount_sol:number, reason? }. ' +'An invalid edit is rejected with the reason and nothing changes. Only a pending proposal can be ' +- 'adjusted. WRITE but idempotent (no action taken; re-applying the same params is a no-op). The only ' +- 'coin is $THREE — use asset:"three" for a $THREE alert. Returns the updated proposal.',+ 'adjusted. WRITE but idempotent (no action taken; re-applying the same params is a no-op). For alerts ' ++ 'the only coin is $THREE (asset:"three"); wallet_transfer sends SOL only and never sells or sends ' ++ '$THREE. Returns the updated proposal.',inputSchema: {agentId: z.string()diff --git a/packages/autopilot-mcp/src/tools/dryrun-proposal.js b/packages/autopilot-mcp/src/tools/dryrun-proposal.jsindex 8f228b2f5..e86f893e5 100644--- a/packages/autopilot-mcp/src/tools/dryrun-proposal.js+++ b/packages/autopilot-mcp/src/tools/dryrun-proposal.js@@ -15,7 +15,7 @@ export const def = {description:'Preview exactly what executing a proposal WOULD do, without taking any action. Returns the kind, a ' +'plain-language "willDo" sentence, and a checklist of guard checks (scope granted? params valid? ' +- 'within the daily $THREE cap? wallet balance covers a transfer?) plus a `blocked` flag if any check ' ++ 'within the daily SOL cap? wallet balance covers a transfer?) plus a `blocked` flag if any check ' +'fails. Always dry-run an irreversible wallet_transfer before executing it. Performs a live balance ' +'read but no write and no spend — safe to call freely. Read-only.',inputSchema: {diff --git a/packages/autopilot-mcp/src/tools/execute-proposal.js b/packages/autopilot-mcp/src/tools/execute-proposal.jsindex 27f0334b7..a3292e7c3 100644--- a/packages/autopilot-mcp/src/tools/execute-proposal.js+++ b/packages/autopilot-mcp/src/tools/execute-proposal.js@@ -4,8 +4,9 @@// → { proposal, receipt, action, trust }.//// This is the funds-touching endpoint. A `wallet_transfer` proposal moves REAL-// $THREE on Solana mainnet and is IRREVERSIBLE — it requires confirm:true (unless-// the owner durably pre-authorized it) and is capped by the daily $THREE budget.+// SOL on Solana mainnet and is IRREVERSIBLE — it requires confirm:true (unless+// the owner durably pre-authorized it) and is capped by the daily SOL budget.+// It sends native SOL only — the agent never sells or sends $THREE.// `create_alert` and `briefing` are real writes too, but reversible via undo_action.// Scope, confirmation, and spend caps are all enforced SERVER-SIDE — this tool// cannot bypass them; an out-of-scope or over-budget call is denied, not executed.@@ -17,13 +18,13 @@ import { apiRequest } from '../lib/api.js';export const def = {name: 'execute_proposal',title: 'Execute an autopilot proposal (moves real value)',- // EXECUTION: a wallet_transfer proposal moves real $THREE on mainnet, irreversible.+ // EXECUTION: a wallet_transfer proposal moves real SOL on mainnet, irreversible.annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },description:'EXECUTE a proposal for real, within the owner-granted scope. ⚠️ This is the funds-touching action: a ' +- '`wallet_transfer` proposal sends REAL $THREE on Solana mainnet and is IRREVERSIBLE — you MUST pass ' ++ '`wallet_transfer` proposal sends REAL SOL on Solana mainnet and is IRREVERSIBLE — you MUST pass ' +'confirm:true for it (unless the owner durably pre-authorized that scope), and it is capped by the ' +- 'daily $THREE budget. `create_alert` and `briefing` are real writes but reversible via undo_action. ' ++ 'daily SOL budget. It sends native SOL only — never $THREE. `create_alert` and `briefing` are real writes but reversible via undo_action. ' +'Always dryrun_proposal first. Scope, confirmation, and spend caps are enforced SERVER-SIDE; this tool ' +'cannot override them — an out-of-scope, over-budget, or unconfirmed call is denied (no action taken). ' +'Returns the updated proposal, a human receipt, the signed action-log id, and updated trust.',@@ -39,7 +40,7 @@ export const def = {confirm: z.boolean().optional()- .describe('Must be true to execute an irreversible $THREE wallet_transfer (when require_confirm is on). Ignored for reversible kinds.'),+ .describe('Must be true to execute an irreversible SOL wallet_transfer (when require_confirm is on). Ignored for reversible kinds.'),},async handler(args) {const agentId = String(args?.agentId ?? '').trim();diff --git a/packages/autopilot-mcp/src/tools/generate-proposals.js b/packages/autopilot-mcp/src/tools/generate-proposals.jsindex ab7c2b36d..7636e496d 100644--- a/packages/autopilot-mcp/src/tools/generate-proposals.js+++ b/packages/autopilot-mcp/src/tools/generate-proposals.js@@ -5,7 +5,7 @@// Generation reads the agent's high-salience memories + pending reflections and// synthesizes concrete, provenance-cited proposals, persisting them to the queue.// Reversible proposals the owner scoped for auto-execution may run immediately-// (server-side); irreversible $THREE transfers never auto-run — they stay pending.+// (server-side); irreversible SOL transfers never auto-run — they stay pending.import { z } from 'zod';@@ -21,7 +21,7 @@ export const def = {"Run the agent's mind: read its high-salience memories and pending reflections and synthesize real, " +'concrete autopilot proposals — each citing the exact memories that justify it. New proposals are ' +'persisted to the queue (see list_proposals). WRITE: any reversible proposal the owner has scoped for ' +- 'auto-execution may run immediately and is reported under `autoRan`; irreversible $THREE transfers ' ++ 'auto-execution may run immediately and is reported under `autoRan`; irreversible SOL transfers ' +'never auto-run — they stay pending for explicit execute_proposal. Returns the created proposals, the ' +'autoRan receipts, the generation `source` (reflection | memory | heuristic), what was `scanned`, and ' +'updated trust. Deduped server-side, so calling it repeatedly will not enqueue duplicates.',diff --git a/packages/autopilot-mcp/src/tools/get-config.js b/packages/autopilot-mcp/src/tools/get-config.jsindex 3a6ad5823..b6e58d696 100644--- a/packages/autopilot-mcp/src/tools/get-config.js+++ b/packages/autopilot-mcp/src/tools/get-config.js@@ -13,7 +13,7 @@ export const def = {description:"Read the agent's autopilot permission model: whether autopilot is enabled, which capability " +'scopes the owner granted (create_alert, briefing, wallet_transfer), which reversible scopes may ' +- 'auto-execute, the daily $THREE spend ceiling (whole tokens; 0 = no spending), and whether ' ++ 'auto-execute, the daily SOL spend ceiling (in SOL; 0 = no spending), and whether ' +'irreversible actions require explicit confirmation. Also returns the live trust level (sandbox → ' +'trusted → autonomous) computed from real action history. Nothing the agent can do exists outside ' +'these owner-granted scopes — read this before proposing or executing. Read-only.',diff --git a/packages/autopilot-mcp/src/tools/undo-action.js b/packages/autopilot-mcp/src/tools/undo-action.jsindex 7c901785f..74c32fb8d 100644--- a/packages/autopilot-mcp/src/tools/undo-action.js+++ b/packages/autopilot-mcp/src/tools/undo-action.js@@ -3,7 +3,7 @@// Wraps POST /api/autopilot/proposals { action:'undo', agentId, proposalId } → { proposal, trust }.// Deletes the real artifact the execution created (the alert rule or the briefing// notification) and records a feedback memory so the agent learns the boundary.-// A $THREE wallet_transfer is on-chain and CANNOT be undone — the server rejects it.+// A SOL wallet_transfer is on-chain and CANNOT be undone — the server rejects it.import { z } from 'zod';@@ -18,7 +18,7 @@ export const def = {description:'Reverse a reversible executed proposal: deletes the real artifact the execution created — the alert ' +'rule (create_alert) or the briefing notification (briefing) — and records a feedback memory so the ' +- 'agent learns to be more conservative next time. WRITE. NOTE: an irreversible $THREE wallet_transfer ' ++ 'agent learns to be more conservative next time. WRITE. NOTE: an irreversible SOL wallet_transfer ' +'is on-chain and cannot be undone — the server rejects that with `irreversible`; to send value back ' +'you would have to execute a new transfer. Returns the updated proposal (status → undone) and trust.',inputSchema: {diff --git a/public/changelog.json b/public/changelog.jsonindex 57e48213c..f8a78d7c4 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-24T09:35:56.686Z",+ "generated_at": "2026-06-24T09:41:55.088Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -36,6 +36,17 @@"sdk"]},+ {+ "date": "2026-06-24",+ "type": "update",+ "title": "Agent autopilot now spends SOL, not $THREE — and can never sell your $THREE",+ "summary": "We changed how an agent's autopilot is bounded. The daily spend cap is now denominated in SOL — the currency agents actually spend on gas and transfers — instead of $THREE, and the wallet_transfer action sends native SOL only. Autopilot refuses any attempt to send or sell $THREE: agents can buy, hold, and burn it, but never dispose of it. Updated across the dashboard, the API, and @three-ws/autopilot-mcp (v0.2.0).",+ "link": "/docs/mcp",+ "tags": [+ "improvement",+ "sdk"+ ]+ },{"date": "2026-06-24","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex bba66614b..2b38e9396 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -30,6 +30,14 @@<category>sdk</category><description>The full @three-ws SDK suite is published to npm: 18 zero-dependency packages that wrap live three.ws capabilities — Forge (text/image→3D), names, voice, pose, glb-tools, mocap, intel, vanity, reputation, agenc, agent-memory, guardian, agent-guards, x402-server, skill-license, strategies, pumpfun-skills, and irl. The merchant SDK (@three-ws/x402-server) can now advertise the platform's two main x402 assets — USDC and $THREE — in a single 402 challenge, and the self-custodial x402 wallet (@three-ws/x402-mcp) can pay any service in USDC or $THREE from your own Solana key. Install any of them with npm i @three-ws/<name>.</description></item>+ <item>+ <title>Agent autopilot now spends SOL, not $THREE — and can never sell your $THREE</title>+ <link>https://three.ws/docs/mcp</link>+ <guid isPermaLink="false">2026-06-24:Agent autopilot now spends SOL, not $THREE — and can never sell your $THREE</guid>+ <pubDate>Wed, 24 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>We changed how an agent's autopilot is bounded. The daily spend cap is now denominated in SOL — the currency agents actually spend on gas and transfers — instead of $THREE, and the wallet_transfer action sends native SOL only. Autopilot refuses any attempt to send or sell $THREE: agents can buy, hold, and burn it, but never dispose of it. Updated across the dashboard, the API, and @three-ws/autopilot-mcp (v0.2.0).</description>+ </item><item><title>Agent profile avatars now stand and breathe instead of freezing in a T-pose</title><link>https://three.ws/agents</link>diff --git a/public/features.json b/public/features.jsonindex 0d707a0d6..588a5ed20 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-24T09:35:56.674Z",+ "generated_at": "2026-06-24T09:41:55.075Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/tests/autopilot.test.js b/tests/autopilot.test.jsindex fb2ec4eb2..f5290c8fd 100644--- a/tests/autopilot.test.js+++ b/tests/autopilot.test.js@@ -42,7 +42,7 @@ describe('normalizeAutopilotConfig', () => {const c = normalizeAutopilotConfig(undefined);expect(c.enabled).toBe(false);expect(c.scopes).toEqual({ create_alert: false, briefing: false, wallet_transfer: false });- expect(c.daily_spend_three).toBe(0);+ expect(c.daily_spend_sol).toBe(0);expect(c.require_confirm).toBe(true);});@@ -51,14 +51,14 @@ describe('normalizeAutopilotConfig', () => {enabled: true,scopes: { create_alert: 'yes', briefing: true },auto_execute: { create_alert: 1 },- daily_spend_three: -5,+ daily_spend_sol: -5,require_confirm: false,});expect(c.enabled).toBe(true);expect(c.scopes.create_alert).toBe(false); // 'yes' is not strictly trueexpect(c.scopes.briefing).toBe(true);expect(c.auto_execute.create_alert).toBe(false); // 1 is not strictly true- expect(c.daily_spend_three).toBe(0); // negative clamped+ expect(c.daily_spend_sol).toBe(0); // negative clampedexpect(c.require_confirm).toBe(false);});@@ -108,11 +108,13 @@ describe('validateProposal — briefing & wallet_transfer', () => {});it('validates a wallet_transfer recipient + amount', () => {- const v = validateProposal('wallet_transfer', { recipient: SYNTH_ADDR, amount_three: 5, reason: 'tip' });+ const v = validateProposal('wallet_transfer', { recipient: SYNTH_ADDR, amount_sol: 5, reason: 'tip' });expect(v.ok).toBe(true);- expect(v.params.amount_three).toBe(5);- expect(validateProposal('wallet_transfer', { recipient: 'bad', amount_three: 5 }).ok).toBe(false);- expect(validateProposal('wallet_transfer', { recipient: SYNTH_ADDR, amount_three: 0 }).ok).toBe(false);+ expect(v.params.amount_sol).toBe(5);+ expect(validateProposal('wallet_transfer', { recipient: 'bad', amount_sol: 5 }).ok).toBe(false);+ expect(validateProposal('wallet_transfer', { recipient: SYNTH_ADDR, amount_sol: 0 }).ok).toBe(false);+ // Buy-only $THREE: a transfer routed through a token mint is refused.+ expect(validateProposal('wallet_transfer', { recipient: SYNTH_ADDR, amount_sol: 1, mint: 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump' }).ok).toBe(false);});it('rejects unknown kinds', () => {