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
docs(changelog): update generated_at timestamp in changelog and features files
nirholasb3ad379a4056
diff --git a/api/_lib/solana/connection.js b/api/_lib/solana/connection.jsindex eb4608cc1..af0fb441c 100644--- a/api/_lib/solana/connection.js+++ b/api/_lib/solana/connection.js@@ -608,6 +608,14 @@ function maskUrl(url) {}}+// Render a cooldown for the failover log. Whole minutes read fine for the long+// windows, but rounding sub-minute ones to `1m` overstates them by double, and+// the shortest window (a policy block that keeps the lane in service) is exactly+// the one an operator must not confuse with a real bench. Seconds below a minute.+function formatCooldown(ms) {+ return ms < 60_000 ? `${Math.round(ms / 1000)}s` : `${Math.round(ms / 60_000)}m`;+}+// JSON-RPC error codes that mean "this provider can't serve you right now" — a// capacity/quota/auth/staleness problem the NEXT provider may not share, so we// fail over instead of surfacing it. Crucially this is how an exhausted paid plan@@ -818,7 +826,7 @@ export function makeRotatingFetch(endpoints) {// INFO, not WARN: the request continues to the next provider and// still succeeds. This is the redundancy working, not a fault.console.log(- `[solana-rpc] ${maskUrl(url)} ${resp.status} — cooling ${Math.round(ms / 60_000)}m, failing over`,+ `[solana-rpc] ${maskUrl(url)} ${resp.status} — cooling ${formatCooldown(ms)}, failing over`,);}return { error: new Error(`solana rpc ${resp.status} @ ${maskUrl(url)}`) };@@ -830,7 +838,7 @@ export function makeRotatingFetch(endpoints) {const ms = markEndpointCooldown(url, bad.status, bad.bodyText || '');if (!alreadyCooling) {console.log(- `[solana-rpc] ${maskUrl(url)} ${bad.log} — cooling ${Math.round(ms / 60_000)}m, failing over`,+ `[solana-rpc] ${maskUrl(url)} ${bad.log} — cooling ${formatCooldown(ms)}, failing over`,);}return { error: new Error(`solana rpc ${bad.reason} @ ${maskUrl(url)}`) };diff --git a/docs/seed-quality.md b/docs/seed-quality.mdnew file mode 100644index 000000000..914b271a3--- /dev/null+++ b/docs/seed-quality.md@@ -0,0 +1,261 @@+# The catalog quality gate++**Nobody asked for the assets the platform seeds into its own catalog, so they+have to earn their slot.** This is the gate that decides whether a+platform-generated model is published to [/characters](https://three.ws/characters)+and [/objects](https://three.ws/objects), or quarantined and never shown.++It matters because the failure is asymmetric. A user who generates a coarse mesh+in the [Forge](https://three.ws/create) chose to, and can regenerate. A visitor+browsing the catalog did not choose anything: every entry is the platform+vouching for itself. One melted blob on the storefront costs more trust than ten+rejected generations cost compute.++Source: [`api/_lib/seed-quality.js`](../api/_lib/seed-quality.js) ·+Tests: [`tests/seed-quality.test.js`](../tests/seed-quality.test.js) ·+Caller: [`api/cron/forge-seed-cron.js`](../api/cron/forge-seed-cron.js)++## Two stages, cheapest first++```+GLB bytes+ │+ ├─ 1. MESH SANITY ──────────── free, deterministic, no model call+ │ fails ──► quarantine (forge/rejected/) ──► never published+ │ passes+ │+ ├─ 2. VISION JUDGE ─────────── render + Vertex Gemini, ~10-20 s+ │ fails ──► quarantine ──► never published+ │ unreachable ──► publish anyway, flagged vision_unavailable+ │ passes+ │+ └─ published to the public catalog+```++The ordering is the cost control: **a degenerate blob never reaches a vision+model.** It is rejected in stage 1 for the price of a GLB fetch. Stage 2 only+ever sees assets that are already structurally sound.++### Stage 1: mesh sanity++Deterministic, runs on the GLB bytes, no network beyond fetching them. It reuses+[`scoreGlbQuality`](../api/_lib/glb-quality.js), the same scorer the interactive+forge flow already trusts, then applies catalog-specific bounds on top.++| Reason | Meaning | Default bound |+| --- | --- | --- |+| `not_valid_glb` | The bytes are not a binary glTF 2.0 at all | - |+| `vertices_below_floor` | Too coarse to look like anything | `SEED_GATE_MIN_VERTICES` = 1,500 |+| `vertices_above_ceiling` | Runaway output | `SEED_GATE_MAX_VERTICES` = 1,500,000 |+| `file_too_small` | Structurally empty | `SEED_GATE_MIN_BYTES` = 20,000 |+| `file_too_large` | Would blow the viewer's fetch budget | `SEED_GATE_MAX_BYTES` = 80 MB |+| `no_textures` | Flat untextured grey | `SEED_GATE_REQUIRE_TEXTURE` = on |+| `zero_volume` | Collapsed bounding box; renders as a speck | - |+| `too_many_meshes_for_a_character` | A scene, not a character (avatars only, >8 meshes) | - |++Every failing bound is reported at once, not just the first, so tuning works off+the complete picture of what was wrong with an asset.++Two deliberate asymmetries:++- **Stricter than the interactive flow.** The `requireTexture` rule would be+ wrong for a user's own generation; it is right for a storefront.+- **Category-aware.** A prop may legitimately be a loose collection of parts, so+ the mesh-count rule applies to `avatar` only.++### Stage 2: vision judge++Renders one view and asks a vision model two separate questions.++**Realism**, via [`judgeOnce`](../api/_lib/quality-bench.js) from the realism+regression bench. It is *imported, never forked*, so the catalog gate and the+bench can never disagree about what a score of 7 means. Four dimensions on a+1-10 scale: `photorealism`, `geometryIntegrity`, `textureFidelity`,+`promptAdherence`.++| Reason | Default floor |+| --- | --- |+| `geometry_below_floor` | `SEED_GATE_MIN_GEOMETRY` = 5 |+| `prompt_adherence_below_floor` | `SEED_GATE_MIN_ADHERENCE` = 5 |+| `mean_score_below_floor` | `SEED_GATE_MIN_MEAN` = 4.5 (mean of all four) |++An asset can clear both individual floors and still fail on the mean:+structurally sound and prompt-faithful, but too poor overall to earn a slot.++**Rig readiness**, the question the realism bench does not ask: *can this be+rigged and animated at all?* Answered as strict JSON so the gate is a decision,+not a paragraph to interpret.++| Reason | The failure it catches |+| --- | --- |+| `vision_blob` | An amorphous, unrecognisable mass |+| `vision_subject_missing` | The requested subject is not there |+| `vision_multiple_subjects` | A crowd, a duplicated figure, or a scene |+| `vision_incomplete_body` | A waist-up bust or a headless torso |+| `vision_fused_limbs` | Arms welded to the torso, legs melted together |++`vision_fused_limbs` is skipped for `accessory`: a sword has no limbs, and+applying the rule would reject every prop.++## Fail closed on mesh, fail soft on vision++This is the single most important behaviour in the module, and it exists so the+numbers stay honest:++- **Mesh failure is a quality rejection.** Deterministic, reproducible, never+ published.+- **Vision failure is an infrastructure problem, not a quality signal.** If the+ renderer or the judge cannot be reached, the asset is published on the mesh+ verdict alone and marked `vision_unavailable`.++Recording a Vertex quota error as a quality reject would quietly corrupt the+accept-rate statistics, and you would tune thresholds against an outage. The+verdict carries `vision.status` (`judged` / `skipped` / `unavailable`) so the+accept rate can always be computed over the assets that were actually judged.++## Rejects are kept, not deleted++A reject is copied (never moved, so the creator's forge history stays coherent)+to the `forge/rejected/` prefix, with a JSON sidecar beside it:++```+forge/rejected/<id>.glb+forge/rejected/<id>.reason.json+```++The sidecar carries the prompt, the category, the gate version and the entire+verdict. **That is the tuning dataset.** Threshold and prompt-wording changes are+made against real failures instead of guesses.++`SEED_GATE_VERSION` is stored on every verdict and bumped whenever a threshold or+judge prompt changes, because **an accept rate is only comparable within one gate+version.** Comparing last week's 62% against today's under different thresholds+is meaningless.++## Two transports, one gate++The gate runs from two places with different credentials, so the model call is+behind a transport interface. The decision logic is identical either way, which+is the point: the bar cannot drift between how an asset arrives.++| Transport | Runs in | Render | Judge |+| --- | --- | --- | --- |+| `inProcessTransport()` | Cloud Run, GCP service account attached | [`render-clip.js`](../api/_lib/render-clip.js) in process | Vertex Gemini direct |+| `remoteTransport({ origin })` | A workstation with no GCP credentials | `POST /api/render/avatar-clip` | `POST /api/vision` |++## Using it++The two pure functions need no GPU, browser, or model, which is why they carry+the test coverage.++```js+import { gateMesh, decideVisionVerdict } from './api/_lib/seed-quality.js';+import { readFileSync } from 'node:fs';++// Stage 1 only: instant, free, works offline.+const verdict = gateMesh(readFileSync('./candidate.glb'), { category: 'avatar' });+console.log(verdict.pass, verdict.reasons);+// false [ 'vertices_below_floor', 'no_textures' ]+```++The full gate, as the cron runs it:++```js+import { evaluateSeedAsset, inProcessTransport } from './api/_lib/seed-quality.js';++const verdict = await evaluateSeedAsset({+ glbBuffer, // the bytes, for stage 1+ glbUrl: 'https://cdn.three.ws/forge/abc.glb', // a public URL, for the renderer+ prompt: 'a knight in weathered plate armour',+ category: 'avatar',+ transport: inProcessTransport(), // omit for a mesh-only run+});++if (!verdict.accepted) {+ await quarantineReject({ id, glbKey, prompt, verdict });+}+```++A verdict looks like this:++```json+{+ "gateVersion": 1,+ "accepted": false,+ "reasons": ["vision_incomplete_body"],+ "mesh": { "pass": true, "reasons": [], "flag": "ok", "rigged": true, "jointCount": 65 },+ "vision": {+ "status": "judged",+ "mean": 6.25,+ "realism": { "photorealism": 6, "geometryIntegrity": 7, "textureFidelity": 6, "promptAdherence": 6 },+ "rigReadiness": { "subjectPresent": true, "singleSubject": true, "complete": false, "note": "cut off at the waist" }+ },+ "transport": "in-process",+ "durationMs": 14320+}+```++Passing no `transport` runs stage 1 alone. That is not a degraded mode: it is the+cron's default, and it is a complete, meaningful verdict.++## Configuration++Gate thresholds (read at import, so a change needs a restart):++| Variable | Default |+| --- | --- |+| `SEED_GATE_MIN_VERTICES` / `SEED_GATE_MAX_VERTICES` | 1,500 / 1,500,000 |+| `SEED_GATE_MIN_BYTES` / `SEED_GATE_MAX_BYTES` | 20,000 / 80 MB |+| `SEED_GATE_REQUIRE_TEXTURE` | `1` (set `0` to allow untextured) |+| `SEED_GATE_MIN_GEOMETRY` / `SEED_GATE_MIN_ADHERENCE` | 5 / 5 |+| `SEED_GATE_MIN_MEAN` | 4.5 |++Cron knobs (read per call, so a Cloud Run env update applies on the next tick+with no redeploy):++| Variable | Default | Effect |+| --- | --- | --- |+| `SEED_CRON_BATCH` | 1 | Jobs started per tick, submitted two at a time |+| `SEED_CRON_MAX_PENDING` | 3 x batch | In-flight ceiling |+| `SEED_CRON_VISION` | off | Enables stage 2 inside the cron |+| `SEED_CRON_VISION_MS` | 20,000 | Wall-clock budget for stage 2 |+| `SEED_CRON_RIG` | off | Auto-rigs accepted avatars before publishing |++### Why stage 2 is off by default in the cron++`SEED_CRON_VISION` is deliberately unset in production. The seed cron has a hard+70-second wall and a history of 504s when a phase overruns, while a render plus+two judge calls costs 10-20 seconds of it. **Stage 1 always runs** (it is+deterministic, local, and costs only the GLB fetch), so the catalog is never+ungated: it is gated on structure but not yet on appearance.++Turning it on is a one-variable change with no deploy:++```sh+gcloud run services update three-ws-api --region us-central1 \+ --update-env-vars SEED_CRON_VISION=1+```++Use `--update-env-vars` (merges), never `--set-env-vars` (replaces the entire+set). Watch `forge_creations` and the `forge/rejected/` prefix afterwards: if+ticks start timing out, lower `SEED_CRON_VISION_MS` before turning it back off.++## Tuning the thresholds++1. Let rejects accumulate in `forge/rejected/`.+2. Read the `.reason.json` sidecars and group by `reasons[]`. One reason+ dominating a batch usually means a threshold is wrong, not that the generator+ regressed.+3. Change the threshold, **bump `SEED_GATE_VERSION`**, and compare accept rates+ only within a version.+4. Re-run `npx vitest run tests/seed-quality.test.js`. The tests assert against+ the exported bound constants rather than hardcoded numbers, so a deliberate+ threshold change stays green while a broken decision does not.++## Related++- [Realism quality bench](../data/quality-bench/README.md): the regression+ harness whose scorer this gate imports+- [The 3D viewer](./viewer.md): what a published catalog entry has to render in+- [Production log triage](./ops/production-log-triage.md): the operator runbook+ for the seeding pipelinediff --git a/packages/sign-language/README.md b/packages/sign-language/README.mdnew file mode 100644index 000000000..a975cc837--- /dev/null+++ b/packages/sign-language/README.md@@ -0,0 +1,91 @@+# @three-ws/sign-language++American Sign Language for 3D avatars. Compile text into one continuous signed animation clip: words the lexicon knows are signed from anatomical descriptions (handshape, place on the body, movement), everything else fingerspells with the manual alphabet, and non-manual facial markers ride along. Zero runtime dependencies: no three.js, no DOM, no network. The same module runs in a browser, in Node, and in a test runner.++This package is the published build of the engine that powers [three.ws/sign-language](https://three.ws/sign-language) and the `/docs/sign-language` feature. Clips come out as the same clip-JSON document the three.ws animation library serves, so they retarget onto any humanoid rig with finger bones.++## Install++```bash+npm i @three-ws/sign-language+```++## Compile a sentence++```js+import { compileUtterance, signLookup, signGloss } from '@three-ws/sign-language';++const signs = signLookup({ dominant: 'Right' });+const { clip, signed, spelled } = compileUtterance('happy to meet you', { signs });++console.log(signed); // words signed from the lexicon+console.log(spelled); // words that fingerspelled instead+console.log(signGloss('happy')); // human-readable description of the sign+console.log(clip.duration, clip.tracks.length);+```++`clip` is a plain three.js `AnimationClip` JSON document. Parse it with `AnimationClip.parse(clip)` in a three.js app, or feed it to the three.ws animation pipeline as-is.++A runnable version of this lives in [example/compile-utterance.mjs](example/compile-utterance.mjs):++```bash+node example/compile-utterance.mjs "happy to meet you"+```++## Speak alongside chat++`SignSpeaker` sequences utterances for a live conversation (chat replies, captions) with the pacing constants in `CHAT_TIMING`, and `estimateDuration` / `utteranceWords` let a UI plan ahead without compiling:++```js+import { SignSpeaker, estimateDuration } from '@three-ws/sign-language';++const speaker = new SignSpeaker({ dominant: 'Right' });+const clip = speaker.speak('nice to meet you');+console.log(estimateDuration('nice to meet you')); // seconds, before compiling+```++## The five layers++The public surface is organised the way the engine is built; import from any layer:++| Layer | Exports | What it is |+| --- | --- | --- |+| speak | `SignSpeaker`, `compileUtterance`, `estimateDuration`, `utteranceWords`, `CHAT_TIMING` | Text in, one continuous signed clip out, with no seam between signed and fingerspelled words |+| spell | `buildFingerspellingClip`, `letterPose`, `LETTER_SHAPES`, `DEFAULT_TIMING`, `normalizeWord` | The manual alphabet: A-Z, 0-9, the traced J and Z, the double-letter bounce |+| lexicon | `SIGNS`, `SIGNABLE_WORDS`, `buildSignClip`, `lookupSign`, `signGloss`, `signLookup`, `DEFAULT_SIGN_TIMING` | The sign vocabulary, each entry a set of phases described anatomically |+| author | `HANDSHAPES`, `applyHandshape`, `SignTimeline`, `place`, `direction`, `poseHand`, `posePhase`, `faceWeights`, `mirrorPhase`, `neutralPose`, `restingPose`, `SIGNING_BONES`, `FACE_MARKERS` | The layer signs are written in: handshapes, body anchors, contact solving, non-manual markers, timelines |+| kinematics | `Pose`, `solveArm`, `anchorPoint`, `fingerBones`, `fingerTip`, `wristPosition`, `restWorld`, `ANCHORS`, `FINGERS`, `FINGER_JOINTS` and friends | Canonical-skeleton math: forward kinematics, two-bone arm IK, hand geometry |++Add a word to the vocabulary by authoring phases in the same anatomical vocabulary `SIGNS` uses and passing your extended lookup to `compileUtterance`; nothing else changes.++## Play a clip on an avatar++On three.ws every humanoid avatar plays these clips natively. In your own three.js app:++```js+import { AnimationClip, AnimationMixer } from 'three';++const parsed = AnimationClip.parse(clip);+const mixer = new AnimationMixer(avatarRoot);+mixer.clipAction(parsed).play();+```++Track names target the canonical Avaturn-style bone set (`Hips`, `RightHand`, `RightHandIndex1`, ...). A rig with different bone names retargets through the three.ws pipeline (`src/glb-canonicalize.js` + `src/animation-retarget.js` in the [monorepo](https://github.com/nirholas/three.ws)), which maps Mixamo, VRM, Daz, MakeHuman and other conventions automatically.++## Development++The package is a thin published surface over the monorepo engine (`src/sign-*.js` at the repo root):++```bash+npm run build # bundle src re-exports into dist/index.mjs (esbuild, no deps)+npm test # node --test: guards the published surface + dependency-freeness+npm run example # compile "happy to meet you" to example/utterance.clip.json+```++Deep engine coverage lives in the monorepo suite (`tests/sign-rig`, `sign-clip`, `sign-dictionary`, `fingerspelling`, `sign-speech`, `sign-goldens`, `sign-linguistics`).++## Related++- Live feature and docs: [three.ws/sign-language](https://three.ws/sign-language), [three.ws/docs/sign-language](https://three.ws/docs/sign-language)+- Tutorial: [Sign with your avatar](https://three.ws/docs/tutorials/sign-with-your-avatar)+- License: [LICENSE](LICENSE)diff --git a/public/examples.css b/public/examples.cssnew file mode 100644index 000000000..ff0f3b7c6--- /dev/null+++ b/public/examples.css@@ -0,0 +1,305 @@+/* Examples gallery (/examples) */++.exg-shell {+ max-width: 1080px;+ margin: 0 auto;+ padding: 48px 20px 96px;+}++.exg-hero {+ padding: 40px 0 8px;+}++.exg-kicker {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ font-size: 12px;+ letter-spacing: 0.14em;+ text-transform: uppercase;+ color: var(--text-dim, #9a9aa4);+}++.exg-live-dot {+ width: 7px;+ height: 7px;+ border-radius: 50%;+ background: #38d39f;+ box-shadow: 0 0 0 0 rgba(56, 211, 159, 0.5);+ animation: exg-pulse 2.4s infinite;+}++@keyframes exg-pulse {+ 0% {+ box-shadow: 0 0 0 0 rgba(56, 211, 159, 0.45);+ }+ 70% {+ box-shadow: 0 0 0 8px rgba(56, 211, 159, 0);+ }+ 100% {+ box-shadow: 0 0 0 0 rgba(56, 211, 159, 0);+ }+}++.exg-title {+ font-size: clamp(32px, 5vw, 48px);+ line-height: 1.05;+ margin: 14px 0 12px;+ letter-spacing: -0.02em;+}++.exg-title em {+ font-style: normal;+ background: linear-gradient(90deg, #7c8cff, #38d39f);+ -webkit-background-clip: text;+ background-clip: text;+ color: transparent;+}++.exg-sub {+ max-width: 62ch;+ color: var(--text-dim, #9a9aa4);+ line-height: 1.65;+}++.exg-sub a {+ color: inherit;+ text-decoration: underline;+ text-underline-offset: 3px;+}++.exg-sub a:hover,+.exg-docs a:hover {+ color: var(--text, #ececf2);+}++.exg-grid {+ display: grid;+ gap: 24px;+ margin-top: 40px;+}++.exg-card {+ border: 1px solid var(--border, #26262e);+ border-radius: 16px;+ padding: 24px;+ background: var(--surface, rgba(255, 255, 255, 0.02));+ transition:+ border-color 0.2s ease,+ transform 0.2s ease;+}++.exg-card:hover {+ border-color: var(--border-strong, #3a3a46);+}++.exg-card-head {+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ gap: 12px;+ flex-wrap: wrap;+}++.exg-card-title {+ font-size: 20px;+ margin: 0;+ letter-spacing: -0.01em;+}++.exg-tags {+ display: flex;+ gap: 6px;+}++.exg-tag {+ font-size: 11px;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ padding: 3px 8px;+ border-radius: 999px;+ border: 1px solid var(--border, #26262e);+ color: var(--text-dim, #9a9aa4);+}++.exg-blurb {+ color: var(--text-dim, #9a9aa4);+ line-height: 1.6;+ margin: 10px 0 16px;+ max-width: 72ch;+}++.exg-pre {+ margin: 0;+ padding: 16px;+ border-radius: 12px;+ border: 1px solid var(--border, #26262e);+ background: var(--code-bg, #101016);+ overflow-x: auto;+ font-size: 12.5px;+ line-height: 1.55;+ tab-size: 2;+ max-height: 340px;+ overflow-y: auto;+}++.exg-actions {+ display: flex;+ gap: 10px;+ margin-top: 14px;+ flex-wrap: wrap;+}++.exg-btn {+ appearance: none;+ border: 1px solid var(--border, #26262e);+ background: transparent;+ color: var(--text, #ececf2);+ font: inherit;+ font-size: 14px;+ padding: 9px 16px;+ border-radius: 10px;+ cursor: pointer;+ text-decoration: none;+ display: inline-flex;+ align-items: center;+ transition:+ background 0.15s ease,+ border-color 0.15s ease,+ transform 0.1s ease;+}++.exg-btn:hover {+ border-color: var(--border-strong, #3a3a46);+ background: var(--surface, rgba(255, 255, 255, 0.04));+}++.exg-btn:active {+ transform: translateY(1px);+}++.exg-btn:focus-visible {+ outline: 2px solid #7c8cff;+ outline-offset: 2px;+}++.exg-btn--primary {+ background: var(--text, #ececf2);+ color: var(--bg, #0a0a0a);+ border-color: transparent;+}++.exg-btn--primary:hover {+ background: #fff;+ color: #000;+}++.exg-btn--link {+ border-style: dashed;+}++.exg-docs {+ margin: 14px 0 0;+ font-size: 13px;+ color: var(--text-dim, #9a9aa4);+}++.exg-docs a {+ color: inherit;+ text-decoration: underline;+ text-underline-offset: 3px;+}++.exg-stage {+ margin-top: 16px;+}++.exg-frame {+ width: 100%;+ border: 1px solid var(--border, #26262e);+ border-radius: 12px;+ background: #0a0a0a;+ display: block;+}++.exg-more {+ margin-top: 56px;+ border-top: 1px solid var(--border, #26262e);+ padding-top: 32px;+}++.exg-more h2 {+ font-size: 22px;+ margin: 0 0 8px;+}++.exg-more p {+ color: var(--text-dim, #9a9aa4);+ line-height: 1.65;+ max-width: 72ch;+}++.exg-more-grid {+ display: grid;+ grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));+ gap: 14px;+ margin-top: 18px;+}++.exg-more-card {+ display: block;+ border: 1px solid var(--border, #26262e);+ border-radius: 12px;+ padding: 16px;+ text-decoration: none;+ color: inherit;+ transition:+ border-color 0.15s ease,+ transform 0.15s ease;+}++.exg-more-card:hover {+ border-color: var(--border-strong, #3a3a46);+ transform: translateY(-2px);+}++.exg-more-card:focus-visible {+ outline: 2px solid #7c8cff;+ outline-offset: 2px;+}++.exg-more-card strong {+ display: block;+ margin-bottom: 6px;+}++.exg-more-card span {+ font-size: 13px;+ color: var(--text-dim, #9a9aa4);+ line-height: 1.5;+}++@media (max-width: 640px) {+ .exg-shell {+ padding-top: 24px;+ }++ .exg-card {+ padding: 18px;+ }+}++html[data-theme='light'] .exg-pre {+ background: #f5f5f8;+ border-color: #e3e3ea;+}++html[data-theme='light'] .exg-card {+ background: #fff;+ border-color: #e3e3ea;+}++html[data-theme='light'] .exg-btn--primary {+ background: #111;+ color: #fff;+}diff --git a/public/mcp-catalog.json b/public/mcp-catalog.jsonnew file mode 100644index 000000000..60094cf6e--- /dev/null+++ b/public/mcp-catalog.json@@ -0,0 +1,6813 @@+{+ "$comment": "Generated by scripts/build-mcp-catalog.mjs from the tool definitions and price maps in this repo. Do not edit by hand: npm run build:mcp-catalog regenerates it and npm run audit:mcp-catalog fails the build when it is stale.",+ "docs": "https://three.ws/docs/mcp-safety",+ "counts": {+ "tools": 270,+ "servers": 36,+ "free": 242,+ "paid": 28,+ "read": 181,+ "write": 70,+ "irreversible": 19+ },+ "servers": [+ {+ "id": "activity-mcp",+ "title": "@three-ws/activity-mcp",+ "endpoint": "npx -y @three-ws/activity-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 5+ },+ {+ "id": "agenc-mcp",+ "title": "@three-ws/agenc-mcp",+ "endpoint": "npx -y @three-ws/agenc-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 5+ },+ {+ "id": "agentcore-payments-mcp",+ "title": "@three-ws/agentcore-payments-mcp",+ "endpoint": "npx -y @three-ws/agentcore-payments-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 5+ },+ {+ "id": "agora-mcp",+ "title": "@three-ws/agora-mcp",+ "endpoint": "npx -y @three-ws/agora-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 9+ },+ {+ "id": "alerts-mcp",+ "title": "@three-ws/alerts-mcp",+ "endpoint": "npx -y @three-ws/alerts-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 5+ },+ {+ "id": "assistant-mcp",+ "title": "@three-ws/assistant-mcp",+ "endpoint": "npx -y @three-ws/assistant-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 2+ },+ {+ "id": "audio-mcp",+ "title": "@three-ws/audio-mcp",+ "endpoint": "npx -y @three-ws/audio-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 5+ },+ {+ "id": "autopilot-mcp",+ "title": "@three-ws/autopilot-mcp",+ "endpoint": "npx -y @three-ws/autopilot-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 11+ },+ {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 20+ },+ {+ "id": "billing-mcp",+ "title": "@three-ws/billing-mcp",+ "endpoint": "npx -y @three-ws/billing-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 6+ },+ {+ "id": "brain-mcp",+ "title": "@three-ws/brain-mcp",+ "endpoint": "npx -y @three-ws/brain-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 2+ },+ {+ "id": "clash-mcp",+ "title": "@three-ws/clash-mcp",+ "endpoint": "npx -y @three-ws/clash-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 4+ },+ {+ "id": "concierge-mcp",+ "title": "@three-ws/concierge-mcp",+ "endpoint": "npx -y @three-ws/concierge-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 3+ },+ {+ "id": "copy-mcp",+ "title": "@three-ws/copy-mcp",+ "endpoint": "npx -y @three-ws/copy-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 7+ },+ {+ "id": "ibm-x402-mcp-remote",+ "title": "IBM Granite",+ "endpoint": "/api/ibm-mcp",+ "transport": "remote",+ "auth": "x402",+ "tools": 6+ },+ {+ "id": "intel-mcp",+ "title": "@three-ws/intel-mcp",+ "endpoint": "npx -y @three-ws/intel-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 6+ },+ {+ "id": "kol-mcp",+ "title": "@three-ws/kol-mcp",+ "endpoint": "npx -y @three-ws/kol-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 2+ },+ {+ "id": "loom-mcp",+ "title": "@three-ws/loom-mcp",+ "endpoint": "npx -y @three-ws/loom-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 3+ },+ {+ "id": "marketplace-mcp",+ "title": "@three-ws/marketplace-mcp",+ "endpoint": "npx -y @three-ws/marketplace-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 5+ },+ {+ "id": "naming-mcp",+ "title": "@three-ws/naming-mcp",+ "endpoint": "npx -y @three-ws/naming-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 3+ },+ {+ "id": "notifications-mcp",+ "title": "@three-ws/notifications-mcp",+ "endpoint": "npx -y @three-ws/notifications-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 7+ },+ {+ "id": "portfolio-mcp",+ "title": "@three-ws/portfolio-mcp",+ "endpoint": "npx -y @three-ws/portfolio-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 6+ },+ {+ "id": "provenance-mcp",+ "title": "@three-ws/provenance-mcp",+ "endpoint": "npx -y @three-ws/provenance-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 3+ },+ {+ "id": "scene-mcp",+ "title": "@three-ws/scene-mcp",+ "endpoint": "npx -y @three-ws/scene-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 5+ },+ {+ "id": "signals-mcp",+ "title": "@three-ws/signals-mcp",+ "endpoint": "npx -y @three-ws/signals-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 5+ },+ {+ "id": "three-token-mcp",+ "title": "@three-ws/three-token-mcp",+ "endpoint": "npx -y @three-ws/three-token-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 3+ },+ {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402",+ "tools": 43+ },+ {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402",+ "tools": 26+ },+ {+ "id": "threews-3d-studio-free",+ "title": "3D Studio (free)",+ "endpoint": "/api/mcp-studio",+ "transport": "remote",+ "auth": "none",+ "tools": 7+ },+ {+ "id": "threews-agent",+ "title": "Agent Wallet",+ "endpoint": "/api/mcp-agent",+ "transport": "remote",+ "auth": "oauth-or-x402",+ "tools": 5+ },+ {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none",+ "tools": 25+ },+ {+ "id": "threews-x402-bazaar",+ "title": "x402 Bazaar",+ "endpoint": "/api/mcp-bazaar",+ "transport": "remote",+ "auth": "none",+ "tools": 4+ },+ {+ "id": "tutor-mcp",+ "title": "@three-ws/tutor-mcp",+ "endpoint": "npx -y @three-ws/tutor-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 2+ },+ {+ "id": "vanity-mcp",+ "title": "@three-ws/vanity-mcp",+ "endpoint": "npx -y @three-ws/vanity-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 8+ },+ {+ "id": "vision-mcp",+ "title": "@three-ws/vision-mcp",+ "endpoint": "npx -y @three-ws/vision-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 3+ },+ {+ "id": "x402-mcp",+ "title": "@three-ws/x402-mcp",+ "endpoint": "npx -y @three-ws/x402-mcp",+ "transport": "stdio",+ "auth": "api-key",+ "tools": 4+ }+ ],+ "tools": [+ {+ "name": "get_feed_events",+ "title": "Site-wide activity feed",+ "description": "The site-wide activity ticker — recent things that just happened across three.ws, newest-first. Each event is { id, type, ts (epoch ms), actor (a short, already-public display label), ...typeSpecific }. Types include coin-buy { mint, sol, network }, agent-deploy { agentId, name }, agent-onchain { agentId, name, chain }, level-up { skill, level, coin }, world-join { coin, coinName }, jackpot { reward, coin }, payment { usdcAtomic, recipientLabel, txSig, explorerUrl }, mission-complete { mission, gold, coop, coin }, and member-join { handle }. Use it for situational awareness — what agents, coins, and players are active right now. Read-only live data; new events arrive constantly.",+ "server": {+ "id": "activity-mcp",+ "title": "@three-ws/activity-mcp",+ "endpoint": "npx -y @three-ws/activity-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/activity-mcp/src/tools/get-feed-events.js"+ },+ {+ "name": "get_holder_leaderboard",+ "title": "$THREE holder leaderboard",+ "description": "The public $THREE holder leaderboard, ranked by on-chain balance. $THREE is the only coin three.ws ranks holders for. Returns a page of holders — each row is { rank, wallet, wallet_short, amount, pct_of_supply, tier } — plus the total holder count, the page limit/offset, the circulating supply, the $THREE mint and decimals, the full tier ladder (the legend), and a live market strip { price_usd, market_cap, holders } for the header. Pass a wallet to also get that holder's own standing (`you`: rank + amount + tier) even when it falls outside the requested page. Read-only live data; balances and ranks move between calls.",+ "server": {+ "id": "activity-mcp",+ "title": "@three-ws/activity-mcp",+ "endpoint": "npx -y @three-ws/activity-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/activity-mcp/src/tools/get-holder-leaderboard.js"+ },+ {+ "name": "get_tier_info",+ "title": "$THREE holder tier ladder",+ "description": "The $THREE holder tier ladder — the membership bands a wallet earns purely from its on-chain $THREE balance. Returns each tier as { id, label, min, accent }: the tier key, its display label (Genesis, Diamond, Platinum, Gold, Silver, Bronze, …), the minimum whole-token $THREE balance to reach it, and the accent color used for its badge. Use this to explain what a holder's tier means, to tell a holder how far they are from the next band, or to render the leaderboard legend. The same ladder gates the 3D PFP generator and styles the share card, so it's consistent everywhere. Read-only; the ladder is the live source of truth (thresholds can change between calls).",+ "server": {+ "id": "activity-mcp",+ "title": "@three-ws/activity-mcp",+ "endpoint": "npx -y @three-ws/activity-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/activity-mcp/src/tools/get-tier-info.js"+ },+ {+ "name": "get_trending_agents",+ "title": "Trending agents by activity",+ "description": "The agents that are hot on three.ws right now, ranked by REAL chat activity. For the 24h/7d windows the rank is the count of LLM usage events in that window (window_chats); for the all-time window it's each public agent's pre-aggregated total chat_count. Every row carries the agent's id, name, short description, avatar thumbnail, lifetime chat_count, window_chats (null for all-time), an is_onchain flag, its public custodial Solana wallet (with any vanity prefix/suffix), a deep agent_url, and — when available — a wallet-trust reputation card { score, tier, tierLabel, isNew }. Pass sort='trust' to blend proven wallet reputation into the ranking (one signal among others, weighted ~0.45, never pay-to-win) instead of pure activity. Read-only live data; the ranking moves between calls.",+ "server": {+ "id": "activity-mcp",+ "title": "@three-ws/activity-mcp",+ "endpoint": "npx -y @three-ws/activity-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/activity-mcp/src/tools/get-trending-agents.js"+ },+ {+ "name": "get_trending_coins",+ "title": "Trending coins by Oracle conviction",+ "description": "The coins three.ws's Oracle has the highest conviction in right now, ranked by its 0–100 conviction score (only recently-scored coins, <36h stale, are included). Each row carries the mint, symbol, name, the overall score and tier, the four component sub-scores (momentum, pedigree, structure, narrative), the smart_wallet_count behind it, when it was scored_at, and a coin_url into the Oracle detail page. This is the platform's runtime launch-directory discovery data — a ranking of what the Oracle scored, NOT financial advice or a recommendation of any coin. Read-only live data; the ranking moves between calls.",+ "server": {+ "id": "activity-mcp",+ "title": "@three-ws/activity-mcp",+ "endpoint": "npx -y @three-ws/activity-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/activity-mcp/src/tools/get-trending-coins.js"+ },+ {+ "name": "get_agent",+ "title": "Get AgenC agent registry entry",+ "description": "Resolve an agent's on-chain identity in the AgenC registry (ERC-8004-style). Returns the registry entry: authority wallet, status (Inactive, Active, Busy, Suspended), declared capabilities bitmask, service endpoint, metadata URI, stake amount, active task count, reputation, and registration time. Use this to verify another agent before coordinating with it — confirm it is registered, active, and what it claims to do. Address the agent by `agentPda`, or by `agentId` (a 0x/64-char hex seed or a plain text label the bridge hashes to the canonical id). Read-only live on-chain data; returns ok:false with error:\"not_found\" when the agent is not registered. Free, no key required.",+ "server": {+ "id": "agenc-mcp",+ "title": "@three-ws/agenc-mcp",+ "endpoint": "npx -y @three-ws/agenc-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agenc-mcp/src/tools/get-agent.js"+ },+ {+ "name": "get_task",+ "title": "Get AgenC task detail + lifecycle",+ "description": "Fetch one AgenC task by its PDA, or by (creator + taskId). Returns the task state (Open, Claimed, Completed, Cancelled, Disputed, Expired), creator, reward amount + mint, deadline, worker counts, completion time, and whether it is private (constraint-gated). Set `lifecycle:true` to also get the full event timeline — every state transition with its timestamp, actor, and tx signature — so an agent can audit how the task progressed before deciding to claim it. `taskId` accepts a 0x-prefixed or bare 64-char hex seed, or a plain text label the bridge hashes to the canonical id. Read-only live on-chain data; returns ok:false with error:\"not_found\" when the task PDA does not exist. Free, no key required.",+ "server": {+ "id": "agenc-mcp",+ "title": "@three-ws/agenc-mcp",+ "endpoint": "npx -y @three-ws/agenc-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agenc-mcp/src/tools/get-task.js"+ },+ {+ "name": "link_agent",+ "title": "Link a three.ws identity to its AgenC agent id",+ "description": "Resolve a three.ws identity to its canonical AgenC agent id and check whether it is registered on-chain. Provide ONE of: `erc8004AgentId` (an ERC-8004 numeric/hex id), `mplCoreAsset` (a base58 MPL-Core asset address), or `handle` (a three.ws handle). The identity bridge returns the deterministic `agenCAgentId` (hex), its on-chain `agentPda`, the `source`/`label` the id was derived from, the `metadataUri` three.ws would publish for it, and `registered:true|false`. When already registered, the live registry `agent` snapshot (authority, status, endpoint, reputation, active tasks, stake) is included. This derives identity and reads chain state — it does NOT register, stake, or sign; registration itself is an authenticated on-chain action performed elsewhere. Read-only; registration state is live, so results are not idempotent. Free, no key required.",+ "server": {+ "id": "agenc-mcp",+ "title": "@three-ws/agenc-mcp",+ "endpoint": "npx -y @three-ws/agenc-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agenc-mcp/src/tools/link-agent.js"+ },+ {+ "name": "list_tasks",+ "title": "List AgenC tasks by creator",+ "description": "List every AgenC task created by a given Solana wallet. AgenC (agenc.tech, by Tetsuo Corp) is an on-chain coordination protocol where agents post, claim, and complete tasks with SOL/SPL escrow. Returns each task PDA with its lifecycle state (Open, Claimed, Completed, Cancelled, Disputed, Expired), reward amount + mint, deadline, and worker counts (current/max). `private:true` flags a task gated by a constraint hash. Use this to see the work a specific creator has open or in-flight. Read-only live on-chain data — the set shifts as tasks are posted and claimed, so results are not idempotent. Free, no key required.",+ "server": {+ "id": "agenc-mcp",+ "title": "@three-ws/agenc-mcp",+ "endpoint": "npx -y @three-ws/agenc-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agenc-mcp/src/tools/list-tasks.js"+ },+ {+ "name": "query_x402_services",+ "title": "Query x402 services as AgenC tasks",+ "description": "Browse the x402 service directory (the bazaar of paid HTTP endpoints and MCP tools) projected into AgenC task shape. Each entry returns the resource URL, service/tool name, description, tags, HTTP method, a deterministic `taskIdSeed` (so re-posting maps to the same AgenC task PDA), the `price` (atomic + label, currency, network, settlement family), input/output schema hints, and `rewardKind:\"x402_pay_to_endpoint\"`. Filter by `type` (http endpoints or mcp tools), `network`, `maxPrice` (in the given `asset`), and `extension`. Use this to discover paid work an agent can earn by calling — the x402 complement to the on-chain task marketplace. Read-only live directory data; the feed moves between calls. Free, no key required.",+ "server": {+ "id": "agenc-mcp",+ "title": "@three-ws/agenc-mcp",+ "endpoint": "npx -y @three-ws/agenc-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agenc-mcp/src/tools/query-x402-services.js"+ },+ {+ "name": "cancel_payment_session",+ "title": "Cancel a payment session and refund unused budget",+ "description": null,+ "server": {+ "id": "agentcore-payments-mcp",+ "title": "@three-ws/agentcore-payments-mcp",+ "endpoint": "npx -y @three-ws/agentcore-payments-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agentcore-payments-mcp/src/tools/cancel-session.js"+ },+ {+ "name": "check_payment_session",+ "title": "Check a payment session's budget and status",+ "description": null,+ "server": {+ "id": "agentcore-payments-mcp",+ "title": "@three-ws/agentcore-payments-mcp",+ "endpoint": "npx -y @three-ws/agentcore-payments-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agentcore-payments-mcp/src/tools/check-session.js"+ },+ {+ "name": "create_payment_session",+ "title": "Create a funded agent payment session",+ "description": null,+ "server": {+ "id": "agentcore-payments-mcp",+ "title": "@three-ws/agentcore-payments-mcp",+ "endpoint": "npx -y @three-ws/agentcore-payments-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agentcore-payments-mcp/src/tools/create-session.js"+ },+ {+ "name": "list_payment_sessions",+ "title": "List payment sessions and spending stats",+ "description": null,+ "server": {+ "id": "agentcore-payments-mcp",+ "title": "@three-ws/agentcore-payments-mcp",+ "endpoint": "npx -y @three-ws/agentcore-payments-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agentcore-payments-mcp/src/tools/list-sessions.js"+ },+ {+ "name": "pay_with_session",+ "title": "Pay an x402 endpoint via a payment session",+ "description": null,+ "server": {+ "id": "agentcore-payments-mcp",+ "title": "@three-ws/agentcore-payments-mcp",+ "endpoint": "npx -y @three-ws/agentcore-payments-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agentcore-payments-mcp/src/tools/pay-with-session.js"+ },+ {+ "name": "agora_board",+ "title": "Browse the Agora job board",+ "description": "Browse the live Agora job board — the work an agent can claim and earn $THREE for. Two lanes: open AgenC on-chain tasks (real bounties citizens posted, still open: PDA, profession, reward, creator, minReputation, taskType, an explorer-backed taskUrl) and the x402 bazaar (every paid HTTP/MCP service as a claimable Fetcher job: resource URL, price, currency, network). Filter by `profession` (fetcher, sculptor, scribe, cartographer, crier, appraiser, verifier, namekeeper) to see only jobs you can take, and by `minReward` (atomic reward units) to skip low-value work. `network`/`maxPrice`/`asset` narrow the x402 lane. Returns honest empty arrays when nothing is open — the economy is real, not fabricated. Read-only live data; the board moves between calls. Free, no key required.",+ "server": {+ "id": "agora-mcp",+ "title": "@three-ws/agora-mcp",+ "endpoint": "npx -y @three-ws/agora-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agora-mcp/src/tools/board.js"+ },+ {+ "name": "agora_citizens",+ "title": "List Agora citizens",+ "description": "List the citizens of Agora — the population of the agent + human economy. Each citizen returns its id, kind (agent or human), display name, profession + decoded profession bits, live status (Active, Busy, Idle), its AgenC on-chain identity (agentId, agentPda, cluster, registered), reputation, stake, $THREE earned, and tasks completed/posted. Filter by `profession` (fetcher, sculptor, scribe, cartographer, crier, appraiser, verifier, namekeeper), `status` (active, busy, idle), or `kind` (agent, human). Use it to scout collaborators, find a Verifier for your proof, or see who's earning. Returns an honest empty list before the world is seeded — never fabricated citizens. Read-only live data; the population moves between calls. Free, no key required.",+ "server": {+ "id": "agora-mcp",+ "title": "@three-ws/agora-mcp",+ "endpoint": "npx -y @three-ws/agora-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agora-mcp/src/tools/citizens.js"+ },+ {+ "name": "agora_claim_task",+ "title": "Claim an open Agora task (on-chain)",+ "description": "CLAIM an open job from the Agora board — a REAL on-chain AgenC claim signed by YOUR Solana key (signs locally; never logged, stored, or transmitted). Pass the `taskPda` from agora_board, and your worker identity: either `workerAgentId` (your 32-byte AgenC id in hex) OR an identity to derive it from (`handle` / `erc8004AgentId` / `mplCoreAsset`) — must match the identity you registered with. You must already be a registered citizen and your capability bitmap must satisfy the task's requiredCapabilities, or the chain rejects the claim. On success the task moves to InProgress; do the work, then call agora_complete_task with your proof to release the escrow. Returns the tx signature + explorer link and the task's new on-chain state. Devnet by default; set cluster:\"mainnet\" for a mainnet task. Requires a funded signer.",+ "server": {+ "id": "agora-mcp",+ "title": "@three-ws/agora-mcp",+ "endpoint": "npx -y @three-ws/agora-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agora-mcp/src/tools/claim-task.js"+ },+ {+ "name": "agora_complete_task",+ "title": "Complete an Agora task with a proof (on-chain)",+ "description": "COMPLETE a task you claimed and GET PAID — a REAL on-chain AgenC completion signed by YOUR Solana key (signs locally; never logged, stored, or transmitted). Submit the `taskPda`, your worker identity (`workerAgentId` hex OR `handle`/`erc8004AgentId`/`mplCoreAsset`), and a real `proofHash`: a 32-byte hex digest of your deliverable (the canonical convention is sha256(deliverable bytes) so a Verifier citizen can re-download and re-derive it). Optionally pass `deliverable` (a URL or short reference) — packed into the on-chain 64-byte result slot. On accepted proof the escrow RELEASES to your wallet and your reputation ticks up. You compute and supply the proof — nothing is faked; a wrong proof for the work is a real, auditable record. Returns the tx signature + explorer link and the task's new on-chain state. Requires a funded signer.",+ "server": {+ "id": "agora-mcp",+ "title": "@three-ws/agora-mcp",+ "endpoint": "npx -y @three-ws/agora-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agora-mcp/src/tools/complete-task.js"+ },+ {+ "name": "agora_passport",+ "title": "Get one Agora citizen passport",+ "description": "Fetch one citizen's living passport — the full record of a participant in Agora. Address it by `id` (the Agora citizen id), `agentPda` (its on-chain AgenC PDA), or `agentId` (its 32-byte AgenC id, hex). Returns the citizen projection (name, profession, status, reputation, stake, $THREE earned), its LIVE on-chain AgenC snapshot reconciled from the chain (authority, status, capabilities, endpoint, stake, active tasks, reputation, registeredAt), and its recent activity history — every claim/complete/earn/vouch with its task PDA, reward, tx signature, proofHash, and deliverable URL, so you can audit and even re-verify a citizen's work before coordinating with it. Read-only live data; returns ok:false with error:\"not_found\" when no such citizen exists. Free, no key required.",+ "server": {+ "id": "agora-mcp",+ "title": "@three-ws/agora-mcp",+ "endpoint": "npx -y @three-ws/agora-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agora-mcp/src/tools/passport.js"+ },+ {+ "name": "agora_post_task",+ "title": "Post a bounty to the Agora board (on-chain escrow)",+ "description": null,+ "server": {+ "id": "agora-mcp",+ "title": "@three-ws/agora-mcp",+ "endpoint": "npx -y @three-ws/agora-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agora-mcp/src/tools/post-task.js"+ },+ {+ "name": "agora_professions",+ "title": "List Agora professions (the capability bit map)",+ "description": "List Agora's professions — the labor market's type system over AgenC's u64 capability bitmap. Each profession is a stable bit with a key (fetcher, sculptor, scribe, cartographer, crier, appraiser, verifier, namekeeper, …), a human label, and the real platform skill that backs it (e.g. Fetcher → an x402 service call; Sculptor → text/image→rigged GLB; Scribe → research/write via the LLM router; Verifier → re-derive a proofHash + attest). Bits are additive — a citizen can be a Sculptor AND a Verifier — and the registry is open, so this returns whatever bits the live economy currently defines rather than a hardcoded list. Use it to read a citizen's `capabilityBits` or to set a task's `requiredCapabilities` when posting work. Read-only live data. Free, no key required.",+ "server": {+ "id": "agora-mcp",+ "title": "@three-ws/agora-mcp",+ "endpoint": "npx -y @three-ws/agora-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agora-mcp/src/tools/professions.js"+ },+ {+ "name": "agora_pulse",+ "title": "Read the Agora economy pulse",+ "description": "Read the Agora economy ticker — a live snapshot of the agent + human economy. Returns the population (total citizens, agents vs humans, active in 24h, breakdown by status and by profession), the 24h economy flows (tasks completed, $THREE earned, payout count), the top earners (by $THREE earned, with reputation + tasks completed), and the most recent narrated activity (who did what, the reward, the deliverable, the proof). The coin is always $THREE (its mint is surfaced). Use this to gauge how busy the economy is before deciding to register or post work. Returns an honest empty snapshot before the economy is populated. Read-only live data; the pulse moves between calls. Free, no key required.",+ "server": {+ "id": "agora-mcp",+ "title": "@three-ws/agora-mcp",+ "endpoint": "npx -y @three-ws/agora-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agora-mcp/src/tools/pulse.js"+ },+ {+ "name": "agora_register",+ "title": "Register as an Agora citizen (on-chain)",+ "description": "JOIN AGORA as a citizen — a REAL on-chain AgenC registration signed by YOUR Solana key (the key signs locally and is never logged, stored, or transmitted). Derives your canonical AgenC agentId from an identity via the identity bridge: pass a `handle` (simplest), and/or an `erc8004AgentId`, and/or an `mplCoreAsset`. Declare your `professions` (fetcher, sculptor, scribe, cartographer, crier, appraiser, verifier, namekeeper) — they become your AgenC capability bitmap, the jobs you can claim. Posts a slashable stake (default 0.001 SOL devnet) the protocol holds against your reputation. IDEMPOTENT: if you are already registered it reconciles from the chain and returns existed:true (no second stake). Returns your agentPda, agentId, the tx signature + explorer link, and your live on-chain registry entry. Devnet by default (SOL stake); set cluster:\"mainnet\" to register there. Requires a funded signer.",+ "server": {+ "id": "agora-mcp",+ "title": "@three-ws/agora-mcp",+ "endpoint": "npx -y @three-ws/agora-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/agora-mcp/src/tools/register.js"+ },+ {+ "name": "create_alert_rule",+ "title": "Create a pump.fun alert rule",+ "description": null,+ "server": {+ "id": "alerts-mcp",+ "title": "@three-ws/alerts-mcp",+ "endpoint": "npx -y @three-ws/alerts-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/alerts-mcp/src/tools/create-alert-rule.js"+ },+ {+ "name": "delete_alert_rule",+ "title": "Delete a pump.fun alert rule",+ "description": null,+ "server": {+ "id": "alerts-mcp",+ "title": "@three-ws/alerts-mcp",+ "endpoint": "npx -y @three-ws/alerts-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/alerts-mcp/src/tools/delete-alert-rule.js"+ },+ {+ "name": "get_alert_history",+ "title": "Read fired pump.fun alert history",+ "description": null,+ "server": {+ "id": "alerts-mcp",+ "title": "@three-ws/alerts-mcp",+ "endpoint": "npx -y @three-ws/alerts-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/alerts-mcp/src/tools/get-alert-history.js"+ },+ {+ "name": "list_alert_rules",+ "title": "List my pump.fun alert rules",+ "description": null,+ "server": {+ "id": "alerts-mcp",+ "title": "@three-ws/alerts-mcp",+ "endpoint": "npx -y @three-ws/alerts-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/alerts-mcp/src/tools/list-alert-rules.js"+ },+ {+ "name": "update_alert_rule",+ "title": "Update a pump.fun alert rule",+ "description": null,+ "server": {+ "id": "alerts-mcp",+ "title": "@three-ws/alerts-mcp",+ "endpoint": "npx -y @three-ws/alerts-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/alerts-mcp/src/tools/update-alert-rule.js"+ },+ {+ "name": "build_assistant_widget",+ "title": "Build a paste-ready three.ws assistant widget embed",+ "description": "Turn a config into a ready-to-embed three.ws assistant widget, a floating 3D avatar chatbot you can drop onto any website. Returns a paste-ready <script> tag (with only the non-default settings as data-* attributes), a standalone frame URL for <iframe> embedding, an equivalent ThreeAssistant.init({...}) JavaScript-API snippet, the visual builder link, and the fully-normalized config. Pure and offline: every field is validated and clamped locally, so a bad value falls back to a safe default and the generated HTML is always well-formed. Call list_assistant_options first to see every avatar, background, mode and attribute you can set.",+ "server": {+ "id": "assistant-mcp",+ "title": "@three-ws/assistant-mcp",+ "endpoint": "npx -y @three-ws/assistant-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/assistant-mcp/src/tools/build-assistant-widget.js"+ },+ {+ "name": "list_assistant_options",+ "title": "List every three.ws assistant widget option",+ "description": "List everything you can configure on the three.ws assistant widget: the built-in avatars, background presets and grammar, interaction modes, chat lanes (free vs bring-your-own-key), and the full data-* attribute reference table. Call this before build_assistant_widget to know the vocabulary. Read-only and offline.",+ "server": {+ "id": "assistant-mcp",+ "title": "@three-ws/assistant-mcp",+ "endpoint": "npx -y @three-ws/assistant-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/assistant-mcp/src/tools/list-assistant-options.js"+ },+ {+ "name": "audio_to_face",+ "title": "Audio to face (lipsync)",+ "description": null,+ "server": {+ "id": "audio-mcp",+ "title": "@three-ws/audio-mcp",+ "endpoint": "npx -y @three-ws/audio-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/audio-mcp/src/tools/audio-to-face.js"+ },+ {+ "name": "motion_capture_clip",+ "title": "Get a motion-capture clip",+ "description": null,+ "server": {+ "id": "audio-mcp",+ "title": "@three-ws/audio-mcp",+ "endpoint": "npx -y @three-ws/audio-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/audio-mcp/src/tools/motion-capture-clip.js"+ },+ {+ "name": "motion_capture_clips",+ "title": "List motion-capture clips",+ "description": null,+ "server": {+ "id": "audio-mcp",+ "title": "@three-ws/audio-mcp",+ "endpoint": "npx -y @three-ws/audio-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/audio-mcp/src/tools/motion-capture-clips.js"+ },+ {+ "name": "speech_to_text",+ "title": "Speech to text",+ "description": null,+ "server": {+ "id": "audio-mcp",+ "title": "@three-ws/audio-mcp",+ "endpoint": "npx -y @three-ws/audio-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/audio-mcp/src/tools/speech-to-text.js"+ },+ {+ "name": "text_to_speech",+ "title": "Text to speech",+ "description": null,+ "server": {+ "id": "audio-mcp",+ "title": "@three-ws/audio-mcp",+ "endpoint": "npx -y @three-ws/audio-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/audio-mcp/src/tools/text-to-speech.js"+ },+ {+ "name": "adjust_proposal",+ "title": "Adjust a pending autopilot proposal",+ "description": null,+ "server": {+ "id": "autopilot-mcp",+ "title": "@three-ws/autopilot-mcp",+ "endpoint": "npx -y @three-ws/autopilot-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/autopilot-mcp/src/tools/adjust-proposal.js"+ },+ {+ "name": "compute_trust",+ "title": "Compute autopilot trust level",+ "description": null,+ "server": {+ "id": "autopilot-mcp",+ "title": "@three-ws/autopilot-mcp",+ "endpoint": "npx -y @three-ws/autopilot-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/autopilot-mcp/src/tools/compute-trust.js"+ },+ {+ "name": "dismiss_proposal",+ "title": "Dismiss a pending autopilot proposal",+ "description": null,+ "server": {+ "id": "autopilot-mcp",+ "title": "@three-ws/autopilot-mcp",+ "endpoint": "npx -y @three-ws/autopilot-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/autopilot-mcp/src/tools/dismiss-proposal.js"+ },+ {+ "name": "dryrun_proposal",+ "title": "Dry-run an autopilot proposal",+ "description": null,+ "server": {+ "id": "autopilot-mcp",+ "title": "@three-ws/autopilot-mcp",+ "endpoint": "npx -y @three-ws/autopilot-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/autopilot-mcp/src/tools/dryrun-proposal.js"+ },+ {+ "name": "execute_proposal",+ "title": "Execute an autopilot proposal (moves real value)",+ "description": null,+ "server": {+ "id": "autopilot-mcp",+ "title": "@three-ws/autopilot-mcp",+ "endpoint": "npx -y @three-ws/autopilot-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/autopilot-mcp/src/tools/execute-proposal.js"+ },+ {+ "name": "generate_proposals",+ "title": "Generate autopilot proposals",+ "description": null,+ "server": {+ "id": "autopilot-mcp",+ "title": "@three-ws/autopilot-mcp",+ "endpoint": "npx -y @three-ws/autopilot-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/autopilot-mcp/src/tools/generate-proposals.js"+ },+ {+ "name": "get_autopilot_config",+ "title": "Get autopilot config",+ "description": null,+ "server": {+ "id": "autopilot-mcp",+ "title": "@three-ws/autopilot-mcp",+ "endpoint": "npx -y @three-ws/autopilot-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/autopilot-mcp/src/tools/get-config.js"+ },+ {+ "name": "list_autopilot_activity",+ "title": "List autopilot activity (signed receipts)",+ "description": null,+ "server": {+ "id": "autopilot-mcp",+ "title": "@three-ws/autopilot-mcp",+ "endpoint": "npx -y @three-ws/autopilot-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/autopilot-mcp/src/tools/list-activity.js"+ },+ {+ "name": "list_proposals",+ "title": "List autopilot proposals",+ "description": null,+ "server": {+ "id": "autopilot-mcp",+ "title": "@three-ws/autopilot-mcp",+ "endpoint": "npx -y @three-ws/autopilot-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/autopilot-mcp/src/tools/list-proposals.js"+ },+ {+ "name": "set_autopilot_config",+ "title": "Set autopilot config",+ "description": null,+ "server": {+ "id": "autopilot-mcp",+ "title": "@three-ws/autopilot-mcp",+ "endpoint": "npx -y @three-ws/autopilot-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/autopilot-mcp/src/tools/set-config.js"+ },+ {+ "name": "undo_action",+ "title": "Undo a reversible autopilot action",+ "description": null,+ "server": {+ "id": "autopilot-mcp",+ "title": "@three-ws/autopilot-mcp",+ "endpoint": "npx -y @three-ws/autopilot-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/autopilot-mcp/src/tools/undo-action.js"+ },+ {+ "name": "dress_avatar",+ "title": "Apply accessories + pose to a spawned avatar",+ "description": "Apply (or replace) accessories on a spawned avatar session and optionally set a pose. Pass accessoryIds to set the full accessory list (empty array clears them). Pass pose to switch animations. Returns the updated viewer URL.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/dress-avatar.js"+ },+ {+ "name": "ens_sns_resolve",+ "title": "Resolve ENS + SNS names to addresses",+ "description": "Resolve a human-readable name to addresses across ENS (Ethereum) and SNS (Solana, Bonfida). For .eth: returns Ethereum address + reverse lookup. For .sol: returns Solana owner wallet + the wallet's other owned .sol domains + favorite domain. Names without a suffix are tried against both registries.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/ens-sns-resolve.js"+ },+ {+ "name": "generate_avatar",+ "title": "Generate a 3D avatar (Replicate text-to-3D)",+ "description": "Generate a textured GLB from a text prompt or reference image URLs via Replicate (Hunyuan-3D 3.1 by default; configurable). Returns the GLB URL and a new avatar session you can dress + animate. Requires REPLICATE_API_TOKEN and REPLICATE_TEXT_TO_AVATAR_MODEL on the MCP server.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/generate-avatar.js"+ },+ {+ "name": "inspect_glb",+ "title": "Inspect a GLB / glTF 3D model",+ "description": "Fetch any GLB URL (or data: URL) and return a full structural breakdown: meshes, primitives, materials, textures, animations, skins, vertex + triangle counts, world-space bounding box, and file size. Pure local parse via @gltf-transform/core — no third-party services.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/inspect-glb.js"+ },+ {+ "name": "list_animations",+ "title": "List three.ws pose presets + animation slots",+ "description": "Return the three.ws pose preset catalog (T-pose, A-pose, wave, thinker, jump, dance, warrior2, …) grouped by category. Use the ids returned here as posePresetId in render_avatar. Fetched live from three.ws so the catalog reflects the deployed version.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/list-animations.js"+ },+ {+ "name": "list_avatars",+ "title": "List three.ws default avatars + accessories",+ "description": "Return the catalog of default 3D avatars (default, cz) and accessories (hats, glasses, earrings) hosted on the three.ws CDN. Each entry includes a public GLB URL ready to load in any glTF viewer or Three.js scene. Includes the supported pose preset names.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/list-avatars.js"+ },+ {+ "name": "optimize_glb",+ "title": "Optimize a GLB (dedup, prune, weld, Draco)",+ "description": "Run a @gltf-transform/functions optimization pipeline on a GLB URL: dedup → prune unused → weld duplicate vertices → optional Draco mesh compression. Returns the optimized bytes as a base64 data URL with before/after sizes. Lossless for geometry except where Draco quantization is requested.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/optimize-glb.js"+ },+ {+ "name": "pump_buy",+ "title": "Buy a Solana token via Jupiter (direct or Jito-bundled)",+ "description": "Swap SOL → target mint via Jupiter aggregator. Direct mode = one tx signed by the buyer. Bundled mode (jitoBundle=true) = two-tx Jito bundle where funderSecret transfers SOL + tip to the buyer atomically with the swap (sweeper-resistant). Pass target=\"three\" to use the $three reference mint. EXECUTION ACTION.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/pump-buy.js"+ },+ {+ "name": "pump_collect_fees",+ "title": "Atomic pump.fun creator-fee collection (Jito bundle)",+ "description": "Collect a pump.fun coin's creator-fee vault and route the SOL to a safe destination, atomically, in a single tx inside a Jito bundle. Funder pays the fee + Jito tip; creator signs collectCoinCreatorFee + drain to DESTINATION. The bundle's atomicity blocks any competing collector from interleaving even if the creator key is leaked. EXECUTION ACTION.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/pump-collect.js"+ },+ {+ "name": "pump_launch",+ "title": "Atomic pump.fun launch (Jito bundle, separate funder/creator)",+ "description": "Launch a pump.fun token atomically via a Jito bundle. Funder pays its own fee + tip and rent-funds the creator; creator signs createV2 in tx2 — both txs land in the same block or neither does. Pass devBuySol to launch-and-snipe: the creator first buy is folded into the create tx (createV2AndBuy) so it lands atomically before any sniper sees the curve. If uri is omitted, metadata is uploaded to pump.fun IPFS first from name/symbol/description/socials/imageUrl. Returns the mint address, bundle id, both tx signatures, the dev-buy quote, and the pump.fun URL. EXECUTION ACTION — creates a real mint on mainnet.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/pump-launch.js"+ },+ {+ "name": "pump_snapshot",+ "title": "Live pump.fun / Solana token snapshot",+ "description": "Live snapshot for a Solana token (SPL or pump.fun): USD price (Jupiter), 24h volume + primary DEX (Dexscreener), pump.fun metadata (name/symbol/image/socials/mcap), and top-holder distribution from Solana RPC. Optional Helius DAS supply when HELIUS_API_KEY is configured. Free — no signer.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/pump-snapshot.js"+ },+ {+ "name": "render_avatar",+ "title": "Render a posed avatar (pose + camera + expression)",+ "description": "Render an avatar GLB with a three.ws pose preset, camera orbit, and optional ARKit-52 facial expression. Same pipeline as the three.ws customizer's save-snapshot flow. Returns PNG bytes as a base64 data URL. Accepts either glbUrl directly or sessionId from spawn_avatar.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.005,+ "free": false+ },+ "source": "packages/avatar-agent-mcp/src/tools/render-avatar.js"+ },+ {+ "name": "spawn_avatar",+ "title": "Spawn a 3D avatar session",+ "description": "Spawn a 3D avatar from a curated default (preset=\"default\" or \"cz\") or from a custom GLB URL. Returns a sessionId other tools (dress_avatar, viewer_url, speak) reference, plus the avatar GLB URL and a ready-to-open three.ws viewer link.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/spawn-avatar.js"+ },+ {+ "name": "speak",+ "title": "Avatar speaks (TTS)",+ "description": "Synthesize speech for an avatar session and return a base64 audio data URL the client can play. Free NVIDIA NIM Magpie TTS leads when NVIDIA_API_KEY is set (non-pcm requests are served as WAV); OpenAI TTS is the paid backstop when OPENAI_API_KEY is set. Picks the session's configured voice unless overridden.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/speak.js"+ },+ {+ "name": "thumbnail_glb",+ "title": "Render a GLB to a PNG thumbnail",+ "description": "Render any public GLB URL to a PNG via three.ws's hosted three-light rig + auto-framing camera. Returns the PNG inline as a base64 data URL (≤ ~4 MB) plus dimensions. Background defaults to #0a0a0a — pass \"transparent\" for compositing.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/thumbnail-glb.js"+ },+ {+ "name": "validate_glb",+ "title": "Validate a GLB / glTF against the Khronos spec",+ "description": "Run the official Khronos gltf-validator against a GLB URL. Returns errors, warnings, infos, and hints with codes + JSON pointers, plus structural counts (animations, materials, etc.) per the validator's info report. The same engine that powers gltf.report.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/validate-glb.js"+ },+ {+ "name": "viewer_url",+ "title": "Build a three.ws viewer URL + embed snippet",+ "description": "Build a shareable https://three.ws/viewer?... URL that opens any GLB in three.ws's WebGL viewer, plus a ready-to-paste iframe snippet. Supports background, auto-rotate, camera preset OR explicit camera orbit, AR mode (model-viewer), dimensions, pose, and accessory overlay. Accepts a raw glbUrl or a sessionId from spawn_avatar.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/viewer-url.js"+ },+ {+ "name": "wallet_balance",+ "title": "Read Solana wallet balances (SOL + SPL tokens)",+ "description": "Return SOL balance and all SPL token balances (including Token-2022) for a Solana pubkey. Uses the configured SOLANA_RPC_URL. Read-only — no signer required.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/wallet-balance.js"+ },+ {+ "name": "wallet_create",+ "title": "Create a Solana wallet (optionally vanity-grinded)",+ "description": "Generate a Solana keypair locally. Optionally grind for a base58 prefix/suffix (e.g. \"three\") and/or attach it to an avatar session. Returns the base58 pubkey and secret ONCE — store the secret yourself; the MCP does not persist it.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/wallet-create.js"+ },+ {+ "name": "wallet_send",+ "title": "Send SOL on Solana mainnet",+ "description": "Send SOL from the configured signer to a destination pubkey. The signer is supplied via the `secret` arg (base58) or via SOLANA_SECRET_KEY env on the MCP server. Returns the confirmed signature and a Solscan link. EXECUTION ACTION — funds move on mainnet, irreversible: pass confirm:true. Capped by MAX_SOL_PER_TX; destination must be in RECIPIENT_ALLOWLIST if one is configured.",+ "server": {+ "id": "avatar-agent-mcp",+ "title": "@three-ws/avatar-agent-mcp",+ "endpoint": "npx -y @three-ws/avatar-agent-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/avatar-agent-mcp/src/tools/wallet-send.js"+ },+ {+ "name": "export_billing_history",+ "title": "Export my billing history as CSV",+ "description": null,+ "server": {+ "id": "billing-mcp",+ "title": "@three-ws/billing-mcp",+ "endpoint": "npx -y @three-ws/billing-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/billing-mcp/src/tools/export-billing-history.js"+ },+ {+ "name": "get_billing_summary",+ "title": "My plan, quotas, and current usage",+ "description": null,+ "server": {+ "id": "billing-mcp",+ "title": "@three-ws/billing-mcp",+ "endpoint": "npx -y @three-ws/billing-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/billing-mcp/src/tools/billing-summary.js"+ },+ {+ "name": "get_fee_info",+ "title": "Current platform fee rate",+ "description": null,+ "server": {+ "id": "billing-mcp",+ "title": "@three-ws/billing-mcp",+ "endpoint": "npx -y @three-ws/billing-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/billing-mcp/src/tools/fee-info.js"+ },+ {+ "name": "get_receipt",+ "title": "Get one receipt (per-charge or per-purchase)",+ "description": null,+ "server": {+ "id": "billing-mcp",+ "title": "@three-ws/billing-mcp",+ "endpoint": "npx -y @three-ws/billing-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/billing-mcp/src/tools/get-receipt.js"+ },+ {+ "name": "get_revenue",+ "title": "My agents’ earnings (revenue + subscriptions)",+ "description": null,+ "server": {+ "id": "billing-mcp",+ "title": "@three-ws/billing-mcp",+ "endpoint": "npx -y @three-ws/billing-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/billing-mcp/src/tools/get-revenue.js"+ },+ {+ "name": "query_usage",+ "title": "My metered usage / invoice statement for a period",+ "description": null,+ "server": {+ "id": "billing-mcp",+ "title": "@three-ws/billing-mcp",+ "endpoint": "npx -y @three-ws/billing-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/billing-mcp/src/tools/query-usage.js"+ },+ {+ "name": "chat",+ "title": "Run a chat completion",+ "description": null,+ "server": {+ "id": "brain-mcp",+ "title": "@three-ws/brain-mcp",+ "endpoint": "npx -y @three-ws/brain-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/brain-mcp/src/tools/chat.js"+ },+ {+ "name": "list_providers",+ "title": "List LLM providers and models",+ "description": null,+ "server": {+ "id": "brain-mcp",+ "title": "@three-ws/brain-mcp",+ "endpoint": "npx -y @three-ws/brain-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/brain-mcp/src/tools/list-providers.js"+ },+ {+ "name": "enlist_faction",+ "title": "Enlist in a Coin Clash faction",+ "description": "Enlist the signer's wallet as a soldier in a Coin Clash faction and return a war pass. Requires the wallet to hold the faction coin: the tool requests a challenge, signs it with the wallet's Solana key (from the `secret` arg, or SOLANA_SECRET_KEY env), and the backend verifies the signature then checks a live on-chain holding. Returns `{ eligible, wallet, faction, amount, usd, warPass }`. If `eligible` is false the wallet does not currently hold the coin (`reason: \"not_a_holder\"`) and `warPass` is null — buy/hold the coin and retry. Keep the `warPass`: pass it to rally_faction to spend taps as battle power. No funds move; the pass expires after ~30 minutes.",+ "server": {+ "id": "clash-mcp",+ "title": "@three-ws/clash-mcp",+ "endpoint": "npx -y @three-ws/clash-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/clash-mcp/src/tools/enlist-faction.js"+ },+ {+ "name": "get_clash_leaderboard",+ "title": "Coin Clash leaderboard",+ "description": "Rank Coin Clash factions by their all-time war record. Returns `board`: factions sorted by wins then power, each with `token`, `symbol`, `image`, `members`, `w`/`l`/`d` (win/loss/draw), `battles`, cumulative `power`, and `winRate` (percent of decided battles won, or null if none decided yet). Pass `faction` (a faction mint) to also get `soldiers`: that faction's top rally contributors this round (wallet + power). Live data — records update as rounds settle. Use this to find the strongest armies and the heaviest hitters.",+ "server": {+ "id": "clash-mcp",+ "title": "@three-ws/clash-mcp",+ "endpoint": "npx -y @three-ws/clash-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/clash-mcp/src/tools/get-clash-leaderboard.js"+ },+ {+ "name": "get_clash_state",+ "title": "Coin Clash battle board",+ "description": "Read the live Coin Clash board for the current round. Coin Clash is three.ws community faction warfare: every CoinCommunities community is a faction, its holders are its army, and two factions are matched each round — whichever army rallies more power before the clock runs out wins. Returns `epoch` (round index), `endsAt`/`msLeft`/`epochMs` (the clock), and `arena`: an array of battles, each with sides `a` and `b` (token, symbol, image, members, posts, priceUsd, live `momentum` multiplier, accumulated `power`, all-time `record`), `aShare` (side a's share of the round's combined power for a tug-of-war bar), and `leader` (the winning side's token, or null if tied). `bye` is the unmatched faction this round (odd roster), `factionCount` the active army count. Live data — power and standings move between calls. Use this to see who's fighting and who's winning before enlisting or rallying.",+ "server": {+ "id": "clash-mcp",+ "title": "@three-ws/clash-mcp",+ "endpoint": "npx -y @three-ws/clash-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/clash-mcp/src/tools/get-clash-state.js"+ },+ {+ "name": "rally_faction",+ "title": "Rally power for a Coin Clash faction",+ "description": "Rally for a Coin Clash faction by spending taps as battle power for the current round. Authorize with either a `pass` (war pass from enlist_faction) or a `token` (+ optional `secret`) to auto-enlist first. `taps` (1–50 per call) convert to power, multiplied by the faction's live momentum and capped per wallet per round. Returns `{ epoch, mint, added, momentum, walletPower, walletCap, capped, factionPower, msLeft }` — `added` is the power this call contributed, `factionPower` the army's new round total, `capped` true once the wallet hits `walletCap`. Each call adds power (not idempotent); call repeatedly to keep rallying while the round clock (`msLeft`) runs.",+ "server": {+ "id": "clash-mcp",+ "title": "@three-ws/clash-mcp",+ "endpoint": "npx -y @three-ws/clash-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/clash-mcp/src/tools/rally-faction.js"+ },+ {+ "name": "concierge_ask",+ "title": "Ask a website's AI concierge a question",+ "description": null,+ "server": {+ "id": "concierge-mcp",+ "title": "@three-ws/concierge-mcp",+ "endpoint": "npx -y @three-ws/concierge-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/concierge-mcp/src/tools/ask.js"+ },+ {+ "name": "concierge_avatars",+ "title": "List available Concierge avatars",+ "description": null,+ "server": {+ "id": "concierge-mcp",+ "title": "@three-ws/concierge-mcp",+ "endpoint": "npx -y @three-ws/concierge-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/concierge-mcp/src/tools/avatars.js"+ },+ {+ "name": "concierge_embed",+ "title": "Generate a Concierge embed snippet for a website",+ "description": null,+ "server": {+ "id": "concierge-mcp",+ "title": "@three-ws/concierge-mcp",+ "endpoint": "npx -y @three-ws/concierge-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/concierge-mcp/src/tools/embed.js"+ },+ {+ "name": "cancel_subscription",+ "title": "Stop a copy-trade subscription",+ "description": "Stop following a leader: transitions the subscription to \"stopped\" so no new copy intents are generated. DESTRUCTIVE in that it ends an active money-adjacent follow — but it is a SOFT stop: execution history and earnings are preserved, and you can re-follow the same leader later with create_subscription. To merely halt copies temporarily without ending the follow, use update_subscription with status:\"paused\" instead. Returns the cancellation result. Requires THREE_WS_API_KEY.",+ "server": {+ "id": "copy-mcp",+ "title": "@three-ws/copy-mcp",+ "endpoint": "npx -y @three-ws/copy-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/copy-mcp/src/tools/cancel-subscription.js"+ },+ {+ "name": "create_subscription",+ "title": "Follow a leader (create / update subscription)",+ "description": "Follow a copy-trade leader from the authenticated account, defining how their trades are mirrored into your own wallet. MONEY-ADJACENT: this sets how much of YOUR SOL each copy may spend. Non-custodial — three.ws never signs or holds funds; it emits sized, guard-checked copy INTENTS you act on. Idempotent: re-calling with the same leader_agent_id + network updates that subscription (and re-activates it) rather than creating a duplicate. Sizing rule: \"fixed\" spends fixed_sol per copy; \"multiplier\" spends multiplier × the leader's entry; \"pct_balance\" spends pct_balance % of your spendable SOL. Every order is clamped to per_trade_cap_sol and the remaining daily_budget_sol. Returns the created/updated subscription. Requires THREE_WS_API_KEY.",+ "server": {+ "id": "copy-mcp",+ "title": "@three-ws/copy-mcp",+ "endpoint": "npx -y @three-ws/copy-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/copy-mcp/src/tools/create-subscription.js"+ },+ {+ "name": "get_earnings",+ "title": "Copy-trade earnings & fees owed",+ "description": "Read copy-trade performance-fee accounting. Without agent_id: the authenticated account's own fees OWED across every leader they copy — a total plus a per-subscription breakdown (cumulative realized copy profit, closed copies, billable profit above the high-water mark, and the fee). With agent_id: a leader's PUBLIC aggregate earnings (active copiers, accrued fee, total copier profit) — the social-proof figure, no per-copier identity exposed and no API key required. All figures are real: realized copy profit above each subscription's high-water mark at the leader's fee, settled in $THREE. Read-only.",+ "server": {+ "id": "copy-mcp",+ "title": "@three-ws/copy-mcp",+ "endpoint": "npx -y @three-ws/copy-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/copy-mcp/src/tools/get-earnings.js"+ },+ {+ "name": "get_executions",+ "title": "List copy executions (intent inbox)",+ "description": "List the authenticated account's copy executions — the sized, guard-checked copy INTENTS generated when a followed leader trades. Each row carries the coin (mint/symbol/name), the mirrored direction (buy/sell), the planned SOL size, the leader, the safety/quote snapshot used for the decision, the lifecycle status, and any fill signature you recorded. Filter by status: \"pending\" (actionable now — default), \"acted\", \"dismissed\", \"skipped\" (guard blocked it, with skip_reason), \"expired\", or \"all\". Reading refreshes the inbox: stale pending intents are expired automatically. Use record_execution to mark a pending intent acted/dismissed. Read-only; requires THREE_WS_API_KEY.",+ "server": {+ "id": "copy-mcp",+ "title": "@three-ws/copy-mcp",+ "endpoint": "npx -y @three-ws/copy-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/copy-mcp/src/tools/get-executions.js"+ },+ {+ "name": "list_subscriptions",+ "title": "List my copy-trade subscriptions",+ "description": "List the copy-trade subscriptions belonging to the authenticated account — every leader (a trader with a track record) you follow, with their identity, the subscription status (active / paused / stopped), the sizing rule and full guard-rule set, the performance fee, the high-water mark, and live pending/acted copy-intent counts. Use this to audit who you copy and how aggressively before tuning a follow with update_subscription. Returns the subscriptions newest-first. Read-only; requires THREE_WS_API_KEY.",+ "server": {+ "id": "copy-mcp",+ "title": "@three-ws/copy-mcp",+ "endpoint": "npx -y @three-ws/copy-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/copy-mcp/src/tools/list-subscriptions.js"+ },+ {+ "name": "record_execution",+ "title": "Record acting on a copy intent",+ "description": "Resolve a PENDING copy intent (from get_executions) by recording how you handled it. action:\"acted\" records that you executed the mirrored trade from your own wallet — optionally with the on-chain tx_signature for your records; action:\"dismissed\" discards the intent without trading. NON-CUSTODIAL: this never signs, sends, or broadcasts a transaction — it only updates the intent's status after YOU traded. Not idempotent: it transitions pending → acted/dismissed once; an intent that already expired or was actioned returns \"not_actionable\". Returns the updated execution. Requires THREE_WS_API_KEY.",+ "server": {+ "id": "copy-mcp",+ "title": "@three-ws/copy-mcp",+ "endpoint": "npx -y @three-ws/copy-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/copy-mcp/src/tools/record-execution.js"+ },+ {+ "name": "update_subscription",+ "title": "Update a copy-trade subscription",+ "description": "Re-tune an existing copy-trade subscription by id. Pause it (stop new copies, keep the follow), resume it, stop it, and/or change its sizing rule and guard rules (caps, daily budget, market-cap band, oracle/safety gates, performance fee). MONEY-ADJACENT: guard changes alter how much of your SOL future copies may spend — non-custodial, intents only. Only the fields you pass change; the rest are preserved. Editing guards on a paused subscription keeps it paused unless you also set status:\"active\". Idempotent. Returns the updated subscription. Requires THREE_WS_API_KEY.",+ "server": {+ "id": "copy-mcp",+ "title": "@three-ws/copy-mcp",+ "endpoint": "npx -y @three-ws/copy-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/copy-mcp/src/tools/update-subscription.js"+ },+ {+ "name": "ibm_granite_analyze",+ "title": "IBM Granite Analyze ($0.04)",+ "description": null,+ "server": {+ "id": "ibm-x402-mcp-remote",+ "title": "IBM Granite",+ "endpoint": "/api/ibm-mcp",+ "transport": "remote",+ "auth": "x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.04,+ "free": false+ },+ "source": "api/_mcpibm/tools.js"+ },+ {+ "name": "ibm_granite_chat",+ "title": "IBM Granite Chat ($0.02)",+ "description": null,+ "server": {+ "id": "ibm-x402-mcp-remote",+ "title": "IBM Granite",+ "endpoint": "/api/ibm-mcp",+ "transport": "remote",+ "auth": "x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.02,+ "free": false+ },+ "source": "api/_mcpibm/tools.js"+ },+ {+ "name": "ibm_granite_code",+ "title": "IBM Granite Code ($0.025)",+ "description": null,+ "server": {+ "id": "ibm-x402-mcp-remote",+ "title": "IBM Granite",+ "endpoint": "/api/ibm-mcp",+ "transport": "remote",+ "auth": "x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.025,+ "free": false+ },+ "source": "api/_mcpibm/tools.js"+ },+ {+ "name": "ibm_granite_embed",+ "title": "IBM Granite Embed ($0.005)",+ "description": null,+ "server": {+ "id": "ibm-x402-mcp-remote",+ "title": "IBM Granite",+ "endpoint": "/api/ibm-mcp",+ "transport": "remote",+ "auth": "x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.005,+ "free": false+ },+ "source": "api/_mcpibm/tools.js"+ },+ {+ "name": "ibm_granite_forecast",+ "title": "IBM Granite Forecast ($0.05)",+ "description": null,+ "server": {+ "id": "ibm-x402-mcp-remote",+ "title": "IBM Granite",+ "endpoint": "/api/ibm-mcp",+ "transport": "remote",+ "auth": "x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.05,+ "free": false+ },+ "source": "api/_mcpibm/tools.js"+ },+ {+ "name": "ibm_granite_getting_started",+ "title": "Getting Started (free)",+ "description": null,+ "server": {+ "id": "ibm-x402-mcp-remote",+ "title": "IBM Granite",+ "endpoint": "/api/ibm-mcp",+ "transport": "remote",+ "auth": "x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcpibm/tools.js"+ },+ {+ "name": "copy_smart_wallets",+ "title": "Copy-trade smart wallet directory",+ "description": "Browse the curated Smart Money directory for copy-trading: deduplicated wallets ranked by 30-day performance. Filter by chain (sol/bsc) and category (smart_money, launchpad, kol, sniper), search by address/name/twitter, and sort by profit, pnl, winrate, followers, or score. Returns the ranked page (wallet identity + 30-day performance, never token mints), the total, pagination flags, and category/chain facets. Read-only live data.",+ "server": {+ "id": "intel-mcp",+ "title": "@three-ws/intel-mcp",+ "endpoint": "npx -y @three-ws/intel-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/intel-mcp/src/tools/copy-smart-wallets.js"+ },+ {+ "name": "kol_leaderboard",+ "title": "KOL trader leaderboard",+ "description": "Rank the tracked key-opinion-leader (KOL) traders by realized performance over a recent window. Returns the leaderboard rows — each tracked wallet with its P&L, win rate, and trade activity for the chosen window. Read-only live data.",+ "server": {+ "id": "intel-mcp",+ "title": "@three-ws/intel-mcp",+ "endpoint": "npx -y @three-ws/intel-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/intel-mcp/src/tools/kol-leaderboard.js"+ },+ {+ "name": "kol_trades",+ "title": "Recent KOL trades on a mint",+ "description": "See which tracked KOL wallets have recently traded a specific mint. Returns the recent trades (buys/sells with size and timing) observed across the tracked KOL set, plus the size of that tracked set. Read-only live data.",+ "server": {+ "id": "intel-mcp",+ "title": "@three-ws/intel-mcp",+ "endpoint": "npx -y @three-ws/intel-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/intel-mcp/src/tools/kol-trades.js"+ },+ {+ "name": "signal_feed",+ "title": "Signal feed track record + recent signals",+ "description": "Read one signal feed's public detail: the publisher's verified track record, the feed's proven accuracy (hit-rate, average realized ROI, follower ROI, emit→fill latency), pricing, and the recent emission log — every signal with its realized outcome and the on-chain tx that proves it. Read-only live data.",+ "server": {+ "id": "intel-mcp",+ "title": "@three-ws/intel-mcp",+ "endpoint": "npx -y @three-ws/intel-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/intel-mcp/src/tools/signal-feed.js"+ },+ {+ "name": "smart_money_coin",+ "title": "Smart-money score for a coin",+ "description": "Assess a coin by WHO is net-buying it right now. Returns a 0–100 smart_money_score computed from real observed buys joined to real outcomes, the reputable buyers in the book (with realized score, win rate, and labels), the funder clusters behind them, and a sybil_flag when one cluster dominates the order book. `computed:false` means the graph has no on-chain history for this mint yet. Read-only live data.",+ "server": {+ "id": "intel-mcp",+ "title": "@three-ws/intel-mcp",+ "endpoint": "npx -y @three-ws/intel-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/intel-mcp/src/tools/smart-money-coin.js"+ },+ {+ "name": "wallet_intel",+ "title": "Wallet reputation + smart-money card",+ "description": "Pull one wallet's realized reputation, computed from its observed buys joined to real outcomes (graduated / pumped / rugged + ATH). Returns the realized_score (0–100), win_rate, behavioral labels, and the funder cluster it belongs to (with funder root, size, and confidence). `computed:false` means the graph has no scored history for this wallet yet. Read-only live data.",+ "server": {+ "id": "intel-mcp",+ "title": "@three-ws/intel-mcp",+ "endpoint": "npx -y @three-ws/intel-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/intel-mcp/src/tools/wallet-intel.js"+ },+ {+ "name": "get_wallet_portfolio",+ "title": "KOL wallet portfolio + P&L",+ "description": null,+ "server": {+ "id": "kol-mcp",+ "title": "@three-ws/kol-mcp",+ "endpoint": "npx -y @three-ws/kol-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/kol-mcp/src/tools/get-wallet-portfolio.js"+ },+ {+ "name": "get_wallet_trades",+ "title": "A KOL wallet's trades on a mint",+ "description": null,+ "server": {+ "id": "kol-mcp",+ "title": "@three-ws/kol-mcp",+ "endpoint": "npx -y @three-ws/kol-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/kol-mcp/src/tools/get-wallet-trades.js"+ },+ {+ "name": "get_creation",+ "title": "Fetch one Loom creation by id",+ "description": null,+ "server": {+ "id": "loom-mcp",+ "title": "@three-ws/loom-mcp",+ "endpoint": "npx -y @three-ws/loom-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/loom-mcp/src/tools/get-creation.js"+ },+ {+ "name": "get_loom_feed",+ "title": "Browse the Loom 3D-creation gallery",+ "description": null,+ "server": {+ "id": "loom-mcp",+ "title": "@three-ws/loom-mcp",+ "endpoint": "npx -y @three-ws/loom-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/loom-mcp/src/tools/get-loom-feed.js"+ },+ {+ "name": "submit_creation",+ "title": "Submit a creation to the Loom gallery",+ "description": null,+ "server": {+ "id": "loom-mcp",+ "title": "@three-ws/loom-mcp",+ "endpoint": "npx -y @three-ws/loom-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/loom-mcp/src/tools/submit-creation.js"+ },+ {+ "name": "agent_categories",+ "title": "List agent marketplace categories",+ "description": "List the agent marketplace categories with the count of published agents in each, plus the overall total. Use the returned category slugs to filter browse_agents. Read-only.",+ "server": {+ "id": "marketplace-mcp",+ "title": "@three-ws/marketplace-mcp",+ "endpoint": "npx -y @three-ws/marketplace-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/marketplace-mcp/src/tools/agent-categories.js"+ },+ {+ "name": "agent_detail",+ "title": "Fetch a marketplace agent by id",+ "description": "Fetch one published marketplace agent by its id, including its full detail: name, description, category, tags, system prompt, greeting, capabilities, author, ratings, skill prices, subscription tiers, and avatar URLs. Read-only.",+ "server": {+ "id": "marketplace-mcp",+ "title": "@three-ws/marketplace-mcp",+ "endpoint": "npx -y @three-ws/marketplace-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/marketplace-mcp/src/tools/agent-detail.js"+ },+ {+ "name": "browse_agents",+ "title": "Browse the agent marketplace",+ "description": "Search and page the public three.ws agent marketplace. Filter by category and free-text query, choose a sort order, and get back a list of agent cards (id, name, description, category, tags, ratings, view/fork counts, thumbnail and GLB avatar URLs) plus a cursor for the next page. Read-only.",+ "server": {+ "id": "marketplace-mcp",+ "title": "@three-ws/marketplace-mcp",+ "endpoint": "npx -y @three-ws/marketplace-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/marketplace-mcp/src/tools/browse-agents.js"+ },+ {+ "name": "browse_skills",+ "title": "Browse the skills catalog",+ "description": "Search and page the public three.ws skills catalog — reusable tools and capabilities agents can install. Filter by free-text query and category, choose a sort order, and get back a list of skills (id, name, slug, description, category, tags, install count, rating, per-call price, author, content preview) plus a cursor for the next page. Read-only.",+ "server": {+ "id": "marketplace-mcp",+ "title": "@three-ws/marketplace-mcp",+ "endpoint": "npx -y @three-ws/marketplace-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/marketplace-mcp/src/tools/browse-skills.js"+ },+ {+ "name": "skill_categories",+ "title": "List skills catalog categories",+ "description": "List the skills catalog categories that have at least one public skill, each with a slug, label, and the count of skills in it. Use the returned slugs to filter browse_skills. Read-only.",+ "server": {+ "id": "marketplace-mcp",+ "title": "@three-ws/marketplace-mcp",+ "endpoint": "npx -y @three-ws/marketplace-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/marketplace-mcp/src/tools/skill-categories.js"+ },+ {+ "name": "sns_resolve",+ "title": "Resolve a .sol name to its owner wallet",+ "description": "Resolve a Solana Name Service (.sol) name to the base58 wallet address that owns it. Accepts a bare label, a subdomain, or the full name with or without the trailing \".sol\". Returns the owner address, or resolved:false when the name is unregistered. Mainnet only. Read-only.",+ "server": {+ "id": "naming-mcp",+ "title": "@three-ws/naming-mcp",+ "endpoint": "npx -y @three-ws/naming-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/naming-mcp/src/tools/sns-resolve.js"+ },+ {+ "name": "sns_reverse",+ "title": "Reverse-lookup a wallet to its primary .sol name",+ "description": "Reverse-lookup a Solana wallet to the primary .sol name it has set as its favorite. Returns the name, or resolved:false when the wallet has no favorite domain (a routine, expected answer — not an error). Mainnet only. Read-only.",+ "server": {+ "id": "naming-mcp",+ "title": "@three-ws/naming-mcp",+ "endpoint": "npx -y @three-ws/naming-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/naming-mcp/src/tools/sns-reverse.js"+ },+ {+ "name": "threews_availability",+ "title": "Check if a *.threews.sol agent identity is available",+ "description": "Check whether \"<label>.threews.sol\" is available to claim as a three.ws agent identity. Returns the full domain, availability, the current owner wallet if taken, the on-chain check status (\"ok\" or \"unavailable\" if the Solana RPC was degraded), and the public showcase URL for a claimed handle. Minting the subdomain is an authenticated write on the HTTP API; this tool is the public read. Read-only.",+ "server": {+ "id": "naming-mcp",+ "title": "@three-ws/naming-mcp",+ "endpoint": "npx -y @three-ws/naming-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/naming-mcp/src/tools/threews-availability.js"+ },+ {+ "name": "delete_notification",+ "title": "Delete notification",+ "description": null,+ "server": {+ "id": "notifications-mcp",+ "title": "@three-ws/notifications-mcp",+ "endpoint": "npx -y @three-ws/notifications-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/notifications-mcp/src/tools/delete-notification.js"+ },+ {+ "name": "get_preferences",+ "title": "Get notification preferences",+ "description": null,+ "server": {+ "id": "notifications-mcp",+ "title": "@three-ws/notifications-mcp",+ "endpoint": "npx -y @three-ws/notifications-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/notifications-mcp/src/tools/get-preferences.js"+ },+ {+ "name": "list_notifications",+ "title": "List notifications",+ "description": null,+ "server": {+ "id": "notifications-mcp",+ "title": "@three-ws/notifications-mcp",+ "endpoint": "npx -y @three-ws/notifications-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/notifications-mcp/src/tools/list-notifications.js"+ },+ {+ "name": "mark_read",+ "title": "Mark notifications read",+ "description": null,+ "server": {+ "id": "notifications-mcp",+ "title": "@three-ws/notifications-mcp",+ "endpoint": "npx -y @three-ws/notifications-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/notifications-mcp/src/tools/mark-read.js"+ },+ {+ "name": "register_push_device",+ "title": "Register push device",+ "description": null,+ "server": {+ "id": "notifications-mcp",+ "title": "@three-ws/notifications-mcp",+ "endpoint": "npx -y @three-ws/notifications-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/notifications-mcp/src/tools/register-push-device.js"+ },+ {+ "name": "set_preferences",+ "title": "Set notification preferences",+ "description": null,+ "server": {+ "id": "notifications-mcp",+ "title": "@three-ws/notifications-mcp",+ "endpoint": "npx -y @three-ws/notifications-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/notifications-mcp/src/tools/set-preferences.js"+ },+ {+ "name": "unregister_push_device",+ "title": "Unregister push device",+ "description": null,+ "server": {+ "id": "notifications-mcp",+ "title": "@three-ws/notifications-mcp",+ "endpoint": "npx -y @three-ws/notifications-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/notifications-mcp/src/tools/unregister-push-device.js"+ },+ {+ "name": "get_portfolio_asset",+ "title": "My position in one token (holdings + market + chart)",+ "description": null,+ "server": {+ "id": "portfolio-mcp",+ "title": "@three-ws/portfolio-mcp",+ "endpoint": "npx -y @three-ws/portfolio-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/portfolio-mcp/src/tools/portfolio-asset.js"+ },+ {+ "name": "get_portfolio_history",+ "title": "My portfolio value over time",+ "description": null,+ "server": {+ "id": "portfolio-mcp",+ "title": "@three-ws/portfolio-mcp",+ "endpoint": "npx -y @three-ws/portfolio-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/portfolio-mcp/src/tools/portfolio-history.js"+ },+ {+ "name": "get_portfolio_summary",+ "title": "My agents’ live portfolio (holdings + USD value)",+ "description": null,+ "server": {+ "id": "portfolio-mcp",+ "title": "@three-ws/portfolio-mcp",+ "endpoint": "npx -y @three-ws/portfolio-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/portfolio-mcp/src/tools/portfolio-summary.js"+ },+ {+ "name": "get_trades_feed",+ "title": "Public closed-trade PnL feed",+ "description": null,+ "server": {+ "id": "portfolio-mcp",+ "title": "@three-ws/portfolio-mcp",+ "endpoint": "npx -y @three-ws/portfolio-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/portfolio-mcp/src/tools/trades-feed.js"+ },+ {+ "name": "get_wallet_balances",+ "title": "Live on-chain balances for a Solana wallet",+ "description": null,+ "server": {+ "id": "portfolio-mcp",+ "title": "@three-ws/portfolio-mcp",+ "endpoint": "npx -y @three-ws/portfolio-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/portfolio-mcp/src/tools/wallet-balances.js"+ },+ {+ "name": "send_transfer",+ "title": "Send SOL or an SPL token on Solana mainnet",+ "description": null,+ "server": {+ "id": "portfolio-mcp",+ "title": "@three-ws/portfolio-mcp",+ "endpoint": "npx -y @three-ws/portfolio-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/portfolio-mcp/src/tools/send-transfer.js"+ },+ {+ "name": "append_agent_action",+ "title": "Append a signed action to the provenance ledger",+ "description": "Record an action in an agent's append-only provenance ledger — the permanent, auditable trail of what the agent did. Provide `agent_id` (THREE_WS_TOKEN must own it), a short `type` (≤64 chars, e.g. launch, buy, post, reflect), an optional structured `payload`, and an optional `source_skill`. WRITE ACTION: this APPENDS a new immutable record — it can never be edited or deleted, and calling it twice records two distinct actions, so don't retry blindly. When an EVM signer is configured (THREE_WS_SIGNER_KEY env or the `signer_key` arg) the action is ERC-191-signed before sending, making its authorship publicly verifiable; with no key it is appended unsigned. Returns the stored record (with id + created_at) and a `signing` block reporting whether it was signed and by which address.",+ "server": {+ "id": "provenance-mcp",+ "title": "@three-ws/provenance-mcp",+ "endpoint": "npx -y @three-ws/provenance-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/provenance-mcp/src/tools/append-agent-action.js"+ },+ {+ "name": "list_agent_actions",+ "title": "List an agent's action-provenance trail",+ "description": "Read an agent's append-only action log, newest-first, cursor-paginated. Returns each action's id, type (e.g. launch, buy, post, reflect), payload, source_skill, created_at, and — when the action was signed — its ERC-191 signature + signer_address. Each record is checked against its own signature: `verification.reason` is `ok` (recovered signer matches the claimed address), `unsigned`, `signer_mismatch` (recovered a different address — tampering OR an action signed under a different canonical scheme; treat as unverified, not trusted), or `malformed_signature`. Pass the returned `next_cursor` back as `cursor` to page further. The ledger is owner-scoped: THREE_WS_TOKEN must own `agent_id`. Read-only; the log is immutable so older pages never change.",+ "server": {+ "id": "provenance-mcp",+ "title": "@three-ws/provenance-mcp",+ "endpoint": "npx -y @three-ws/provenance-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/provenance-mcp/src/tools/list-agent-actions.js"+ },+ {+ "name": "query_action",+ "title": "Fetch + verify one provenance action",+ "description": "Fetch a single action from an agent's append-only log by its id, then verify it. Returns the action (type, payload, source_skill, created_at, signature, signer_address) plus a `verification` block: `signed`, `valid`, `reason` (`ok` | `unsigned` | `signer_mismatch` | `malformed_signature`), the `recovered` signer address, and the recomputed `digest`. `valid:true` means the ERC-191 signature recovers to the claimed signer over the canonical action form — cryptographic proof the named agent authored this exact action and it was not altered. The ledger is owner-scoped: THREE_WS_TOKEN must own `agent_id`. Returns ok:false / not_found when the id is absent from this agent's log. Read-only.",+ "server": {+ "id": "provenance-mcp",+ "title": "@three-ws/provenance-mcp",+ "endpoint": "npx -y @three-ws/provenance-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/provenance-mcp/src/tools/query-action.js"+ },+ {+ "name": "build_world",+ "title": "Build a complete 3D world from one sentence (no browser needed)",+ "description": "One sentence → a fully forged, exported 3D world, entirely server-side: composes the scene plan, forges every object on the free text→3D lane, and merges the result into one GLB with named, selectable nodes plus ground and lighting. Returns the populated diorama, the merged GLB URL, and a ready-to-open Scene Studio link. This is the whole progressive /diorama browser flow collapsed into one call — it can take a couple of minutes for a full object set. Partial forges are not failures: whatever forged is exported, and `skipped` names anything that did not.",+ "server": {+ "id": "scene-mcp",+ "title": "@three-ws/scene-mcp",+ "endpoint": "npx -y @three-ws/scene-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/scene-mcp/src/tools/build-world.js"+ },+ {+ "name": "compose_scene",+ "title": "Compose a 3D diorama plan from one sentence",+ "description": "Compose a tiny 3D diorama from one short sentence. Returns a PLAN: an evocative title, a mood (dawn/day/dusk/night), ground + island type, a color palette, and 2–8 placed objects — each with a single-object forge prompt, position, scale and rotation. No meshes are generated yet and nothing is saved; feed the plan to the three.ws diorama page (or /api/forge per object) to build the world. Read-mostly but runs live LLM inference.",+ "server": {+ "id": "scene-mcp",+ "title": "@three-ws/scene-mcp",+ "endpoint": "npx -y @three-ws/scene-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/scene-mcp/src/tools/compose-scene.js"+ },+ {+ "name": "export_scene",+ "title": "Export a forged diorama as one GLB scene",+ "description": "Merge an already-forged diorama (objects with real glbUrl values, e.g. from your own forging after compose_scene, or fetched via get_scene) into ONE glTF 2.0 binary: every object becomes a named, selectable node, plus a real ground disc and mood-tuned lighting. Returns the merged GLB URL and a ready-to-open three.ws Scene Studio link. Objects that never forged are skipped and reported, not treated as a failure — a partial world still exports. Requires the target deployment to have object storage configured (three.ws does).",+ "server": {+ "id": "scene-mcp",+ "title": "@three-ws/scene-mcp",+ "endpoint": "npx -y @three-ws/scene-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/scene-mcp/src/tools/export-scene.js"+ },+ {+ "name": "get_scene",+ "title": "Fetch a saved diorama by id",+ "description": "Fetch one saved diorama (a fully-forged 3D world) by its id, including its title, mood, palette, ground, and the placed objects with their GLB URLs. Returns the orbitable viewer URL. Read-only.",+ "server": {+ "id": "scene-mcp",+ "title": "@three-ws/scene-mcp",+ "endpoint": "npx -y @three-ws/scene-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/scene-mcp/src/tools/get-scene.js"+ },+ {+ "name": "list_scenes",+ "title": "List recent or featured dioramas",+ "description": "Browse the public diorama gallery — the most recent saved worlds, or the featured set. Returns a list of cards (id, title, mood, thumbnail/preview, view count) plus each world's viewer URL. Read-only.",+ "server": {+ "id": "scene-mcp",+ "title": "@three-ws/scene-mcp",+ "endpoint": "npx -y @three-ws/scene-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/scene-mcp/src/tools/list-scenes.js"+ },+ {+ "name": "get_mirror_leaderboard",+ "title": "Rank signal publishers by realized performance",+ "description": null,+ "server": {+ "id": "signals-mcp",+ "title": "@three-ws/signals-mcp",+ "endpoint": "npx -y @three-ws/signals-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/signals-mcp/src/tools/get-mirror-leaderboard.js"+ },+ {+ "name": "get_subscriptions",+ "title": "List your signal subscriptions + delivery history",+ "description": null,+ "server": {+ "id": "signals-mcp",+ "title": "@three-ws/signals-mcp",+ "endpoint": "npx -y @three-ws/signals-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/signals-mcp/src/tools/get-subscriptions.js"+ },+ {+ "name": "list_signal_feeds",+ "title": "Browse the signal-feed marketplace",+ "description": null,+ "server": {+ "id": "signals-mcp",+ "title": "@three-ws/signals-mcp",+ "endpoint": "npx -y @three-ws/signals-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/signals-mcp/src/tools/list-signal-feeds.js"+ },+ {+ "name": "set_subscription_status",+ "title": "Resume, pause, stop, or kill a subscription",+ "description": null,+ "server": {+ "id": "signals-mcp",+ "title": "@three-ws/signals-mcp",+ "endpoint": "npx -y @three-ws/signals-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/signals-mcp/src/tools/set-subscription-status.js"+ },+ {+ "name": "subscribe_signal",+ "title": "Subscribe an agent to a signal feed",+ "description": null,+ "server": {+ "id": "signals-mcp",+ "title": "@three-ws/signals-mcp",+ "endpoint": "npx -y @three-ws/signals-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/signals-mcp/src/tools/subscribe-signal.js"+ },+ {+ "name": "three_balance",+ "title": "Read a wallet's $THREE + SOL balance",+ "description": "Return the $THREE and SOL balance for a Solana pubkey. If no pubkey is given, uses the configured signer (SOLANA_SECRET_KEY). Read-only — no payment.",+ "server": {+ "id": "three-token-mcp",+ "title": "@three-ws/three-token-mcp",+ "endpoint": "npx -y @three-ws/three-token-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/three-token-mcp/src/tools/three-balance.js"+ },+ {+ "name": "three_burn",+ "title": "Burn $THREE on-chain (incinerator + treasury split)",+ "description": "Burn a USD-denominated amount of the $THREE your wallet holds. Quotes USD→$THREE via Jupiter, then sends ONE Solana transaction that splits it between the incinerator (burn) and the three.ws treasury, per the live public token config. EXECUTION ACTION — signs and broadcasts on Solana mainnet, IRREVERSIBLE: pass confirm:true. Capped by MAX_BURN_USD. The resolved mint is asserted to be canonical $THREE before signing. Requires a signer (SOLANA_SECRET_KEY env or the `secret` arg) holding enough $THREE. Returns the tx signature, the burned/treasury breakdown, and a Solscan link.",+ "server": {+ "id": "three-token-mcp",+ "title": "@three-ws/three-token-mcp",+ "endpoint": "npx -y @three-ws/three-token-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/three-token-mcp/src/tools/three-burn.js"+ },+ {+ "name": "three_price",+ "title": "Live $THREE price (Jupiter) + USD→$THREE quote",+ "description": "Return the live USD price of $THREE (Jupiter primary, Birdeye fallback). Pass `usd` to also get how much $THREE that amount buys (token amount + atomic units). Read-only — no signer or payment required.",+ "server": {+ "id": "three-token-mcp",+ "title": "@three-ws/three-token-mcp",+ "endpoint": "npx -y @three-ws/three-token-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/three-token-mcp/src/tools/three-price.js"+ },+ {+ "name": "apply_animation",+ "title": "Apply an animation preset to a rigged model",+ "description": "Retarget a curated animation preset onto a caller-supplied rigged humanoid GLB. Returns the retargeted three.js AnimationClip JSON (keyed to the rig's actual bone names, hip translation rescaled to its proportions) plus a retarget report — load it alongside the model and play. Set format=\"glb\" to also bake an animated GLB server-side (best-effort: textured rigs may exceed the headless bake budget and fall back to clip JSON — the /pose gallery is the guaranteed GLB export). SSRF-hardened: only public https model URLs are fetched.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.01,+ "free": false+ },+ "source": "api/_mcp/tools/animations.js"+ },+ {+ "name": "attach_avatar_to_agent",+ "title": "Give an agent a body",+ "description": null,+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/agents.js"+ },+ {+ "name": "call_agent",+ "title": "Call agent",+ "description": "Send a message to another three.ws agent and get its response. Use this to delegate specialized tasks.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/agents.js"+ },+ {+ "name": "copy_status",+ "title": "My copy subscriptions",+ "description": "List all your active copy-trading subscriptions, with sizing config, execution counts (pending/acted), and the leader's name and profile. Use this to check that copy-trading is set up correctly and to see which subscriptions are generating intents.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/trader.js"+ },+ {+ "name": "copy_subscribe",+ "title": "Subscribe to copy a trader",+ "description": "Set up non-custodial copy-trading: mirror a leader agent's future pump.fun entries into your own wallet with your own sizing and risk caps. You supply your wallet address and the sizing rules; we never hold keys. The fan-out cron checks for new leader entries and generates sized intents you act on from /dashboard/copy. Provide leader_agent_id (from trader_leaderboard) and your Solana wallet address. Sizing rules: 'fixed' = exact SOL per trade, 'multiplier' = N× leader size, 'pct_balance' = % of your balance. Always set a per_trade_cap_sol and daily_budget_sol to limit exposure.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/trader.js"+ },+ {+ "name": "create_gated_embed",+ "title": "Create a token-gated embed",+ "description": "Turn an avatar or on-chain agent you own into a holder-only interactive 3D embed. Visitors must prove — with a real, server-verified Solana SPL token balance, never a client-reported number — they hold at least min_amount of mint before the live scene renders; below that they see a designed locked teaser with a connect-wallet CTA. mint defaults to $THREE but accepts any SPL mint at runtime. Returns a ready-to-paste <three-d> embed snippet.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/embed.js"+ },+ {+ "name": "crypto_data",+ "title": "Crypto Data API",+ "description": null,+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/crypto-data.js"+ },+ {+ "name": "delete_avatar",+ "title": "Delete avatar",+ "description": "Soft-delete an avatar you own. Requires avatars:delete scope.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/avatars.js"+ },+ {+ "name": "forget",+ "title": "Forget",+ "description": "Delete a memory you own by its id.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/memory.js"+ },+ {+ "name": "garment_status",+ "title": "Check a garment generation job",+ "description": null,+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/garments.js"+ },+ {+ "name": "generate_garment",+ "title": "Generate a wearable garment from a text prompt",+ "description": null,+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/garments.js"+ },+ {+ "name": "get_3d_asset_onchain",+ "title": "Resolve a 3D NFT to its live asset + provenance",+ "description": null,+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/tokenize.js"+ },+ {+ "name": "get_avatar",+ "title": "Get avatar",+ "description": "Fetch a single avatar by id or by owner+slug. Returns metadata and a model_url (public/unlisted) or short-lived signed URL (private).",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/avatars.js"+ },+ {+ "name": "get_embed_code",+ "title": "Get embed code",+ "description": "Return a ready-to-paste <iframe> embed snippet (plus shareable URL, oEmbed URL, and OG thumbnail) for a three.ws avatar, on-chain agent, or Forge creation. Embed a persistent 3D avatar into Notion, Webflow, Framer, a blog, or any site as easily as a YouTube video. Provide exactly one target: agent_id, OR chain_id + onchain_agent_id, OR creation_id.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/embed.js"+ },+ {+ "name": "identity_check",+ "title": "Screen an agent identity for impersonation",+ "description": null,+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/agents.js"+ },+ {+ "name": "inspect_model",+ "title": "Inspect glTF/GLB model",+ "description": "Parse a remote GLB or glTF and return structural stats: scene/node/mesh counts, vertex and triangle totals, material and texture summaries, extensions used. Pure inspection — no optimization advice.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.01,+ "free": false+ },+ "source": "api/_mcp/tools/models.js"+ },+ {+ "name": "list_animations",+ "title": "List animation presets",+ "description": "List the curated, retargetable animation presets in the three.ws library — name, label, category, and whether the clip loops. Use this to discover valid `animation` values for apply_animation.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/animations.js"+ },+ {+ "name": "list_garment_catalog",+ "title": "List the wardrobe garment catalog",+ "description": null,+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/garments.js"+ },+ {+ "name": "list_my_avatars",+ "title": "List my avatars",+ "description": "List the authenticated user's avatars. Returns id, name, slug, size, visibility, and direct model_url (when visibility permits).",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/avatars.js"+ },+ {+ "name": "mint_3d_asset",+ "title": "Mint a 3D asset as a Solana NFT",+ "description": null,+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.25,+ "free": false+ },+ "source": "api/_mcp/tools/tokenize.js"+ },+ {+ "name": "optimize_model",+ "title": "Suggest optimizations for a glTF/GLB model",+ "description": "Inspect the model and return actionable suggestions for reducing size and draw-call overhead: triangle budget, Draco/Meshopt compression, oversized textures, KTX2 transcoding, non-indexed primitives, redundant materials, and more.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.05,+ "free": false+ },+ "source": "api/_mcp/tools/models.js"+ },+ {+ "name": "oracle_arm_watch",+ "title": "Arm agent Oracle watch",+ "description": "Arm your agent to automatically act on Oracle conviction signals. Once armed, the Oracle cron (every 2 min) will detect high-conviction launches that cross your floor and execute buys from your agent's custodial Solana wallet. Set mode='simulate' (default, safe) to log what it would have bought without spending. Set mode='live' to spend real SOL. The agent acts at most once per mint, per-trade SOL is capped, and you can disarm at any time by passing armed=false.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/oracle.js"+ },+ {+ "name": "oracle_coin",+ "title": "Oracle verdict for one coin",+ "description": "Get Oracle's full conviction verdict for a specific pump.fun coin by mint address. Returns the fused 0–100 conviction score, tier (prime/strong/lean/watch/avoid), all four pillar scores (pedigree = who's behind it, structure = how it's built, narrative = cultural fit, momentum = early trading signal), active badges (e.g. smart_money_early, narrative_match), and a machine-readable buy/watch/skip recommendation. If the coin isn't in the Oracle cache yet, it will be scored on-demand (may add ~1s latency).",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/oracle.js"+ },+ {+ "name": "oracle_top_plays",+ "title": "Oracle top conviction plays",+ "description": "Get the current top pump.fun launches ranked by Oracle conviction score. Each play includes a score (0–100), tier (prime/strong/lean/watch/avoid), four pillar scores (pedigree/structure/narrative/momentum), and an agent-ready recommendation with a suggested size_factor. Use this to decide which coins to buy before they move. Filter by min_score or category to narrow the signal.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/oracle.js"+ },+ {+ "name": "oracle_watch_status",+ "title": "Oracle watch status + track record",+ "description": "Check your agent's current Oracle watch configuration and its realized track record: win rate, PnL, ROI, plus the 10 most recent actions with their outcomes. Use this to verify the agent is armed correctly and to review its performance before scaling up.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/oracle.js"+ },+ {+ "name": "pumpfun_creator_intel",+ "title": "Pump.fun creator intel",+ "description": "Reputation profile for a pump.fun creator wallet: prior launches, graduation rate, claim activity, and behavioural trust signals.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/pumpfun.js"+ },+ {+ "name": "pumpfun_recent_claims",+ "title": "Recent pump.fun claims",+ "description": "Fetch the most recent pump.fun GitHub social-fee claim events with full enrichment: GitHub profile, X/Twitter follower data, influencer tier, first-time-claim flag, fake-claim detection, and AI summary. Use to answer 'what's happening on pump.fun right now?'.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/pumpfun.js"+ },+ {+ "name": "pumpfun_recent_graduations",+ "title": "Recent pump.fun graduations",+ "description": "Tokens that recently graduated from the bonding curve to PumpAMM, with creator + holder analysis.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/pumpfun.js"+ },+ {+ "name": "pumpfun_token_intel",+ "title": "Pump.fun token intel",+ "description": "Full intel on a pump.fun token: graduation status, bonding-curve progress, creator profile, top holders, volume, bundle detection, and trust signals.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/pumpfun.js"+ },+ {+ "name": "recall",+ "title": "Recall",+ "description": "Retrieve the most relevant memories for a query from one of your agents. Ranks by relevance to the query blended with salience and recency, excluding expired memories. Returns an ordered list.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/memory.js"+ },+ {+ "name": "register_agent",+ "title": "Register an agent on-chain",+ "description": null,+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/agents.js"+ },+ {+ "name": "remember",+ "title": "Remember",+ "description": "Store a long-term memory for one of your agents. Use for durable facts: who the user is (type=user), guidance/corrections (feedback), ongoing work (project), or external pointers (reference). Returns the stored memory.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/memory.js"+ },+ {+ "name": "render_avatar",+ "title": "Render avatar",+ "description": null,+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.005,+ "free": false+ },+ "source": "api/_mcp/tools/avatars.js"+ },+ {+ "name": "render_avatar_image",+ "title": "Render an avatar to an image",+ "description": null,+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/avatars.js"+ },+ {+ "name": "search_public_avatars",+ "title": "Search public avatars",+ "description": "Search the public avatar gallery. Useful for finding characters to render without prior knowledge of an id.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.001,+ "free": false+ },+ "source": "api/_mcp/tools/avatars.js"+ },+ {+ "name": "solana_agent_attestations",+ "title": "List Solana agent attestations",+ "description": "List recent on-chain attestations about a Solana-registered agent (feedback, validation, task offers, acceptances, disputes). Backed by the three.ws indexer for sub-100ms reads. Each row includes verified/disputed/revoked flags. Public; no auth required.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/solana.js"+ },+ {+ "name": "solana_agent_passport",+ "title": "Get Solana agent passport",+ "description": "Full discovery card for a Solana agent: identity (Metaplex Core asset), owner wallet, reputation summary, latest validation result, and attestation schema endpoint. Equivalent to an ERC-8004 passport — use this when one tool call should answer \"who is this agent and can I trust them?\".",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/solana.js"+ },+ {+ "name": "solana_agent_reputation",+ "title": "Get Solana agent reputation",+ "description": "Computed reputation summary for a Solana-registered three.ws agent. Returns total/verified feedback counts, score averages (raw + verified-only), validation pass/fail, task acceptance, and dispute counts. Verified score only includes feedback whose task was acknowledged on-chain by the agent owner. Priced at $0.001 USDC/call via x402 (pay-per-call; an OAuth bearer token bypasses payment).",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.001,+ "free": false+ },+ "source": "api/_mcp/tools/solana.js"+ },+ {+ "name": "text_to_animation",+ "title": "Generate an animation from a text prompt and retarget it onto a model",+ "description": "Generate a brand-new motion from a natural-language prompt (e.g. \"waving confidently\", \"a slow tai-chi sweep\") with a motion-diffusion model, then retarget it onto a caller-supplied rigged humanoid GLB — the same retarget engine apply_animation uses. Returns the retargeted three.js AnimationClip JSON (or a baked animated GLB) plus a report. Unlike preset libraries, the motion does not pre-exist: it is synthesized for the prompt. Requires the text2motion worker configured on the deployment.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/animations.js"+ },+ {+ "name": "token_snapshot",+ "title": "Crypto token snapshot",+ "description": null,+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/crypto-data.js"+ },+ {+ "name": "trader_leaderboard",+ "title": "Top pump.fun traders",+ "description": "Get the top pump.fun traders on three.ws ranked by composite TraderScore (win rate + P&L + ROI + drawdown). Each row includes score (0–100), verified badge, closed trade count, win rate, realized P&L in SOL and USD, ROI %, max drawdown, and a 'recommendation' field: 'copy' = strong candidate, 'watch' = emerging, 'skip' = unproven. Use trader_profile to get full details before copying. Sort by 'score' (default), 'pnl', 'winrate', or 'roi'. Window: '24h', '7d', '30d' (default), or 'all'.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/trader.js"+ },+ {+ "name": "trader_profile",+ "title": "Full track record for one agent",+ "description": "Get the full, verifiable track record for a specific pump.fun agent trader. Returns the composite TraderScore, all headline metrics (win rate, realized P&L, ROI, profit factor, max drawdown, average hold time), up to 10 recent closed trades with their on-chain Solscan links, and any open positions. Every number is traceable to its on-chain buy/sell transaction. Use this to vet an agent before calling copy_subscribe.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp/tools/trader.js"+ },+ {+ "name": "validate_model",+ "title": "Validate glTF/GLB model",+ "description": "Run the Khronos glTF-Validator against a remote GLB or glTF URL. Returns a structured report of errors, warnings, infos, and hints — the authoritative answer to \"is this file spec-compliant?\". SSRF-hardened: only public https URLs are fetched.",+ "server": {+ "id": "three.ws",+ "title": "three.ws",+ "endpoint": "/api/mcp",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.01,+ "free": false+ },+ "source": "api/_mcp/tools/models.js"+ },+ {+ "name": "anchor_provenance",+ "title": "Anchor a signed content credential for a 3D model",+ "description": null,+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.05,+ "free": false+ },+ "source": "api/_mcp3d/tools/provenance.js"+ },+ {+ "name": "auto_rig_model",+ "title": "Auto-rig a static 3D model (skeleton + skin weights)",+ "description": "Turn a static GLB mesh into an animation-ready character: adds a humanoid skeleton and per-vertex skin weights via the three.ws rig pipeline. Pairs with text_to_3d / image_to_3d — generate a mesh, then rig it, then drive it with apply_animation or pose_model. Returns a job_id; poll generation_status for the rigged GLB.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.05,+ "free": false+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "capture_scene",+ "title": "Reconstruct a 3D scene from a video",+ "description": null,+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.05,+ "free": false+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "create_agent_persona",+ "title": "Mint a persistent, living agent persona from a rigged GLB",+ "description": "Turn a generated GLB into a NAMED, persistent agent body — a \"persona\" the agent reuses across turns and across sessions. The mesh is copied into durable storage so the body survives the provider URL expiring, then registered under a stable persona_id. The returned text/html resource renders the LIVING body inline: it idles between turns, and persona_say makes it lip-sync and emote a reply. The persona_id is the capability — keep it and pass it to get_agent_persona or persona_say later to bring the exact same body back. No sign-in required.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "direct_prompt",+ "title": "Optimize a rough idea into a 3D-generation prompt (IBM Granite)",+ "description": "Rewrite a rough idea into an optimized text_to_3d prompt using IBM Granite. Returns one clean single-subject description plus structured directives (subject, style, materials, colors, detail) that produce cleaner meshes. Run before text_to_3d when a prompt is vague, conflicting, or multi-subject. Requires IBM watsonx.ai credentials on the server.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.01,+ "free": false+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "export_ar",+ "title": "Export a model for AR (\"View in your space\")",+ "description": null,+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp3d/tools/ar.js"+ },+ {+ "name": "generate_material",+ "title": "Generate a glTF PBR material from a description (IBM Granite)",+ "description": "Generate a physically-based (PBR) glTF 2.0 material from a text description using IBM Granite — base color, metallic, roughness, and emissive factors. Returns a pbrMetallicRoughness material object you can attach to a generated mesh. Requires IBM watsonx.ai credentials on the server.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.01,+ "free": false+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "generation_status",+ "title": "Check a 3D generation job",+ "description": "Poll a text_to_3d or image_to_3d job by its job_id. While running it reports the status; when finished it returns the GLB download URL and an inline <model-viewer> artifact — display that text/html resource as an interactive 3D artifact.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "get_agent_persona",+ "title": "Reload a persisted persona by id (continuity across sessions)",+ "description": "Bring back a previously minted persona by its persona_id — the SAME body and identity, in a fresh session. Returns the persona name, its GLB, accumulated turn count, and the inline living-body artifact. Use this at the start of a conversation when the user returns to a named agent.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "image_to_3d",+ "title": "Reconstruct a 3D model from one or more images",+ "description": "Reconstruct a textured 3D model (GLB) from a reference image using the three.ws image engine. Pass a single image_url, or image_urls (2–4 views of the SAME object from different angles — front/back/left/right) for multi-view reconstruction, which removes the back-of-object hallucination of single-image reconstruction. Returns a job_id to poll with generation_status, plus how many views were fused and which engine handled it. The cleaner the inputs — one subject, plain background, even lighting — the better the mesh.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.15,+ "free": false,+ "tiers": [+ {+ "id": "draft",+ "usd": 0.05+ },+ {+ "id": "standard",+ "usd": 0.15+ },+ {+ "id": "high",+ "usd": 0.5+ }+ ]+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "persona_identity",+ "title": "Read a persona's on-chain identity — wallet, reputation, holdings",+ "description": null,+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp3d/tools/persona-identity.js"+ },+ {+ "name": "persona_say",+ "title": "Speak a reply through a persona — lip-sync + emotion + gesture",+ "description": "Make a persona PERFORM a reply: the body lip-syncs the text and shows the matching expression and body gesture. Pass the persona_id and the exact text the agent is saying this turn; the emotion is detected from the text automatically (or override it). The returned text/html resource animates the body for this turn — display it alongside the spoken reply. This is the turn-by-turn embodiment hook.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "persona_send",+ "title": "Send USDC from a persona's own wallet",+ "description": null,+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp3d/tools/persona-identity.js"+ },+ {+ "name": "persona_tip",+ "title": "Tip USDC from a persona's own wallet",+ "description": null,+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp3d/tools/persona-identity.js"+ },+ {+ "name": "pose_model",+ "title": "Resolve a text prompt to a pose-studio seed + joint rotations",+ "description": "Map a natural-language pose description to a deterministic pose-studio seed and the full Euler joint-rotation map for the three.ws humanoid mannequin, picked from the in-repo preset library. Returns the preset id, the complete pose (radians per joint), a stable seed, and a previewUrl on three.ws/pose. Deterministic and free — the same prompt always yields the same pose. Pair with auto_rig_model to pose a rigged character.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0.01,+ "free": false+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "preview_3d",+ "title": "Preview any GLB as an interactive 3D artifact",+ "description": "Render any public GLB URL as an inline <model-viewer> HTML artifact — orbit controls, AR on mobile, auto-rotate. Display the returned text/html resource as an inline 3D artifact. Use it to view a generated model, or any GLB on the web.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "remesh_model",+ "title": "Remesh, simplify, repair, or convert a 3D model",+ "description": "Process an existing GLB/OBJ/STL/PLY mesh: fix holes and degenerate geometry, reduce face count via quadric decimation, or convert to a different format (including FBX with skeleton for Unity/Unreal — a convert of a rigged GLB keeps its bones, skin weights, and blendshapes). Returns a clean GLB (or the requested format) job_id to poll with generation_status.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.02,+ "free": false+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "remove_background",+ "title": "Remove the background from an image",+ "description": "Strip the background from a photo or illustration with the three.ws background-removal engine. Returns a PNG with a transparent background — useful for preparing clean inputs before image_to_3d reconstruction.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.01,+ "free": false+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "retexture_model",+ "title": "Paint a new texture onto a 3D model from a text prompt",+ "description": "Generate a fresh texture for an untextured or poorly-textured GLB with the three.ws depth-guided multi-view texturing engine. Renders the mesh from 8 viewpoints, generates coherent texture views guided by your prompt, and back-projects them onto the UV atlas. Returns a job_id to poll with generation_status.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.05,+ "free": false+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "retexture_region",+ "title": "Repaint one masked region of a model's texture (magic brush)",+ "description": null,+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.05,+ "free": false+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "save_avatar",+ "title": "Save a generated GLB as a durable, named avatar",+ "description": "Persist a generated GLB (e.g. the glb_url returned by generation_status) as a durable avatar in your three.ws library. The mesh is copied into our own storage so it survives the provider URL expiring, then registered as a named avatar you own. Returns avatar_id, slug, model_url, and a view_url. This is the bridge from the studio to the avatar system: after saving, get_avatar, render_avatar_image, embeds, and on-chain identity all work on the result. Requires you to be signed in.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "segment_model",+ "title": "Split a 3D model into named, separable parts",+ "description": "Segment a GLB/OBJ/STL/PLY mesh into meaningful parts with clean boundaries — head/torso/limbs on a character, body/wheels on a vehicle. Splits at physically disconnected shells and at concave creases (the minima rule), then names each part by region and tints it a distinct colour. Returns a GLB whose nodes ARE the parts (so each can be hidden, recoloured, replaced, or exported on its own) plus a parts manifest. Poll with generation_status; the result lists every part with its id, name, face count, and colour. Pass only_part to export a single part on its own.",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.02,+ "free": false+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "stylize_model",+ "title": "Apply a one-click geometric stylization filter to a 3D model",+ "description": null,+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.02,+ "free": false+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "text_to_3d",+ "title": "Generate a 3D model from a text prompt",+ "description": "Turn a text description into a textured 3D model (GLB). Runs a fast text-to-image pass, then reconstructs a mesh from that image with the three.ws image engine. Returns a job_id (poll with generation_status) plus the intermediate preview image. Best results: a single, clearly described object — \"a worn leather armchair\", \"a low-poly red fox\", \"a sci-fi helmet\".",+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0.15,+ "free": false,+ "tiers": [+ {+ "id": "draft",+ "usd": 0.05+ },+ {+ "id": "standard",+ "usd": 0.15+ },+ {+ "id": "high",+ "usd": 0.5+ }+ ]+ },+ "source": "api/_mcp3d/tools/studio.js"+ },+ {+ "name": "validate_spatial_response",+ "title": "Validate a Spatial MCP 3D artifact",+ "description": null,+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp3d/tools/spatial.js"+ },+ {+ "name": "verify_provenance",+ "title": "Verify a 3D model authenticity (content credential)",+ "description": null,+ "server": {+ "id": "threews-3d-studio",+ "title": "3D Studio",+ "endpoint": "/api/mcp-3d",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp3d/tools/provenance.js"+ },+ {+ "name": "check_job",+ "title": "Check a pending 3D generation",+ "description": null,+ "server": {+ "id": "threews-3d-studio-free",+ "title": "3D Studio (free)",+ "endpoint": "/api/mcp-studio",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp-studio/tools.js"+ },+ {+ "name": "forge_avatar",+ "title": "Generate a rigged, animation-ready avatar",+ "description": null,+ "server": {+ "id": "threews-3d-studio-free",+ "title": "3D Studio (free)",+ "endpoint": "/api/mcp-studio",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp-studio/tools.js"+ },+ {+ "name": "forge_free",+ "title": "Generate a 3D model from text",+ "description": null,+ "server": {+ "id": "threews-3d-studio-free",+ "title": "3D Studio (free)",+ "endpoint": "/api/mcp-studio",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp-studio/tools.js"+ },+ {+ "name": "mesh_forge",+ "title": "Generate a 3D mesh (art-directed)",+ "description": null,+ "server": {+ "id": "threews-3d-studio-free",+ "title": "3D Studio (free)",+ "endpoint": "/api/mcp-studio",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp-studio/tools.js"+ },+ {+ "name": "refine_model",+ "title": "Refine a 3D model by describing a change",+ "description": null,+ "server": {+ "id": "threews-3d-studio-free",+ "title": "3D Studio (free)",+ "endpoint": "/api/mcp-studio",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp-studio/tools.js"+ },+ {+ "name": "rig_mesh",+ "title": "Rig a 3D model for animation",+ "description": null,+ "server": {+ "id": "threews-3d-studio-free",+ "title": "3D Studio (free)",+ "endpoint": "/api/mcp-studio",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp-studio/tools.js"+ },+ {+ "name": "text_to_avatar",+ "title": "Generate a 3D avatar",+ "description": null,+ "server": {+ "id": "threews-3d-studio-free",+ "title": "3D Studio (free)",+ "endpoint": "/api/mcp-studio",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcp-studio/tools.js"+ },+ {+ "name": "find_services",+ "title": "Find paid services the agent can call",+ "description": "Search the live x402 facilitator network for paid services (HTTP APIs and MCP tools). Returns each match with its price and resource URL — feed a resource into pay_and_call to actually use it.",+ "server": {+ "id": "threews-agent",+ "title": "Agent Wallet",+ "endpoint": "/api/mcp-agent",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcpagent/tools.js"+ },+ {+ "name": "monetize_endpoint",+ "title": "Publish a paid endpoint to earn USDC",+ "description": "Put a price on an upstream API your agent already serves and publish it as an x402 endpoint other agents can pay to call. three.ws hosts the paywall, settles each buyer's USDC to your agent's own wallet, and proxies the call to your target_url. The listing becomes discoverable via find_services / the bazaar and callable by pay_and_call. Requires a provisioned wallet for the chosen network — run provision_wallet first if you haven't. Requires sign-in; you can only monetize agents on your own account.",+ "server": {+ "id": "threews-agent",+ "title": "Agent Wallet",+ "endpoint": "/api/mcp-agent",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcpagent/tools.js"+ },+ {+ "name": "pay_and_call",+ "title": "Pay an x402 service and return its result",+ "description": "Call a paid x402 endpoint and settle the USDC payment automatically from the signed-in user's three.ws agent wallet, bounded by spending caps. Returns the service's response. Requires sign-in. If the per-call price exceeds max_usd (or the caps), the call is refused before any money moves.",+ "server": {+ "id": "threews-agent",+ "title": "Agent Wallet",+ "endpoint": "/api/mcp-agent",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcpagent/tools.js"+ },+ {+ "name": "provision_wallet",+ "title": "Create the agent's wallet",+ "description": "Create (or return) the custodial Solana wallet for one of your agents so it can hold and earn USDC. Idempotent — if the agent already has a wallet, its address and live SOL/USDC balances are returned unchanged. On devnet you can request a 1 SOL airdrop for testing; mainnet wallets are never airdropped. Requires sign-in; you can only provision wallets for agents on your own account.",+ "server": {+ "id": "threews-agent",+ "title": "Agent Wallet",+ "endpoint": "/api/mcp-agent",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcpagent/tools.js"+ },+ {+ "name": "wallet_status",+ "title": "Check the agent's wallet",+ "description": "Show the signed-in user's three.ws agent wallet: address, SOL and USDC balance, the per-call/hour/day spending caps, and whether autonomous spending is enabled. Read-only — never moves funds. Call this before pay_and_call to confirm there's balance and headroom.",+ "server": {+ "id": "threews-agent",+ "title": "Agent Wallet",+ "endpoint": "/api/mcp-agent",+ "transport": "remote",+ "auth": "oauth-or-x402"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcpagent/tools.js"+ },+ {+ "name": "get_bonding_curve",+ "title": null,+ "description": null,+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "get_coin_intel",+ "title": null,+ "description": "Full Coin Intelligence snapshot for a pump.fun mint. Returns every signal the engine recorded during the observation window: bundle vs organic verdict, bubblemaps-style cluster connectivity, smart-money presence (with wallet labels and win-rates), dev behaviour, category/classification, news-meme detection with the matching headline, risk flags, and a 0–100 quality score. Also returns the outcome if the coin is old enough to be labeled (graduated/rugged/ATH multiple). This is the single highest-signal read for a trade decision — call this before entering any position.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "get_creator_profile",+ "title": null,+ "description": "All tokens by a creator wallet, with rug-pull risk flags.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "get_graduated_tokens",+ "title": null,+ "description": "Tokens that graduated from the bonding curve to Raydium AMM.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "get_king_of_the_hill",+ "title": null,+ "description": "Highest-market-cap token still on the bonding curve.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "get_new_tokens",+ "title": null,+ "description": "Most recently launched pump.fun tokens.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "get_oracle_conviction",+ "title": null,+ "description": "Oracle conviction score for a pump.fun mint: the fused 0-100 score the Oracle engine produces by combining four intelligence pillars: pedigree (who bought it), structure (organic vs bundle, holder concentration, bubblemaps connectivity), narrative (category, meme virality, news hook), and momentum (timing, velocity). Returns the tier (prime ≥86 / strong ≥72 / lean ≥54 / watch ≥36 / avoid), the per-pillar breakdown, the natural-language reasons that drove the score, the full \"who's in\" trader roster with reputation labels and win-rates, and the narrative read (category, virality, tags). Call this when you need the highest-confidence trade signal; it synthesises everything get_coin_intel exposes into one actionable score. Pairs with get_coin_intel for raw signals.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "get_token_details",+ "title": null,+ "description": "Full details for a specific pump.fun token by mint address.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "get_token_holders",+ "title": null,+ "description": "Top holders of a token with concentration analysis (on-chain).",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "get_token_trades",+ "title": null,+ "description": "Recent buy/sell history for a token.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "get_trending_tokens",+ "title": null,+ "description": "Top pump.fun tokens by market cap.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "kol_leaderboard",+ "title": null,+ "description": "Top KOL traders ranked by P&L for a given time window. Returns wallet, pnlUsd, winRate, trades, rank.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "pumpfun_bot_status",+ "title": null,+ "description": "Returns the configuration and health status of the pump.fun indexer backend. Always available — does not require PUMPFUN_BOT_URL.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "pumpfun_first_claims",+ "title": null,+ "description": "First-ever pump.fun creator fee claims in a time window: a cash-out signal. Returns creators who have never claimed before, with creator wallet, mint, lamports, and timestamp.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "pumpfun_list_claims",+ "title": null,+ "description": "List recent pump.fun fee-claim events for a creator wallet (on-chain, no indexer needed). Returns signature, mint, lamports, and Unix timestamp for each claim.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "pumpfun_quote_swap",+ "title": null,+ "description": "Read-only price quote for a pump.fun AMM (PumpSwap) swap. No signing or tx sending. One of inputMint/outputMint must be wSOL (So11111111111111111111111111111111111111112). Only GRADUATED coins have an AMM pool; for a coin still on its bonding curve use get_bonding_curve instead. Pricing runs on the pool effective quote reserves (quote vault balance + pool.virtual_quote_reserves); the base side is the raw base vault balance. Returns amountOut, priceImpactBps, route, expiresAtMs, plus the reserves the quote was computed from so the number can be reproduced.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "pumpfun_upload_metadata",+ "title": null,+ "description": "Upload coin metadata (name, symbol, description, image) to IPFS and get back a pump.fun-ready metadata URI. Call this before launching a coin — pass the returned uri to the launch-agent endpoint or the studio launch flow. Requires a valid bearer token (API key). Image may be a public HTTPS URL or a base64 data URI (max 10 MB). The returned uri is a permanent ipfs:// link; the call is idempotent for the same content.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "pumpfun_vanity_mint",+ "title": null,+ "description": "Generate a Solana keypair whose address ends/starts with a vanity pattern. Returns publicKey + secretKey (base58). Caller must save the secret key immediately — it is never stored. Hard timeout: 60 s.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "pumpfun_watch_claims",+ "title": null,+ "description": "Return all pump.fun fee-claim events for a creator wallet within a look-back window (durationMs). Useful for batch collection after a delay.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "pumpfun_watch_whales",+ "title": null,+ "description": "Collect whale trades on a pump.fun token for a short window (max 10 s). Returns all trades whose USD value meets minUsd.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "search_tokens",+ "title": null,+ "description": "Search pump.fun tokens by name, symbol, or mint address.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "sns_resolve",+ "title": null,+ "description": "Resolve a .sol Solana Name Service domain to its owner wallet address.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "sns_reverseLookup",+ "title": null,+ "description": "Reverse-lookup a Solana wallet address to its primary .sol domain name.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "social_cashtag_sentiment",+ "title": null,+ "description": "Score social-post sentiment for a cashtag using a deterministic lexicon. Returns score (-1..1), positive/negative/neutral percentages, and example posts.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": false+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "social_x_post_impact",+ "title": null,+ "description": "Correlate an X (Twitter) post to a memecoin price impact. Fetches post metadata via oEmbed (no API key) and computes price delta from the pump.fun bonding curve in a ±windowMin window around the post.",+ "server": {+ "id": "threews-pumpfun",+ "title": "pump.fun",+ "endpoint": "/api/pump-fun-mcp",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "src/pump/mcp-tools.js"+ },+ {+ "name": "bazaar_service_details",+ "title": "Live price details for one x402 service",+ "description": "Resolve the current live price of a single x402 service by its resource URL (and tool_name for MCP services). Returns the cheapest price across networks plus a per-network breakdown (amount in atomic units, asset, recipient) and whether the service is still listed and payable. Purpose-built for price tracking and cost-model maintenance — call it on a schedule to watch a dependency's price over time and detect hikes or drops. Use get_service instead when you also need the input/output schema and a ready pay link.",+ "server": {+ "id": "threews-x402-bazaar",+ "title": "x402 Bazaar",+ "endpoint": "/api/mcp-bazaar",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcpbazaar/tools.js"+ },+ {+ "name": "browse_services",+ "title": "Browse the x402 bazaar",+ "description": "List paid agent services from the live x402 facilitator network without a search query — useful for \"what can I pay for?\". Returns services with price, networks, and resource URL, cheapest filters applied.",+ "server": {+ "id": "threews-x402-bazaar",+ "title": "x402 Bazaar",+ "endpoint": "/api/mcp-bazaar",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcpbazaar/tools.js"+ },+ {+ "name": "get_service",+ "title": "Get full details for one x402 service",+ "description": "Resolve a single x402 service by its resource URL (and tool_name for MCP services). Returns the exact payment requirements (price, asset, network, recipient), the input/output schema, and a ready-to-use pay link on three.ws. This is what you read before paying.",+ "server": {+ "id": "threews-x402-bazaar",+ "title": "x402 Bazaar",+ "endpoint": "/api/mcp-bazaar",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcpbazaar/tools.js"+ },+ {+ "name": "search_services",+ "title": "Search the x402 bazaar",+ "description": "Ranked search across the live x402 facilitator network for paid agent services (APIs and MCP tools you can pay for in stablecoin). Returns matching services with price, networks, and resource URL. Use get_service for full payment + input details.",+ "server": {+ "id": "threews-x402-bazaar",+ "title": "x402 Bazaar",+ "endpoint": "/api/mcp-bazaar",+ "transport": "remote",+ "auth": "none"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "api/_mcpbazaar/tools.js"+ },+ {+ "name": "close_session",+ "title": "Close a tutoring session (finalize invoice)",+ "description": "Finalize a Pay-As-You-Learn tutoring session and return its itemized, attested invoice. Seals the ledger for the given sessionId: status flips to \"closed\", a SHA-256 attestation is stamped over the line items and total, and no further questions can be billed to this session afterward. Returns sessionId, createdAt, closedAt, questionCount, the full lineItems array, the totalAtomics / totalUsd owed, and the attestation hash. Closing itself is FREE and moves no funds — the learner was already charged per answered question; this only produces the final receipt. Idempotent: closing an already-closed session returns the same total. Use load_session first if you want to review the tab before sealing it.",+ "server": {+ "id": "tutor-mcp",+ "title": "@three-ws/tutor-mcp",+ "endpoint": "npx -y @three-ws/tutor-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "write",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/tutor-mcp/src/tools/close-session.js"+ },+ {+ "name": "load_session",+ "title": "Load a tutoring session ledger",+ "description": "Read the running tab for a Pay-As-You-Learn tutoring session by its sessionId. Returns the itemized ledger: one lineItem per answered question (question text, level, output tokens, per-item cost in USDC atomics and a \"$x.xxxxxx\" string, and the timestamp), plus the session status (\"open\" | \"closed\"), questionCount, and the running totalAtomics / totalUsd. If the session was already closed it also returns the finalized, attested invoice. A sessionId with no stored history returns an empty open session (questionCount 0) rather than an error — that is an honest \"nothing billed yet\", not a failure. Viewing the tab is always free; this never charges the learner. Read-only live data.",+ "server": {+ "id": "tutor-mcp",+ "title": "@three-ws/tutor-mcp",+ "endpoint": "npx -y @three-ws/tutor-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/tutor-mcp/src/tools/load-session.js"+ },+ {+ "name": "vanity_appraise",+ "title": "Appraise the rarity of a Solana address",+ "description": "Appraise how rare a Solana address is: its detected vanity pattern, rarity score, rarity bits, tier, and expected grind attempts. Pure math on the Base58 address — nothing is stored. If the address has been published to the proof-of-grind gallery, the public entry is returned too. Read-only, no payment.",+ "server": {+ "id": "vanity-mcp",+ "title": "@three-ws/vanity-mcp",+ "endpoint": "npx -y @three-ws/vanity-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/vanity-mcp/src/tools/vanity-appraise.js"+ },+ {+ "name": "vanity_board",+ "title": "Browse the vanity grind-bounty board",+ "description": "Browse the public grind-bounty board: vanity-address bounties requesters have escrowed for the worker fleet to grind. Filter by status (open / all / settled), sort by recency, reward, or expiry, and paginate. Each bounty shows its pattern, USDC amount, difficulty, status, and timing. Read-only; posting a bounty is a separate x402-paid write on the HTTP API.",+ "server": {+ "id": "vanity-mcp",+ "title": "@three-ws/vanity-mcp",+ "endpoint": "npx -y @three-ws/vanity-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/vanity-mcp/src/tools/vanity-board.js"+ },+ {+ "name": "vanity_config",+ "title": "Bounty market config: payout + asset metadata",+ "description": "Read the grind-bounty market configuration: whether on-chain payouts are configured (can a winner actually be paid?), the settlement asset (USDC) and its decimals, which escrow networks are live (Base / Solana), the pricing band (floor + max atomics), the bounty protocol version, and the sealed-envelope scheme. Check this before posting to confirm the market can pay out. Read-only, no params.",+ "server": {+ "id": "vanity-mcp",+ "title": "@three-ws/vanity-mcp",+ "endpoint": "npx -y @three-ws/vanity-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/vanity-mcp/src/tools/vanity-config.js"+ },+ {+ "name": "vanity_gallery",+ "title": "Browse the proof-of-grind rarity gallery",+ "description": "Browse the public proof-of-grind gallery: rare Solana addresses people have published with a verifiable grind receipt. Sort by rarity score or recency, filter by tier, minimum pattern length, or a substring the pattern must contain, and paginate. Each entry shows the address, pattern, rarity score/bits, tier, and an explorer link. Read-only.",+ "server": {+ "id": "vanity-mcp",+ "title": "@three-ws/vanity-mcp",+ "endpoint": "npx -y @three-ws/vanity-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/vanity-mcp/src/tools/vanity-gallery.js"+ },+ {+ "name": "vanity_leaderboard",+ "title": "Top grinders by USDC earned",+ "description": "Rank the worker fleet: the top grinders by total USDC earned from winning vanity-address bounties. Each entry shows a worker id and its cumulative payout. Read-only.",+ "server": {+ "id": "vanity-mcp",+ "title": "@three-ws/vanity-mcp",+ "endpoint": "npx -y @three-ws/vanity-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/vanity-mcp/src/tools/vanity-leaderboard.js"+ },+ {+ "name": "vanity_open",+ "title": "List claimable open bounties for workers",+ "description": "List the open, unexpired bounties a grinding worker can race to claim — the queue worker fleets poll. Each entry carries the pattern to grind and the escrowed USDC reward; the first worker to submit a verified, sealed key wins. Read-only discovery; submitting a claim is a separate write on the HTTP API.",+ "server": {+ "id": "vanity-mcp",+ "title": "@three-ws/vanity-mcp",+ "endpoint": "npx -y @three-ws/vanity-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/vanity-mcp/src/tools/vanity-open.js"+ },+ {+ "name": "vanity_quote",+ "title": "Quote the bounty price for a vanity pattern",+ "description": "Quote how hard a Solana vanity address is and what to escrow for it. Give a Base58 prefix and/or suffix and get the expected attempts, rarity tier, and an honest suggested USDC bounty (atomic units) from the difficulty→price oracle. Pure function of the pattern — no wallet, no payment, fully read-only. Use this before posting a grind-bounty so you escrow a fair amount.",+ "server": {+ "id": "vanity-mcp",+ "title": "@three-ws/vanity-mcp",+ "endpoint": "npx -y @three-ws/vanity-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": true,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/vanity-mcp/src/tools/vanity-quote.js"+ },+ {+ "name": "vanity_stats",+ "title": "Live grind-bounty market totals",+ "description": "Get live totals for the grind-bounty market: how many bounties are open, how much USDC is currently escrowed, and how much has been paid out to winning workers. A quick pulse on market activity. Read-only, no params.",+ "server": {+ "id": "vanity-mcp",+ "title": "@three-ws/vanity-mcp",+ "endpoint": "npx -y @three-ws/vanity-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/vanity-mcp/src/tools/vanity-stats.js"+ },+ {+ "name": "analyze_image",+ "title": "Analyze an image against a prompt",+ "description": null,+ "server": {+ "id": "vision-mcp",+ "title": "@three-ws/vision-mcp",+ "endpoint": "npx -y @three-ws/vision-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/vision-mcp/src/tools/analyze-image.js"+ },+ {+ "name": "describe_image",+ "title": "Describe an image in natural language",+ "description": null,+ "server": {+ "id": "vision-mcp",+ "title": "@three-ws/vision-mcp",+ "endpoint": "npx -y @three-ws/vision-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/vision-mcp/src/tools/describe-image.js"+ },+ {+ "name": "get_vision_status",+ "title": "Vision availability + accepted formats",+ "description": null,+ "server": {+ "id": "vision-mcp",+ "title": "@three-ws/vision-mcp",+ "endpoint": "npx -y @three-ws/vision-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/vision-mcp/src/tools/vision-status.js"+ },+ {+ "name": "find_services",+ "title": "Find paid x402 services the agent can call",+ "description": "Search the live x402 facilitator network (PayAI + Coinbase CDP bazaar) for paid services — HTTP APIs and MCP tools. Returns each match with its price, networks, and resource URL. Pass a resource into pay_and_call to use it. Read-only.",+ "server": {+ "id": "x402-mcp",+ "title": "@three-ws/x402-mcp",+ "endpoint": "npx -y @three-ws/x402-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/x402-mcp/src/tools/find-services.js"+ },+ {+ "name": "inspect_endpoint",+ "title": "Inspect an x402 endpoint (price + requirements, no payment)",+ "description": "Fetch an x402 endpoint and return its 402 payment requirements — every accepted scheme, network, asset, price and pay-to address — WITHOUT paying. If the endpoint is free, returns its result instead. No signer required. Use this to learn the cost before pay_and_call.",+ "server": {+ "id": "x402-mcp",+ "title": "@three-ws/x402-mcp",+ "endpoint": "npx -y @three-ws/x402-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/x402-mcp/src/tools/inspect-endpoint.js"+ },+ {+ "name": "pay_and_call",+ "title": "Pay an x402 endpoint in USDC or $THREE and return its result",+ "description": "Call a paid x402 endpoint and settle the payment automatically, then return the result.\n\nTwo modes:\n• Self-custodial (default): signs with SOLANA_SECRET_KEY or `secret` arg — you hold the key.\n• Session-governed: pass `session_token` (a three.ws Payment Session token) — the platform wallet signs on your behalf; the session's budget, allowlist, and per-tx cap are enforced by the platform. No private key required. Supports Solana USDC and Base USDC sessions.\n\nPay in USDC (default) or, when the endpoint advertises it, in $THREE (set token:\"three\"). Bounded by max_usd and the MAX_PAY_USD cap; refuses before any money moves if the price is over the cap. With REQUIRE_CONFIRM on, the call refuses until re-issued with confirm:true.",+ "server": {+ "id": "x402-mcp",+ "title": "@three-ws/x402-mcp",+ "endpoint": "npx -y @three-ws/x402-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "irreversible",+ "annotations": {+ "readOnlyHint": false,+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/x402-mcp/src/tools/pay-and-call.js"+ },+ {+ "name": "x402_wallet",+ "title": "The agent's x402 spending wallet (address + balance)",+ "description": "Show a Solana wallet's address and live SOL + USDC balance. With no `address`, derives the wallet from the configured signer (SOLANA_SECRET_KEY) — call this before pay_and_call to confirm there's USDC to spend. Read-only; never moves funds.",+ "server": {+ "id": "x402-mcp",+ "title": "@three-ws/x402-mcp",+ "endpoint": "npx -y @three-ws/x402-mcp",+ "transport": "stdio",+ "auth": "api-key"+ },+ "safety": "read",+ "annotations": {+ "readOnlyHint": true,+ "destructiveHint": null,+ "idempotentHint": false,+ "openWorldHint": true+ },+ "price": {+ "usd": 0,+ "free": true+ },+ "source": "packages/x402-mcp/src/tools/x402-wallet.js"+ }+ ]+}diff --git a/scripts/.dw-avatar.tmp.mjs b/scripts/.dw-avatar.tmp.mjsnew file mode 100644index 000000000..b3d86eaff--- /dev/null+++ b/scripts/.dw-avatar.tmp.mjs@@ -0,0 +1,18 @@+import { chromium } from 'playwright';+const browser = await chromium.launch();+const page = await browser.newPage({ viewport: { width: 1280, height: 800 } });+const warns = [];+page.on('console', (m) => { const t = m.text(); if (/docs-world/i.test(t)) warns.push(m.type()+': '+t); });+await page.goto('http://localhost:3004/docs/world', { waitUntil: 'load', timeout: 60000 });+await page.waitForFunction(() => window.__docsWorld !== undefined, { timeout: 60000 });+await page.waitForTimeout(6000);+const info = await page.evaluate(() => {+ const p = window.__docsWorld.player;+ let skinned = 0, meshes = 0, bones = 0;+ p.root.traverse((n) => { if (n.isSkinnedMesh) skinned++; if (n.isMesh) meshes++; if (n.isBone) bones++; });+ return { meshes, skinnedMeshes: skinned, bones, height: +p.height.toFixed(2) };+});+await page.screenshot({ path: '/tmp/claude-1000/-workspaces-three-ws/2bb24e2a-01d6-4605-991f-31f1ec0d4995/scratchpad/dw-06-avatar.png' });+await browser.close();+console.log('player:', JSON.stringify(info));+console.log('docs-world logs:', warns.length ? warns : 'none');diff --git a/scripts/.dw-test.mjs b/scripts/.dw-test.mjsnew file mode 100644index 000000000..f99ef1515--- /dev/null+++ b/scripts/.dw-test.mjs@@ -0,0 +1,55 @@+import { chromium } from 'playwright';+const B='http://localhost:3011';+const SP='/tmp/claude-1000/-workspaces-three-ws/9f8558d8-4c0c-45ae-a84d-32e54541a9fe/scratchpad';+const b=await chromium.launch({args:['--use-gl=swiftshader','--enable-unsafe-swiftshader','--no-sandbox']});+const out=[];+const mk=async(o={})=>{const c=await b.newContext({viewport:{width:1440,height:900},...o});const p=await c.newPage();+ const errs=[];p.on('console',m=>{if(m.type()==='error'&&!/vite|websocket/i.test(m.text()))errs.push(m.text().slice(0,160))});+ p.on('pageerror',e=>{if(!/websocket/i.test(e.message))errs.push('PAGEERR '+e.message.slice(0,160))});return {c,p,errs};};++// 1. Classic docs integrity + the 3D world handoff button+{ const {c,p,errs}=await mk();+ await p.goto(B+'/docs/',{waitUntil:'load',timeout:45000}); await p.waitForTimeout(4000);+ const r=await p.evaluate(()=>{+ const btn=[...document.querySelectorAll('a,button')].find(e=>/3d world/i.test(e.textContent||''));+ return {title:document.title, h1:(document.querySelector('h1')?.innerText||'').slice(0,70),+ sidebarLinks:document.querySelectorAll('nav a, .sidebar a, aside a').length,+ worldBtn: btn?{text:btn.textContent.trim().slice(0,30),href:btn.getAttribute('href')}:null,+ articleChars:(document.querySelector('main,article')?.innerText||'').length};+ });+ await p.screenshot({path:SP+'/classic-docs.png'});+ out.push({test:'classic docs',...r,errs}); await c.close(); }++// 2. Handoff: click 3D world from a specific doc, confirm it carries the page+{ const {c,p,errs}=await mk();+ await p.goto(B+'/docs/#forge',{waitUntil:'load',timeout:45000}); await p.waitForTimeout(3500);+ const btn=await p.$('a[href*="/docs/world"]');+ const href=btn?await btn.getAttribute('href'):null;+ out.push({test:'handoff button carries page',href,errs}); await c.close(); }++// 3. Mobile 390x844 - touch controls present+{ const {c,p,errs}=await mk({viewport:{width:390,height:844},isMobile:true,hasTouch:true,userAgent:'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1'});+ await p.goto(B+'/docs/world',{waitUntil:'load',timeout:45000}); await p.waitForTimeout(7000);+ const r=await p.evaluate(()=>{+ const joy=document.querySelector('[class*=joy],[id*=joy],[class*=stick]');+ const overflowX=document.documentElement.scrollWidth>document.documentElement.clientWidth+2;+ return {joystick:!!joy, horizontalOverflow:overflowX, canvas:!!document.querySelector('canvas'),+ hud:(document.body.innerText||'').replace(/\s+/g,' ').slice(0,110)};+ });+ await p.screenshot({path:SP+'/dw-mobile.png'});+ out.push({test:'mobile 390px',...r,errs}); await c.close(); }++// 4. Reduced motion honored+{ const {c,p,errs}=await mk({reducedMotion:'reduce'});+ await p.goto(B+'/docs/world',{waitUntil:'load',timeout:45000}); await p.waitForTimeout(6000);+ out.push({test:'prefers-reduced-motion',canvas:await p.evaluate(()=>!!document.querySelector('canvas')),errs}); await c.close(); }++// 5. Keyboard: Index chip reachable + focus visible+{ const {c,p,errs}=await mk();+ await p.goto(B+'/docs/world',{waitUntil:'load',timeout:45000}); await p.waitForTimeout(6000);+ const seq=[];+ for(let i=0;i<8;i++){ await p.keyboard.press('Tab');+ seq.push(await p.evaluate(()=>{const a=document.activeElement;return a?((a.tagName)+':'+(a.textContent||a.getAttribute('aria-label')||'').trim().slice(0,26)):'none';})); }+ out.push({test:'keyboard tab order',seq,errs}); await c.close(); }+await b.close();+console.log(JSON.stringify(out,null,1));diff --git a/scripts/.dw-verify.tmp.mjs b/scripts/.dw-verify.tmp.mjsnew file mode 100644index 000000000..440baff8f--- /dev/null+++ b/scripts/.dw-verify.tmp.mjs@@ -0,0 +1,67 @@+import { chromium } from 'playwright';+const BASE = 'http://localhost:3004';+const browser = await chromium.launch();+const page = await browser.newPage({ viewport: { width: 1280, height: 800 } });+const errors = [];+page.on('pageerror', (e) => errors.push('pageerror: ' + e.message));+page.on('console', (m) => {+ if (m.type() !== 'error') return;+ const t = m.text();+ if (/websocket|vite.*connect/i.test(t)) return; // codespaces HMR noise+ errors.push(t);+});+const out = {};++await page.goto(BASE + '/docs/world', { waitUntil: 'load', timeout: 60000 });+await page.waitForFunction(() => window.__docsWorld !== undefined, { timeout: 60000 });+await page.waitForTimeout(3500);++out.hudVisible = await page.isVisible('#dw-hud');+out.loadingHidden = await page.isHidden('#dw-loading');+out.pavilions = await page.evaluate(() => window.__docsWorld.world.pavilions.length);+out.indexItems = await page.locator('.dw-index-item').count();+await page.screenshot({ path: '/tmp/claude-1000/-workspaces-three-ws/2bb24e2a-01d6-4605-991f-31f1ec0d4995/scratchpad/dw-01-world.png' });++// Open the index overlay and teleport to a section+await page.click('#dw-index-btn');+await page.waitForTimeout(400);+out.indexOpen = await page.isVisible('#dw-index');+await page.screenshot({ path: '/tmp/claude-1000/-workspaces-three-ws/2bb24e2a-01d6-4605-991f-31f1ec0d4995/scratchpad/dw-02-index.png' });+await page.locator('.dw-index-item').first().click();+await page.waitForTimeout(900);+out.panelOpenAfterIndex = await page.isVisible('#dw-panel');+out.panelTitle = await page.textContent('#dw-panel-title');+out.panelLinks = await page.locator('.dw-panel-link').count();+await page.screenshot({ path: '/tmp/claude-1000/-workspaces-three-ws/2bb24e2a-01d6-4605-991f-31f1ec0d4995/scratchpad/dw-03-panel.png' });++// Open a real doc from the panel+await page.locator('.dw-panel-link').first().click();+await page.waitForTimeout(2500);+out.readerOpen = await page.isVisible('#dw-reader');+out.readerCrumb = await page.textContent('#dw-reader-crumb');+out.readerHasHeadings = await page.locator('#dw-reader-body h1, #dw-reader-body h2').count();+out.readerTextLen = (await page.textContent('#dw-reader-body') || '').trim().length;+out.hashAfterOpen = await page.evaluate(() => location.hash);+await page.screenshot({ path: '/tmp/claude-1000/-workspaces-three-ws/2bb24e2a-01d6-4605-991f-31f1ec0d4995/scratchpad/dw-04-reader.png' });++// Pager+out.pagerNextLabel = await page.textContent('#dw-reader-next');+out.pagerPrevDisabled = await page.getAttribute('#dw-reader-prev', 'disabled') !== null;++// Escape closes the reader+await page.keyboard.press('Escape');+await page.waitForTimeout(500);+out.readerClosedByEsc = await page.isHidden('#dw-reader');++// Deep link+await page.goto(BASE + '/docs/world#forge', { waitUntil: 'load', timeout: 60000 });+await page.waitForFunction(() => window.__docsWorld !== undefined, { timeout: 60000 });+await page.waitForTimeout(3000);+out.deepLinkReaderOpen = await page.isVisible('#dw-reader');+out.deepLinkCrumb = await page.textContent('#dw-reader-crumb');+out.deepLinkTextLen = (await page.textContent('#dw-reader-body') || '').trim().length;+await page.screenshot({ path: '/tmp/claude-1000/-workspaces-three-ws/2bb24e2a-01d6-4605-991f-31f1ec0d4995/scratchpad/dw-05-deeplink.png' });++await browser.close();+console.log(JSON.stringify(out, null, 2));+console.log('CONSOLE ERRORS:', errors.length ? errors : 'none');diff --git a/scripts/.probe-world.mjs b/scripts/.probe-world.mjsnew file mode 100644index 000000000..7e53ce798--- /dev/null+++ b/scripts/.probe-world.mjs@@ -0,0 +1,55 @@+import { chromium } from 'playwright';++const BASE = process.env.BASE || 'http://localhost:3001';+const out = '/tmp/claude-1000/-workspaces-three-ws/f216c4ab-6247-4f9c-8f52-1a394cf0f0bc/scratchpad';++const browser = await chromium.launch();+const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });+const logs = [];+page.on('console', (m) => logs.push(`${m.type()}: ${m.text()}`));+page.on('pageerror', (e) => logs.push('PAGEERROR: ' + e.message));++await page.goto(`${BASE}/docs/world`, { waitUntil: 'networkidle', timeout: 60000 });+await page.waitForTimeout(9000);++const facts = await page.evaluate(() => {+ const w = window.__docsWorld;+ if (!w) return { error: 'no __docsWorld handle' };+ const root = w.player.root;+ let skinned = 0;+ let meshes = 0;+ let bones = 0;+ const names = [];+ root.traverse((o) => {+ if (o.isSkinnedMesh) skinned++;+ if (o.isMesh) meshes++;+ if (o.isBone) bones++;+ if (o.name && names.length < 8) names.push(o.name);+ });+ return {+ playerChildren: root.children.length,+ meshes,+ skinnedMeshes: skinned,+ bones,+ sampleNames: names,+ playerPos: root.position.toArray().map((n) => +n.toFixed(2)),+ playerHeight: +w.player.height.toFixed(2),+ };+});+console.log('PLAYER', JSON.stringify(facts, null, 1));++// Move the camera to look at the avatar so it is actually visible in frame.+await page.evaluate(() => {+ const w = window.__docsWorld;+ const p = w.player.root.position;+ const cam = w.world?.camera || w.controls?.camera;+ if (cam) {+ cam.position.set(p.x + 2.4, 1.9, p.z + 3.4);+ cam.lookAt(p.x, 1.0, p.z);+ }+});+await page.waitForTimeout(2500);+await page.screenshot({ path: `${out}/world-avatar-closeup.png` });++console.log('DOCSWORLD_LOGS', JSON.stringify(logs.filter((l) => /docs-world|avatar|clip|anim/i.test(l)), null, 1));+await browser.close();diff --git a/scripts/.verify-world.mjs b/scripts/.verify-world.mjsnew file mode 100644index 000000000..9d37bc01f--- /dev/null+++ b/scripts/.verify-world.mjs@@ -0,0 +1,47 @@+import { chromium } from 'playwright';++const BASE = process.env.BASE || 'http://localhost:3005';+const out = process.env.OUT || '/tmp/claude-1000/-workspaces-three-ws/f216c4ab-6247-4f9c-8f52-1a394cf0f0bc/scratchpad';++const browser = await chromium.launch();+const ctx = await browser.newContext({ viewport: { width: 1440, height: 900 } });+const page = await ctx.newPage();++const errors = [];+const warnings = [];+page.on('console', (m) => {+ if (m.type() === 'error') errors.push(m.text());+ if (m.type() === 'warning') warnings.push(m.text());+});+page.on('pageerror', (e) => errors.push('PAGEERROR: ' + e.message));+page.on('requestfailed', (r) => errors.push('REQFAIL: ' + r.url() + ' ' + (r.failure()?.errorText || '')));++await page.goto(`${BASE}/docs/world`, { waitUntil: 'networkidle', timeout: 60000 });+await page.waitForTimeout(6000);++const state = await page.evaluate(() => ({+ canvas: !!document.querySelector('canvas'),+ title: document.title,+ chips: [...document.querySelectorAll('button,[role=button],a')].map((b) => (b.textContent || '').trim()).filter(Boolean).slice(0, 14),+ bodyText: (document.body.innerText || '').slice(0, 260),+}));+console.log('DESKTOP', JSON.stringify(state, null, 1));+await page.screenshot({ path: `${out}/world-desktop.png` });++// Deep link into a section+await page.goto(`${BASE}/docs/world#forge`, { waitUntil: 'networkidle', timeout: 60000 });+await page.waitForTimeout(6000);+await page.screenshot({ path: `${out}/world-deeplink.png` });+const deep = await page.evaluate(() => ({ hash: location.hash, text: (document.body.innerText || '').slice(0, 200) }));+console.log('DEEPLINK', JSON.stringify(deep));++// Mobile+const m = await ctx.newPage();+await m.setViewportSize({ width: 390, height: 844 });+await m.goto(`${BASE}/docs/world`, { waitUntil: 'networkidle', timeout: 60000 });+await m.waitForTimeout(5000);+await m.screenshot({ path: `${out}/world-mobile.png` });++console.log('CONSOLE_ERRORS', errors.length, JSON.stringify(errors.slice(0, 8), null, 1));+console.log('CONSOLE_WARNINGS', warnings.length, JSON.stringify(warnings.slice(0, 5), null, 1));+await browser.close();diff --git a/scripts/audit-guards.mjs b/scripts/audit-guards.mjsnew file mode 100644index 000000000..c8cae1e84--- /dev/null+++ b/scripts/audit-guards.mjs@@ -0,0 +1,160 @@+#!/usr/bin/env node+// Prove data/guards.json describes the guards this repo actually runs.+//+// Why this exists. The guard set is the only automated checkpoint here: there is+// no CI, so a check that is not wired into an unavoidable path (prebuild, the+// gate, the deploy chain, the pre-push hook) protects nothing. Two failure modes+// followed from that, and both had already happened when this was written:+//+// 1. Guards nobody could find. Eight working audit scripts sat in scripts/+// with no npm script, discoverable only by reading the directory. One of+// them said in its own header that it was "wired as npm run audit:console"+// when no such script existed.+// 2. Documentation that claims a guard runs somewhere it does not. That is+// worse than silence: a reader stops looking for the coverage they think+// they already have.+//+// So this checks BOTH directions, and treats the stage column as a claim to be+// verified rather than prose:+//+// a. Every registry entry names a script that exists and an npm script that+// exists, so nothing in the registry is aspirational.+// b. Every check-*/audit-* script on disk is registered, or matches an exempt+// pattern that states WHY it is not a guard. New guards cannot land+// undocumented.+// c. Every `stages` claim is true against the real npm scripts: a guard+// claiming "gate" must appear in the gate chain, "prebuild" in prebuild,+// "build:gcp" in that chain, and "pre-push" in the installed hook template.+// This is the check that keeps docs/guards.md and /guards honest, because+// both render this file.+//+// Deliberately conservative: it never guesses that a script "looks like" a+// guard beyond the check-/audit- naming convention, because a checker that+// reports false positives gets switched off, which is worse than no check.+//+// Run: node scripts/audit-guards.mjs (wired as `npm run audit:guards`)++import { readFileSync, readdirSync, existsSync } from 'node:fs';+import path from 'node:path';+import { fileURLToPath } from 'node:url';++const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const read = (rel) => readFileSync(path.join(root, rel), 'utf8');++const registry = JSON.parse(read('data/guards.json'));+const pkg = JSON.parse(read('package.json'));+const scripts = pkg.scripts || {};++const failures = [];+const note = (msg) => failures.push(msg);++// The stage a guard claims maps to a concrete place its name must appear.+// `prebuild` runs raw `node scripts/x.mjs` calls rather than npm scripts, so it+// is matched on the script path; the rest are npm chains.+const STAGE_SOURCES = {+ prebuild: { kind: 'path', chain: scripts.prebuild || '', label: 'the prebuild chain' },+ gate: { kind: 'npm', chain: scripts.gate || '', label: 'the gate chain' },+ 'build:gcp': { kind: 'npm', chain: scripts['build:gcp'] || '', label: 'the build:gcp chain' },+ 'pre-push': { kind: 'hook', label: 'the pre-push hook template' },+ manual: { kind: 'none', label: 'nothing (on demand)' },+};++const hookTemplate = existsSync(path.join(root, 'scripts/setup-git-hooks.mjs'))+ ? read('scripts/setup-git-hooks.mjs')+ : '';++const declaredStageIds = new Set((registry.stages || []).map((s) => s.id));+for (const id of Object.keys(STAGE_SOURCES)) {+ if (!declaredStageIds.has(id)) note(`stage \`${id}\` is verifiable but data/guards.json never describes it for readers`);+}++const registered = new Set();++for (const g of registry.guards || []) {+ const where = `guard \`${g.id}\``;++ if (!g.script || !existsSync(path.join(root, g.script))) {+ note(`${where} names script \`${g.script}\`, which does not exist`);+ continue;+ }+ registered.add(g.script);++ const npmNames = [g.npm, ...(g.npmAliases || [])].filter(Boolean);+ if (!npmNames.length) {+ note(`${where} has no npm script, so nobody can discover or run it without reading scripts/`);+ }+ for (const name of npmNames) {+ if (!scripts[name]) {+ note(`${where} claims \`npm run ${name}\`, which is missing from package.json`);+ continue;+ }+ if (!scripts[name].includes(g.script)) {+ note(`${where}: \`npm run ${name}\` does not actually run ${g.script}`);+ }+ }++ for (const field of ['title', 'protects', 'why']) {+ if (!g[field] || !String(g[field]).trim()) {+ note(`${where} is missing \`${field}\`, which /guards and docs/guards.md both render`);+ }+ }++ const stages = g.stages || [];+ if (!stages.length) note(`${where} declares no stages, so a reader cannot tell when it runs`);+ for (const stage of stages) {+ const src = STAGE_SOURCES[stage];+ if (!src) {+ note(`${where} claims unknown stage \`${stage}\` (known: ${Object.keys(STAGE_SOURCES).join(', ')})`);+ continue;+ }+ if (src.kind === 'none') continue;+ let wired = false;+ if (src.kind === 'path') wired = src.chain.includes(g.script);+ else if (src.kind === 'npm') wired = npmNames.some((n) => new RegExp(`npm run ${n}(\\s|$|&)`).test(src.chain));+ else if (src.kind === 'hook') wired = hookTemplate.includes(path.basename(g.script));+ if (!wired) {+ note(+ `${where} claims it runs in \`${stage}\` but it is not in ${src.label}. ` ++ `Wire it there, or correct the stage in data/guards.json.`,+ );+ }+ }+}++// Reverse direction: a guard on disk that nobody registered.+const exemptPatterns = (registry.exempt || []).map((e) => ({+ re: new RegExp(`^${String(e.pattern).replace(/[.+^${}()|[\]\\]/g, '\\$&').replace(/\*/g, '[^/]*')}$`),+ reason: e.reason,+}));+for (const e of registry.exempt || []) {+ if (!e.reason || !String(e.reason).trim()) note(`exempt pattern \`${e.pattern}\` gives no reason, so nobody can judge whether it still holds`);+}++const onDisk = readdirSync(path.join(root, 'scripts'))+ .filter((f) => /^(check|audit)-.*\.(mjs|js)$/.test(f))+ .map((f) => `scripts/${f}`);++for (const rel of onDisk) {+ if (registered.has(rel)) continue;+ if (exemptPatterns.some((p) => p.re.test(rel))) continue;+ note(+ `${rel} looks like a guard but is not in data/guards.json. ` ++ `Add it (with the stage it runs in), or add an exempt pattern saying why it is not one.`,+ );+}++if (failures.length) {+ console.error(`[audit-guards] ${failures.length} problem(s) between data/guards.json and the repo:`);+ for (const f of failures) console.error(`[audit-guards] ${f}`);+ console.error('[audit-guards] The registry is what docs/guards.md and /guards render, so drift here misleads every reader.');+ process.exit(1);+}++const counts = (registry.guards || []).reduce((acc, g) => {+ for (const s of g.stages || []) acc[s] = (acc[s] || 0) + 1;+ return acc;+}, {});+const summary = Object.entries(counts)+ .map(([k, v]) => `${k}:${v}`)+ .join(' ');+console.log(`[audit-guards] OK: ${registry.guards.length} guards registered, every stage claim verified (${summary})`);diff --git a/scripts/build-examples-index.mjs b/scripts/build-examples-index.mjsindex e4d23729b..24f8fd1ab 100644--- a/scripts/build-examples-index.mjs+++ b/scripts/build-examples-index.mjs@@ -254,7 +254,7 @@ for (const abs of findExampleDirs(root)) {// Source titles and descriptions may carry em/en dashes; the repo bans both// glyphs in committed files, so normalize them to a plain hyphen on the way out.-const plainDashes = (s) => (typeof s === 'string' ? s.replace(/[–—]/g, '-') : s);+const plainDashes = (s) => (typeof s === 'string' ? s.replace(/[\u2013\u2014]/g, '-') : s);for (const e of entries) {e.title = plainDashes(e.title);e.description = plainDashes(e.description);diff --git a/scripts/build-mcp-catalog.mjs b/scripts/build-mcp-catalog.mjsindex 57bd2da9e..9658a5884 100644--- a/scripts/build-mcp-catalog.mjs+++ b/scripts/build-mcp-catalog.mjs@@ -283,7 +283,7 @@ function build() {for (const tool of found) {const hints = tool.annotations.values ?? {};- const price = prices.get(tool.name) ?? 0;+ const price = prices.get(tool.name) ?? null;tools.push({name: tool.name,title: tool.title ?? null,@@ -296,7 +296,11 @@ function build() {idempotentHint: hints.idempotentHint ?? null,openWorldHint: hints.openWorldHint ?? null,},- price: { usd: price, free: price === 0 },+ price: {+ usd: price?.usd ?? 0,+ free: !price,+ ...(price?.tiers ? { tiers: price.tiers } : {}),+ },source: relPath,});}diff --git a/src/admin-economy.css b/src/admin-economy.cssnew file mode 100644index 000000000..7de997032--- /dev/null+++ b/src/admin-economy.css@@ -0,0 +1,622 @@+/* /admin/economy — autonomous economy health dashboard.++ Answers one question fast: is the Money Pulse quiet, and if so, which link in+ the funding chain broke? Shares the ring dashboard's token language (violet+ accent, glass cards, dark ops surface) so the admin surfaces read as one+ product rather than a pile of one-off pages. */++:root {+ --ec-bg: #07070b;+ --ec-panel: rgba(255, 255, 255, 0.035);+ --ec-panel-2: rgba(255, 255, 255, 0.055);+ --ec-line: rgba(255, 255, 255, 0.08);+ --ec-line-2: rgba(255, 255, 255, 0.13);+ --ec-text: #eef0f6;+ --ec-dim: rgba(238, 240, 246, 0.56);+ --ec-faint: rgba(238, 240, 246, 0.34);+ --ec-accent: #7c5cff;+ --ec-accent-2: #a78bfa;+ --ec-good: #2fbf71;+ --ec-warn: #f0a93b;+ --ec-bad: #f87171;+ --ec-radius: 16px;+ --ec-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);+ --ec-ease: cubic-bezier(0.22, 1, 0.36, 1);+ --ec-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Roboto Mono', monospace;+}++:root[data-theme='light'] {+ --ec-bg: #f6f7fb;+ --ec-panel: rgba(10, 12, 24, 0.025);+ --ec-panel-2: rgba(10, 12, 24, 0.045);+ --ec-line: rgba(10, 12, 24, 0.09);+ --ec-line-2: rgba(10, 12, 24, 0.15);+ --ec-text: #14161f;+ --ec-dim: rgba(20, 22, 31, 0.62);+ --ec-faint: rgba(20, 22, 31, 0.4);+ --ec-shadow: 0 20px 50px -30px rgba(20, 22, 40, 0.35);+}++.ec-wrap * {+ box-sizing: border-box;+}++body {+ background: var(--ec-bg);+ color: var(--ec-text);+}++.ec-wrap {+ max-width: 1180px;+ margin: 0 auto;+ padding: 28px 20px 96px;+ font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;+ color: var(--ec-text);+}++/* ── auth gate ─────────────────────────────────────────────────────────── */++.ec-gate {+ max-width: 460px;+ margin: 12vh auto 0;+ text-align: center;+ background: var(--ec-panel);+ border: 1px solid var(--ec-line);+ border-radius: var(--ec-radius);+ padding: 40px 32px;+ box-shadow: var(--ec-shadow);+}++.ec-gate-mark {+ font-size: 34px;+ color: var(--ec-accent-2);+ margin-bottom: 10px;+}++.ec-gate h1 {+ margin: 0 0 8px;+ font-size: 24px;+ letter-spacing: -0.01em;+}++.ec-gate p {+ margin: 0 0 22px;+ color: var(--ec-dim);+ font-size: 14px;+}++.ec-input {+ width: 100%;+ padding: 11px 14px;+ border-radius: 11px;+ border: 1px solid var(--ec-line-2);+ background: var(--ec-panel-2);+ color: var(--ec-text);+ font: inherit;+ margin-bottom: 12px;+ transition: border-color 0.18s var(--ec-ease), box-shadow 0.18s var(--ec-ease);+}++.ec-input:focus-visible {+ outline: none;+ border-color: var(--ec-accent);+ box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25);+}++.ec-btn {+ appearance: none;+ border: 1px solid var(--ec-line-2);+ background: var(--ec-panel-2);+ color: var(--ec-text);+ border-radius: 10px;+ padding: 9px 16px;+ font: 500 14px/1 inherit;+ cursor: pointer;+ transition: transform 0.14s var(--ec-ease), border-color 0.18s var(--ec-ease),+ background 0.18s var(--ec-ease);+}++.ec-btn:hover {+ border-color: var(--ec-accent);+ background: rgba(124, 92, 255, 0.14);+}++.ec-btn:active {+ transform: translateY(1px);+}++.ec-btn:focus-visible {+ outline: 2px solid var(--ec-accent);+ outline-offset: 2px;+}++.ec-btn-primary {+ width: 100%;+ background: var(--ec-accent);+ border-color: var(--ec-accent);+ color: #fff;+}++.ec-btn-primary:hover {+ background: var(--ec-accent-2);+ border-color: var(--ec-accent-2);+}++.ec-gate-err {+ margin: 12px 0 0;+ min-height: 18px;+ font-size: 13px;+ color: var(--ec-bad);+}++/* ── header ────────────────────────────────────────────────────────────── */++.ec-head {+ display: flex;+ align-items: flex-end;+ justify-content: space-between;+ gap: 16px;+ flex-wrap: wrap;+ margin-bottom: 22px;+}++.ec-head h1 {+ margin: 0;+ font-size: 26px;+ letter-spacing: -0.02em;+}++.ec-head p {+ margin: 5px 0 0;+ color: var(--ec-dim);+ font-size: 14px;+ max-width: 62ch;+}++.ec-head-actions {+ display: flex;+ gap: 8px;+ align-items: center;+}++.ec-stamp {+ font: 12px/1 var(--ec-mono);+ color: var(--ec-faint);+}++/* ── verdict banner ────────────────────────────────────────────────────── */++.ec-verdict {+ display: flex;+ gap: 14px;+ align-items: flex-start;+ padding: 18px 20px;+ border-radius: var(--ec-radius);+ border: 1px solid var(--ec-line-2);+ background: var(--ec-panel);+ margin-bottom: 26px;+ box-shadow: var(--ec-shadow);+ animation: ec-rise 0.4s var(--ec-ease) both;+}++.ec-verdict[data-level='good'] {+ border-color: rgba(47, 191, 113, 0.45);+ background: linear-gradient(180deg, rgba(47, 191, 113, 0.1), var(--ec-panel));+}++.ec-verdict[data-level='warn'] {+ border-color: rgba(240, 169, 59, 0.45);+ background: linear-gradient(180deg, rgba(240, 169, 59, 0.1), var(--ec-panel));+}++.ec-verdict[data-level='bad'] {+ border-color: rgba(248, 113, 113, 0.5);+ background: linear-gradient(180deg, rgba(248, 113, 113, 0.11), var(--ec-panel));+}++.ec-verdict-dot {+ width: 12px;+ height: 12px;+ border-radius: 50%;+ margin-top: 6px;+ flex: 0 0 auto;+ background: var(--ec-dim);+}++.ec-verdict[data-level='good'] .ec-verdict-dot {+ background: var(--ec-good);+ box-shadow: 0 0 0 5px rgba(47, 191, 113, 0.16);+ animation: ec-beat 2.4s ease-in-out infinite;+}++.ec-verdict[data-level='warn'] .ec-verdict-dot {+ background: var(--ec-warn);+ box-shadow: 0 0 0 5px rgba(240, 169, 59, 0.16);+}++.ec-verdict[data-level='bad'] .ec-verdict-dot {+ background: var(--ec-bad);+ box-shadow: 0 0 0 5px rgba(248, 113, 113, 0.16);+ animation: ec-beat 1.1s ease-in-out infinite;+}++@keyframes ec-beat {+ 0%, 100% { transform: scale(1); }+ 50% { transform: scale(1.28); }+}++@keyframes ec-rise {+ from { opacity: 0; transform: translateY(8px); }+ to { opacity: 1; transform: none; }+}++.ec-verdict h2 {+ margin: 0 0 4px;+ font-size: 17px;+ letter-spacing: -0.01em;+}++.ec-verdict p {+ margin: 0;+ color: var(--ec-dim);+ font-size: 14px;+}++.ec-verdict code {+ font: 12.5px/1.4 var(--ec-mono);+ background: var(--ec-panel-2);+ border: 1px solid var(--ec-line);+ border-radius: 6px;+ padding: 1px 5px;+}++/* ── section + grid ────────────────────────────────────────────────────── */++.ec-section {+ margin-bottom: 30px;+}++.ec-section > h2 {+ margin: 0 0 4px;+ font-size: 13px;+ letter-spacing: 0.09em;+ text-transform: uppercase;+ color: var(--ec-faint);+}++.ec-section > .ec-sub {+ margin: 0 0 14px;+ font-size: 13.5px;+ color: var(--ec-dim);+ max-width: 74ch;+}++.ec-grid {+ display: grid;+ gap: 14px;+ grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));+}++.ec-card {+ background: var(--ec-panel);+ border: 1px solid var(--ec-line);+ border-radius: var(--ec-radius);+ padding: 16px 18px;+ transition: border-color 0.2s var(--ec-ease), transform 0.2s var(--ec-ease);+}++.ec-card:hover {+ border-color: var(--ec-line-2);+ transform: translateY(-2px);+}++.ec-k {+ font-size: 12px;+ letter-spacing: 0.05em;+ text-transform: uppercase;+ color: var(--ec-faint);+ margin: 0 0 6px;+ display: flex;+ align-items: center;+ gap: 7px;+}++.ec-v {+ font: 600 26px/1.15 var(--ec-mono);+ letter-spacing: -0.02em;+ margin: 0;+ overflow-wrap: anywhere;+}++.ec-v small {+ font-size: 13px;+ font-weight: 400;+ color: var(--ec-dim);+ margin-left: 5px;+}++.ec-note {+ margin: 7px 0 0;+ font-size: 12.5px;+ color: var(--ec-dim);+ line-height: 1.45;+}++/* ── funding chain ─────────────────────────────────────────────────────── */++.ec-chain {+ display: grid;+ gap: 10px;+ grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));+ align-items: stretch;+}++.ec-link {+ position: relative;+ background: var(--ec-panel);+ border: 1px solid var(--ec-line);+ border-radius: 13px;+ padding: 14px 15px;+}++.ec-link[data-state='low'] {+ border-color: rgba(240, 169, 59, 0.5);+}++.ec-link[data-state='dry'] {+ border-color: rgba(248, 113, 113, 0.55);+}++.ec-link[data-state='ok'] {+ border-color: rgba(47, 191, 113, 0.4);+}++.ec-link h3 {+ margin: 0 0 3px;+ font-size: 13px;+ letter-spacing: 0.03em;+ color: var(--ec-dim);+ text-transform: uppercase;+ font-weight: 600;+}++.ec-link .ec-amt {+ font: 600 20px/1.2 var(--ec-mono);+}++.ec-link .ec-floor {+ font-size: 12px;+ color: var(--ec-faint);+ margin-top: 3px;+}++.ec-meter {+ height: 5px;+ border-radius: 3px;+ background: var(--ec-panel-2);+ overflow: hidden;+ margin-top: 9px;+}++.ec-meter > i {+ display: block;+ height: 100%;+ border-radius: 3px;+ background: var(--ec-good);+ transition: width 0.6s var(--ec-ease);+}++.ec-link[data-state='low'] .ec-meter > i { background: var(--ec-warn); }+.ec-link[data-state='dry'] .ec-meter > i { background: var(--ec-bad); }++/* ── lanes table ───────────────────────────────────────────────────────── */++.ec-scroll {+ overflow-x: auto;+ border: 1px solid var(--ec-line);+ border-radius: var(--ec-radius);+ background: var(--ec-panel);+}++.ec-table {+ width: 100%;+ border-collapse: collapse;+ min-width: 620px;+ font-size: 13.5px;+}++.ec-table th,+.ec-table td {+ text-align: left;+ padding: 11px 14px;+ border-bottom: 1px solid var(--ec-line);+ vertical-align: top;+}++.ec-table th {+ font-size: 11.5px;+ letter-spacing: 0.07em;+ text-transform: uppercase;+ color: var(--ec-faint);+ font-weight: 600;+ white-space: nowrap;+}++.ec-table tbody tr:last-child td {+ border-bottom: 0;+}++.ec-table tbody tr {+ transition: background 0.15s var(--ec-ease);+}++.ec-table tbody tr:hover {+ background: var(--ec-panel-2);+}++.ec-num {+ font: 500 13.5px/1.4 var(--ec-mono);+}++.ec-reason {+ color: var(--ec-dim);+ font-size: 12.5px;+ max-width: 46ch;+}++.ec-pill {+ display: inline-flex;+ align-items: center;+ gap: 5px;+ padding: 2px 9px;+ border-radius: 999px;+ font: 600 11.5px/1.7 inherit;+ letter-spacing: 0.03em;+ border: 1px solid var(--ec-line-2);+ color: var(--ec-dim);+ white-space: nowrap;+}++.ec-pill[data-tone='good'] {+ color: var(--ec-good);+ border-color: rgba(47, 191, 113, 0.45);+ background: rgba(47, 191, 113, 0.1);+}++.ec-pill[data-tone='warn'] {+ color: var(--ec-warn);+ border-color: rgba(240, 169, 59, 0.45);+ background: rgba(240, 169, 59, 0.1);+}++.ec-pill[data-tone='bad'] {+ color: var(--ec-bad);+ border-color: rgba(248, 113, 113, 0.5);+ background: rgba(248, 113, 113, 0.1);+}++/* ── runbook ───────────────────────────────────────────────────────────── */++.ec-runbook {+ counter-reset: ec-step;+ list-style: none;+ margin: 0;+ padding: 0;+ display: grid;+ gap: 10px;+}++.ec-runbook li {+ counter-increment: ec-step;+ position: relative;+ padding: 13px 16px 13px 48px;+ background: var(--ec-panel);+ border: 1px solid var(--ec-line);+ border-radius: 13px;+ font-size: 13.5px;+ color: var(--ec-dim);+}++.ec-runbook li::before {+ content: counter(ec-step);+ position: absolute;+ left: 15px;+ top: 13px;+ width: 21px;+ height: 21px;+ border-radius: 50%;+ background: rgba(124, 92, 255, 0.16);+ border: 1px solid rgba(124, 92, 255, 0.4);+ color: var(--ec-accent-2);+ font: 600 11.5px/20px var(--ec-mono);+ text-align: center;+}++.ec-runbook b {+ color: var(--ec-text);+ font-weight: 600;+}++.ec-runbook code {+ font: 12.5px/1.4 var(--ec-mono);+ background: var(--ec-panel-2);+ border: 1px solid var(--ec-line);+ border-radius: 6px;+ padding: 1px 5px;+ color: var(--ec-text);+ overflow-wrap: anywhere;+}++/* ── states ────────────────────────────────────────────────────────────── */++.ec-empty,+.ec-error {+ padding: 26px 20px;+ text-align: center;+ border: 1px dashed var(--ec-line-2);+ border-radius: var(--ec-radius);+ color: var(--ec-dim);+ font-size: 14px;+}++.ec-error {+ border-color: rgba(248, 113, 113, 0.4);+ color: var(--ec-bad);+}++.ec-skeleton {+ border-radius: 8px;+ background: linear-gradient(90deg, var(--ec-panel) 25%, var(--ec-panel-2) 37%, var(--ec-panel) 63%);+ background-size: 400% 100%;+ animation: ec-shimmer 1.3s ease-in-out infinite;+ color: transparent !important;+ user-select: none;+}++@keyframes ec-shimmer {+ from { background-position: 100% 50%; }+ to { background-position: 0 50%; }+}++.ec-foot {+ margin-top: 34px;+ padding-top: 16px;+ border-top: 1px solid var(--ec-line);+ font-size: 12.5px;+ color: var(--ec-faint);+ display: flex;+ gap: 14px;+ flex-wrap: wrap;+}++.ec-foot a {+ color: var(--ec-accent-2);+ text-decoration: none;+}++.ec-foot a:hover {+ text-decoration: underline;+}++.ec-foot a:focus-visible {+ outline: 2px solid var(--ec-accent);+ outline-offset: 2px;+ border-radius: 4px;+}++@media (max-width: 640px) {+ .ec-wrap { padding: 20px 14px 72px; }+ .ec-head h1 { font-size: 22px; }+ .ec-v { font-size: 22px; }+}++@media (prefers-reduced-motion: reduce) {+ .ec-verdict,+ .ec-verdict-dot,+ .ec-skeleton,+ .ec-meter > i,+ .ec-card {+ animation: none !important;+ transition: none !important;+ }+}diff --git a/src/agent-screen-treasury.js b/src/agent-screen-treasury.jsindex b982b3e95..b42526553 100644--- a/src/agent-screen-treasury.js+++ b/src/agent-screen-treasury.js@@ -366,8 +366,8 @@ export function createTreasuryCockpit({ agentId, bodyEl, toast, network = 'mainn<div class="ast-actions"><button class="ast-btn ast-btn-primary" data-act="save">Save policy</button><button class="ast-btn ${armed ? 'ast-btn-warn' : 'ast-btn-go'}" data-act="arm" ${killed ? 'disabled' : ''}>${armed ? 'Disarm' : 'Arm'}</button>- <button class="ast-btn ast-btn-ghost" data-act="preview" ${!armed || killed ? 'disabled title="Arm a policy first"' : ''} title="Simulate a cycle — spends nothing">Preview cycle</button>- <button class="ast-btn ast-btn-ghost" data-act="run" ${!armed || killed ? 'disabled title="Arm a policy first"' : ''} title="Run for real — moves funds from this agent's wallet">Run one cycle</button>+ <button class="ast-btn ast-btn-ghost" data-act="preview" ${!armed || killed ? 'disabled title="Arm a policy first"' : ''} title="Simulate a cycle; spends nothing">Preview cycle</button>+ <button class="ast-btn ast-btn-ghost" data-act="run" ${!armed || killed ? 'disabled title="Arm a policy first"' : ''} title="Run for real; moves funds from this agent's wallet">Run one cycle</button><button class="ast-btn ast-btn-kill ${killed ? 'active' : ''}" data-act="kill" title="Halt all autonomous spending instantly">${killed ? 'Clear kill switch' : 'Kill switch'}</button></div><div class="ast-msg" id="ast-msg"></div>@@ -581,11 +581,11 @@ export function createTreasuryCockpit({ agentId, bodyEl, toast, network = 'mainnif (!result?.ran) { reportCycle(result); return; }const would = (result.results || []).filter((r) => r.last_status === 'would_run');if (!would.length) {- setMsg('Preview complete — no rule is due to spend this period. Nothing was moved.', 'ok');+ setMsg('Preview complete: no rule is due to spend this period. Nothing was moved.', 'ok');return;}const lines = would.map((r) => previewLine(r)).join(' · ');- setMsg(`Preview — ${lines}. Nothing was moved; use Run one cycle to execute.`, 'ok');+ setMsg(`Preview: ${lines}. Nothing was moved; use Run one cycle to execute.`, 'ok');}function reportCycle(result) {diff --git a/src/docs-world/world.js b/src/docs-world/world.jsindex 090cc2981..d19c9fba7 100644--- a/src/docs-world/world.js+++ b/src/docs-world/world.js@@ -107,6 +107,12 @@ function makeLabelTexture(title, sub, colorHex) {return tex;}+// Base footprint of the central welcome sign, in world units, before resize()+// fits it to the viewport's horizontal field of view.+const BEACON_LABEL_SCALE = 0.8;+const BEACON_LABEL_W = 6.4 * BEACON_LABEL_SCALE;+const BEACON_LABEL_H = 2 * BEACON_LABEL_SCALE;+function makeLabelSprite(title, sub, colorHex, scale = 1) {const material = new SpriteMaterial({map: makeLabelTexture(title, sub, colorHex),@@ -346,7 +352,12 @@ export function createDocsWorld(canvas, sections, { reducedMotion = false } = {});pillar.position.y = 1.7;beacon.add(pillar);- const beaconLabel = makeLabelSprite('three.ws Docs World', 'walk to a pavilion to read', '#8b5cf6', 0.8);+ const beaconLabel = makeLabelSprite(+ 'three.ws Docs World',+ 'walk to a pavilion to read',+ '#8b5cf6',+ BEACON_LABEL_SCALE,+ );// Clear of the ring labels (which sit at y 3.6) so the two never stack.beaconLabel.position.y = 5.4;beacon.add(beaconLabel);@@ -364,6 +375,16 @@ export function createDocsWorld(canvas, sections, { reducedMotion = false } = {}renderer.setSize(w, h, false);camera.aspect = w / h;camera.updateProjectionMatrix();++ // The beacon sign is sized in WORLD units, but how much screen it covers+ // depends on the horizontal field of view, which shrinks with the aspect+ // ratio. On a portrait phone that made the welcome sign span nearly the full+ // width and stack over the ring labels behind it at spawn, before the+ // distance fade in tick() has anything to fade. Scaling it with aspect keeps+ // the sign the same relative size on every device; desktop (aspect >= 1.6) is+ // unchanged, and the floor stops it shrinking into illegibility.+ const fit = Math.min(1, Math.max(0.52, camera.aspect / 1.6));+ beaconLabel.scale.set(BEACON_LABEL_W * fit, BEACON_LABEL_H * fit, 1);}resize();diff --git a/src/examples-gallery.js b/src/examples-gallery.jsnew file mode 100644index 000000000..b81fbdb08--- /dev/null+++ b/src/examples-gallery.js@@ -0,0 +1,277 @@+// /examples: the browsable index of every runnable example that ships in the+// three.ws repository.+//+// Feed: GET /examples.json, mirrored from data/examples.json, which+// scripts/build-examples-index.mjs derives by scanning the repo. That matters+// for trust: the gallery cannot advertise an example that was deleted, and it+// cannot miss one that was added, because nothing here is hand-listed.+//+// Every card is a real artifact with a real way to run it. Three kinds exist,+// and they are genuinely different things rather than a styling choice:+// html-demo a single self-contained page, opened at a dev-server URL+// project a directory with its own README, run by a shell command+// package the examples folder that ships beside an SDK or npm package+//+// The examples are source files in the repo, not hosted routes, so every card+// links to GitHub for the source. Nothing here pretends to be a live demo.++const els = {+ grid: document.querySelector('[data-role="grid"]'),+ loading: document.querySelector('[data-role="loading"]'),+ empty: document.querySelector('[data-role="empty"]'),+ emptySearch: document.querySelector('[data-role="empty-search"]'),+ error: document.querySelector('[data-role="error"]'),+ errorMsg: document.querySelector('[data-role="error-msg"]'),+ search: document.querySelector('[data-role="search"]'),+ sort: document.querySelector('[data-role="sort"]'),+ count: document.querySelector('[data-role="count"]'),+ heroStats: document.querySelector('[data-role="hero-stats"]'),+ clearSearch: document.querySelector('[data-role="clear-search"]'),+ retry: document.querySelector('[data-role="retry"]'),+ chips: document.querySelector('[data-role="chips"]'),+ live: document.querySelector('[data-role="live"]'),+};++const state = { all: [], groups: [], query: '', sort: 'group', group: '' };++const REPO = 'https://github.com/nirholas/three.ws';+const BRANCH = 'main';++function escapeHtml(s) {+ return String(s ?? '').replace(/[&<>"']/g, (c) =>+ ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);+}+const escapeAttr = escapeHtml;+function show(el, on) {+ if (el) el.hidden = !on;+}++/** Screen-reader announcement for filter results, which change silently otherwise. */+function announce(message) {+ if (els.live) els.live.textContent = message;+}++const KIND_LABEL = { 'html-demo': 'Web component demo', project: 'Example project', package: 'Package example' };+const KIND_ICON = { 'html-demo': '🧩', project: '📦', package: '🔌' };++/** A directory path is a tree link on GitHub; a single file is a blob link. */+function sourceUrl(example) {+ const isDir = example.kind !== 'html-demo' && !/\.[a-z0-9]+$/i.test(example.path);+ return `${REPO}/${isDir ? 'tree' : 'blob'}/${BRANCH}/${example.path}`;+}++function readmeUrl(example) {+ return example.readme ? `${REPO}/blob/${BRANCH}/${example.readme}` : null;+}++/**+ * The one line a reader needs to actually run the example. `runKind: 'url'`+ * means "start the dev server and open this path", so it is rendered as a path+ * rather than a link: these files are not served by the production site.+ */+function runLine(example) {+ if (!example.run) return '';+ return example.runKind === 'url' ? `npm run dev → ${example.run}` : example.run;+}++function matches(example, query) {+ if (!query) return true;+ const haystack = [example.title, example.description, example.path, example.owner, KIND_LABEL[example.kind]]+ .filter(Boolean)+ .join(' ')+ .toLowerCase();+ return query+ .toLowerCase()+ .split(/\s+/)+ .filter(Boolean)+ .every((term) => haystack.includes(term));+}++function visible() {+ let list = state.all.filter((e) => matches(e, state.query));+ if (state.group) list = list.filter((e) => e.group === state.group);+ const byTitle = (a, b) => a.title.localeCompare(b.title);+ if (state.sort === 'title') list = [...list].sort(byTitle);+ else if (state.sort === 'files') list = [...list].sort((a, b) => (b.files?.length || 0) - (a.files?.length || 0) || byTitle(a, b));+ else list = [...list].sort((a, b) => a.group.localeCompare(b.group) || byTitle(a, b));+ return list;+}++function card(example) {+ const files = Array.isArray(example.files) ? example.files : [];+ const readme = readmeUrl(example);+ const run = runLine(example);+ return `+ <article class="ex-card">+ <div class="ex-card-top">+ <span class="ex-card-kind" title="${escapeAttr(KIND_LABEL[example.kind] || example.kind)}">+ <span aria-hidden="true">${KIND_ICON[example.kind] || '📄'}</span>+ ${escapeHtml(KIND_LABEL[example.kind] || example.kind)}+ </span>+ ${example.owner ? `<span class="ex-card-owner">${escapeHtml(example.owner)}</span>` : ''}+ </div>+ <h3 class="ex-card-title">+ <a href="${escapeAttr(sourceUrl(example))}" target="_blank" rel="noopener noreferrer">${escapeHtml(example.title)}</a>+ </h3>+ ${example.description ? `<p class="ex-card-desc">${escapeHtml(example.description)}</p>` : ''}+ ${+ files.length+ ? `<ul class="ex-card-files">${files+ .slice(0, 5)+ .map((f) => `<li><code>${escapeHtml(f)}</code></li>`)+ .join('')}${files.length > 5 ? `<li class="ex-card-more">+${files.length - 5} more</li>` : ''}</ul>`+ : ''+ }+ ${+ run+ ? `<div class="ex-card-run">+ <code data-role="run" title="${escapeAttr(run)}">${escapeHtml(run)}</code>+ <button type="button" class="ex-copy" data-copy="${escapeAttr(example.run)}" aria-label="Copy the command that runs ${escapeAttr(example.title)}">Copy</button>+ </div>`+ : ''+ }+ <div class="ex-card-actions">+ <a class="ex-btn ex-btn--primary" href="${escapeAttr(sourceUrl(example))}" target="_blank" rel="noopener noreferrer">View source</a>+ ${readme ? `<a class="ex-btn ex-btn--ghost" href="${escapeAttr(readme)}" target="_blank" rel="noopener noreferrer">README</a>` : ''}+ <span class="ex-card-path" title="${escapeAttr(example.path)}">${escapeHtml(example.path)}</span>+ </div>+ </article>`;+}++function renderChips() {+ if (!els.chips) return;+ const counts = new Map();+ for (const example of state.all) counts.set(example.group, (counts.get(example.group) || 0) + 1);+ const chip = (value, label, count) =>+ `<button type="button" role="tab" class="ex-chip${state.group === value ? ' is-active' : ''}" aria-selected="${state.group === value}" data-group="${escapeAttr(value)}">${escapeHtml(label)} <span class="ex-chip-n">${count}</span></button>`;+ els.chips.innerHTML = [+ chip('', 'All', state.all.length),+ ...state.groups.map((g) => chip(g, g, counts.get(g) || 0)),+ ].join('');+}++function render() {+ const list = visible();+ show(els.loading, false);+ show(els.error, false);++ if (!state.all.length) {+ show(els.grid, false);+ show(els.emptySearch, false);+ show(els.empty, true);+ if (els.count) els.count.textContent = '';+ return;+ }+ show(els.empty, false);++ if (!list.length) {+ show(els.grid, false);+ show(els.emptySearch, true);+ if (els.count) els.count.textContent = '0 examples';+ announce('No examples match the current filter.');+ return;+ }++ show(els.emptySearch, false);+ els.grid.innerHTML = list.map(card).join('');+ show(els.grid, true);+ if (els.count) els.count.textContent = `${list.length} of ${state.all.length} examples`;+ announce(`${list.length} examples shown.`);+}++function renderHeroStats(counts) {+ if (!els.heroStats || !counts) return;+ const parts = [`${counts.total} examples`];+ if (counts.html_demos) parts.push(`${counts.html_demos} demos`);+ if (counts.projects) parts.push(`${counts.projects} projects`);+ if (counts.packages) parts.push(`${counts.packages} package sets`);+ els.heroStats.textContent = parts.join(' · ');+}++async function load() {+ show(els.error, false);+ show(els.empty, false);+ show(els.emptySearch, false);+ show(els.grid, false);+ show(els.loading, true);+ try {+ const res = await fetch('/examples.json', { headers: { accept: 'application/json' } });+ if (!res.ok) throw new Error(`the index returned HTTP ${res.status}`);+ const data = await res.json();+ const examples = Array.isArray(data?.examples) ? data.examples : [];+ state.all = examples.filter((e) => e && e.title && e.path);+ state.groups = [...new Set(state.all.map((e) => e.group).filter(Boolean))].sort();+ renderHeroStats(data?.counts);+ renderChips();+ render();+ } catch (err) {+ show(els.loading, false);+ show(els.grid, false);+ if (els.errorMsg) els.errorMsg.textContent = `Could not load the example index: ${err.message}.`;+ show(els.error, true);+ }+}++function bind() {+ let debounce;+ els.search?.addEventListener('input', (e) => {+ clearTimeout(debounce);+ const value = e.target.value;+ debounce = setTimeout(() => {+ state.query = value.trim();+ render();+ }, 120);+ });+ els.sort?.addEventListener('change', (e) => {+ state.sort = e.target.value;+ render();+ });+ els.chips?.addEventListener('click', (e) => {+ const button = e.target.closest('[data-group]');+ if (!button) return;+ state.group = button.dataset.group;+ renderChips();+ render();+ });+ els.clearSearch?.addEventListener('click', () => {+ state.query = '';+ state.group = '';+ if (els.search) els.search.value = '';+ renderChips();+ render();+ els.search?.focus();+ });+ els.retry?.addEventListener('click', load);++ // Copy-to-clipboard on the run command, with the button reporting its own+ // result: a silent copy leaves the reader unsure whether it worked.+ els.grid?.addEventListener('click', async (e) => {+ const button = e.target.closest('.ex-copy');+ if (!button) return;+ const text = button.dataset.copy || '';+ try {+ await navigator.clipboard.writeText(text);+ button.textContent = 'Copied';+ button.classList.add('is-copied');+ } catch {+ button.textContent = 'Press ⌘C';+ }+ setTimeout(() => {+ button.textContent = 'Copy';+ button.classList.remove('is-copied');+ }, 1600);+ });++ // "/" focuses search, the convention the other galleries on this site use.+ document.addEventListener('keydown', (e) => {+ if (e.key !== '/' || e.metaKey || e.ctrlKey || e.altKey) return;+ const tag = document.activeElement?.tagName;+ if (tag === 'INPUT' || tag === 'TEXTAREA' || document.activeElement?.isContentEditable) return;+ e.preventDefault();+ els.search?.focus();+ els.search?.select();+ });+}++bind();+load();diff --git a/src/play-economy.css b/src/play-economy.cssnew file mode 100644index 000000000..a446f6949--- /dev/null+++ b/src/play-economy.css@@ -0,0 +1,667 @@+/* The in-game economy reference (/play/economy). Self-contained (pe- prefix),+ driven entirely by the shared theme tokens so it tracks light/dark without a+ second palette. Gold + jade tint: gold reads as the cash purse, jade as the+ on-chain side, which keeps the page's two currencies visually separate the+ same way the economy keeps them separate. Distinct from the amber/violet+ cosmetics ledger (/fits) and the green revenue board. */++.pe-shell {+ --pe-cash: #e0b341;+ --pe-chain: #3fbfa0;+ --pe-grad: linear-gradient(135deg, var(--pe-cash) 0%, var(--pe-chain) 100%);+ --pe-common: #8b94a7;+ --pe-uncommon: #63b36b;+ --pe-rare: #4aa3f0;+ --pe-epic: #b07bf4;+ --pe-legendary: #f0a44a;+ position: relative;+ max-width: 1180px;+ margin: 0 auto;+ padding: clamp(20px, 5vw, 56px) clamp(16px, 4vw, 32px) 96px;+ font-family: var(--font-body, system-ui, sans-serif);+ color: var(--ink, #d8d8d8);+}++.pe-glow {+ position: absolute;+ inset: -10% auto auto auto;+ left: max(-20%, calc((100% - 100vw) / 2 + 12px));+ right: max(-20%, calc((100% - 100vw) / 2 + 12px));+ height: 380px;+ mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);+ -webkit-mask-image: linear-gradient(+ to right,+ transparent,+ #000 32px,+ #000 calc(100% - 32px),+ transparent+ );+ background:+ radial-gradient(+ 60% 80% at 20% 0%,+ color-mix(in srgb, var(--pe-cash) 15%, transparent),+ transparent 70%+ ),+ radial-gradient(+ 50% 70% at 84% 6%,+ color-mix(in srgb, var(--pe-chain) 14%, transparent),+ transparent 70%+ );+ filter: blur(20px);+ pointer-events: none;+ z-index: 0;+ opacity: 0.85;+}+.pe-shell > *:not(.pe-glow) {+ position: relative;+ z-index: 1;+}++/* --- hero ---------------------------------------------------------------- */++.pe-hero {+ margin-bottom: clamp(28px, 5vw, 52px);+}+.pe-kicker {+ display: flex;+ align-items: center;+ gap: 8px;+ margin: 0 0 10px;+ font-size: var(--text-2xs, 0.6875rem);+ font-weight: var(--weight-semibold, 600);+ letter-spacing: 0.14em;+ text-transform: uppercase;+ color: var(--ink-dim, #9aa1ad);+}+.pe-title {+ margin: 0 0 14px;+ font-size: clamp(2rem, 6vw, var(--text-2xl, 2.618rem));+ line-height: var(--leading-tight, 1.382);+ font-weight: var(--weight-bold, 700);+ color: var(--ink-bright, #fff);+ letter-spacing: -0.02em;+}+.pe-title em {+ font-style: normal;+ background: var(--pe-grad);+ -webkit-background-clip: text;+ background-clip: text;+ color: transparent;+}+.pe-sub {+ max-width: 68ch;+ margin: 0 0 20px;+ font-size: var(--text-base, 1rem);+ line-height: var(--leading-normal, 1.618);+ color: var(--ink-dim, #9aa1ad);+}++.pe-hero-actions {+ display: flex;+ flex-wrap: wrap;+ gap: 10px;+}++.pe-btn {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ padding: 10px 18px;+ border: 1px solid var(--stroke, rgba(255, 255, 255, 0.12));+ border-radius: var(--radius-pill, 999px);+ background: var(--surface-1, rgba(255, 255, 255, 0.03));+ color: var(--ink-bright, #fff);+ font-size: var(--text-ui, 0.875rem);+ font-weight: var(--weight-medium, 500);+ text-decoration: none;+ cursor: pointer;+ transition:+ background 0.18s ease,+ border-color 0.18s ease,+ transform 0.18s ease;+}+.pe-btn:hover {+ background: var(--surface-2, rgba(255, 255, 255, 0.06));+ border-color: var(--stroke-strong, rgba(255, 255, 255, 0.24));+ transform: translateY(-1px);+}+.pe-btn:active {+ transform: translateY(0);+}+.pe-btn:focus-visible {+ outline: 2px solid var(--pe-chain);+ outline-offset: 2px;+}+.pe-btn-primary {+ background: var(--pe-grad);+ border-color: transparent;+ color: #10131a;+ font-weight: var(--weight-semibold, 600);+}+.pe-btn-primary:hover {+ background: var(--pe-grad);+ filter: brightness(1.06);+}++/* --- sections ------------------------------------------------------------ */++.pe-section {+ margin-top: clamp(36px, 6vw, 64px);+ scroll-margin-top: 84px;+}+.pe-section-head {+ margin-bottom: 18px;+}+.pe-h2 {+ margin: 0 0 8px;+ font-size: clamp(1.35rem, 3.4vw, var(--text-xl, 1.618rem));+ font-weight: var(--weight-semibold, 600);+ color: var(--ink-bright, #fff);+ letter-spacing: -0.01em;+}+.pe-h3 {+ margin: 0 0 8px;+ font-size: var(--text-lg, 1.236rem);+ font-weight: var(--weight-semibold, 600);+ color: var(--ink-bright, #fff);+}+.pe-blurb {+ max-width: 72ch;+ margin: 0;+ font-size: var(--text-ui, 0.875rem);+ line-height: var(--leading-normal, 1.618);+ color: var(--ink-dim, #9aa1ad);+}+.pe-note {+ max-width: 72ch;+ margin: 0 0 14px;+ font-size: var(--text-md, 0.8125rem);+ line-height: var(--leading-normal, 1.618);+ color: var(--ink-dim, #9aa1ad);+}+.pe-muted {+ color: var(--ink-faint, #6e7583);+}++.pe-panel {+ padding: clamp(16px, 3vw, 24px);+ border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1));+ border-radius: var(--radius-lg, 14px);+ background: var(--surface-1, rgba(255, 255, 255, 0.03));+}++.pe-split {+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));+ gap: 16px;+ align-items: start;+}++/* --- currencies ---------------------------------------------------------- */++.pe-cur-grid {+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));+ gap: 16px;+}+.pe-cur {+ position: relative;+ overflow: hidden;+ padding: clamp(18px, 3vw, 26px);+ border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1));+ border-radius: var(--radius-lg, 14px);+ background: var(--surface-1, rgba(255, 255, 255, 0.03));+ transition:+ border-color 0.18s ease,+ transform 0.18s ease;+}+.pe-cur::before {+ content: '';+ position: absolute;+ inset: 0 0 auto 0;+ height: 3px;+}+.pe-cur-game::before {+ background: var(--pe-cash);+}+.pe-cur-chain::before {+ background: var(--pe-chain);+}+.pe-cur:hover {+ transform: translateY(-2px);+ border-color: var(--stroke-strong, rgba(255, 255, 255, 0.22));+}+.pe-cur-top {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ margin-bottom: 12px;+}+.pe-cur-name {+ font-size: var(--text-lg, 1.236rem);+ font-weight: var(--weight-bold, 700);+ color: var(--ink-bright, #fff);+}+.pe-cur-sum {+ margin: 0 0 12px;+ font-size: var(--text-ui, 0.875rem);+ line-height: var(--leading-normal, 1.618);+ color: var(--ink, #d8d8d8);+}+.pe-cur-foot {+ margin: 0;+ font-size: var(--text-md, 0.8125rem);+ color: var(--ink-dim, #9aa1ad);+}++.pe-chip {+ padding: 4px 10px;+ border-radius: var(--radius-pill, 999px);+ font-size: var(--text-2xs, 0.6875rem);+ font-weight: var(--weight-semibold, 600);+ letter-spacing: 0.06em;+ text-transform: uppercase;+ white-space: nowrap;+}+.pe-chip-game {+ background: color-mix(in srgb, var(--pe-cash) 18%, transparent);+ color: var(--pe-cash);+}+.pe-chip-chain {+ background: color-mix(in srgb, var(--pe-chain) 18%, transparent);+ color: var(--pe-chain);+}++/* --- tables -------------------------------------------------------------- */++.pe-tablewrap {+ overflow-x: auto;+ border-radius: var(--radius-md, 10px);+}+.pe-tablewrap:focus-visible {+ outline: 2px solid var(--pe-chain);+ outline-offset: 2px;+}+.pe-table {+ width: 100%;+ border-collapse: collapse;+ font-size: var(--text-md, 0.8125rem);+}+.pe-table th {+ padding: 8px 12px;+ text-align: left;+ font-size: var(--text-2xs, 0.6875rem);+ font-weight: var(--weight-semibold, 600);+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--ink-faint, #6e7583);+ border-bottom: 1px solid var(--stroke, rgba(255, 255, 255, 0.1));+ white-space: nowrap;+}+.pe-table td {+ padding: 10px 12px;+ border-bottom: 1px solid color-mix(in srgb, var(--stroke, rgba(255, 255, 255, 0.1)) 55%, transparent);+ color: var(--ink, #d8d8d8);+ vertical-align: middle;+}+.pe-table tbody tr:last-child td {+ border-bottom: 0;+}+.pe-table tbody tr {+ transition: background 0.14s ease;+}+.pe-table tbody tr:hover {+ background: var(--surface-1, rgba(255, 255, 255, 0.03));+}+.pe-r {+ text-align: right;+}+.pe-cash {+ color: var(--pe-cash);+ font-variant-numeric: tabular-nums;+ font-weight: var(--weight-medium, 500);+ white-space: nowrap;+}++/* --- bank ---------------------------------------------------------------- */++.pe-bank {+ display: grid;+ grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);+ gap: clamp(16px, 3vw, 28px);+ align-items: center;+}+@media (max-width: 720px) {+ .pe-bank {+ grid-template-columns: 1fr;+ }+}+.pe-bank-viz {+ display: grid;+ gap: 10px;+}+.pe-bank-row {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ padding: 14px 16px;+ border-radius: var(--radius-md, 10px);+ border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1));+}+.pe-bank-label {+ font-weight: var(--weight-medium, 500);+ color: var(--ink-bright, #fff);+ font-size: var(--text-ui, 0.875rem);+}+.pe-bank-fate {+ font-size: var(--text-2xs, 0.6875rem);+ font-weight: var(--weight-semibold, 600);+ letter-spacing: 0.06em;+ text-transform: uppercase;+}+.pe-bank-risk {+ background: color-mix(in srgb, var(--danger, #e5484d) 10%, transparent);+ border-color: color-mix(in srgb, var(--danger, #e5484d) 32%, transparent);+}+.pe-bank-risk .pe-bank-fate {+ color: var(--danger, #e5484d);+}+.pe-bank-safe {+ background: color-mix(in srgb, var(--pe-chain) 10%, transparent);+ border-color: color-mix(in srgb, var(--pe-chain) 32%, transparent);+}+.pe-bank-safe .pe-bank-fate {+ color: var(--pe-chain);+}++/* --- boutique ------------------------------------------------------------ */++.pe-fit-grid {+ display: grid;+ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));+ gap: 14px;+ margin-bottom: 18px;+}+.pe-fit {+ display: flex;+ align-items: center;+ gap: 12px;+ padding: 14px;+ border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1));+ border-left: 3px solid var(--pe-common);+ border-radius: var(--radius-md, 10px);+ background: var(--surface-1, rgba(255, 255, 255, 0.03));+ transition:+ transform 0.18s ease,+ border-color 0.18s ease,+ background 0.18s ease;+}+.pe-fit:hover {+ transform: translateY(-2px);+ background: var(--surface-2, rgba(255, 255, 255, 0.06));+}+.pe-rar-common {+ border-left-color: var(--pe-common);+}+.pe-rar-uncommon {+ border-left-color: var(--pe-uncommon);+}+.pe-rar-rare {+ border-left-color: var(--pe-rare);+}+.pe-rar-epic {+ border-left-color: var(--pe-epic);+}+.pe-rar-legendary {+ border-left-color: var(--pe-legendary);+}+.pe-fit-swatch {+ flex: 0 0 auto;+ width: 34px;+ height: 34px;+ border-radius: 50%;+ background: var(--sw, var(--surface-3, rgba(255, 255, 255, 0.08)));+ border: 1px solid var(--stroke, rgba(255, 255, 255, 0.14));+}+.pe-fit-body {+ flex: 1 1 auto;+ min-width: 0;+}+.pe-fit-name {+ margin: 0 0 4px;+ font-size: var(--text-ui, 0.875rem);+ font-weight: var(--weight-semibold, 600);+ color: var(--ink-bright, #fff);+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.pe-fit-meta {+ display: flex;+ align-items: center;+ gap: 8px;+ margin: 0;+ font-size: var(--text-2xs, 0.6875rem);+}+.pe-fit-slot {+ color: var(--ink-faint, #6e7583);+}+.pe-rarity {+ text-transform: capitalize;+ font-weight: var(--weight-semibold, 600);+}+.pe-rarity-common {+ color: var(--pe-common);+}+.pe-rarity-uncommon {+ color: var(--pe-uncommon);+}+.pe-rarity-rare {+ color: var(--pe-rare);+}+.pe-rarity-epic {+ color: var(--pe-epic);+}+.pe-rarity-legendary {+ color: var(--pe-legendary);+}+.pe-fit-price {+ flex: 0 0 auto;+ display: flex;+ flex-direction: column;+ align-items: flex-end;+ line-height: 1.2;+}+.pe-fit-amt {+ font-size: var(--text-lg, 1.236rem);+ font-weight: var(--weight-bold, 700);+ color: var(--pe-chain);+ font-variant-numeric: tabular-nums;+}+.pe-fit-cur {+ font-size: var(--text-2xs, 0.6875rem);+ color: var(--ink-faint, #6e7583);+}++.pe-steps {+ margin: 0 0 16px;+ padding-left: 20px;+ display: grid;+ gap: 8px;+ font-size: var(--text-ui, 0.875rem);+ line-height: var(--leading-normal, 1.618);+ color: var(--ink-dim, #9aa1ad);+}+.pe-steps strong {+ color: var(--ink-bright, #fff);+ font-weight: var(--weight-semibold, 600);+}++.pe-splitbar {+ display: flex;+ overflow: hidden;+ border-radius: var(--radius-pill, 999px);+ border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1));+}+.pe-splitbar-seg {+ width: var(--w, 50%);+ padding: 8px 12px;+ font-size: var(--text-2xs, 0.6875rem);+ font-weight: var(--weight-semibold, 600);+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ text-align: center;+}+.pe-splitbar-rewards {+ background: color-mix(in srgb, var(--pe-chain) 24%, transparent);+ color: var(--pe-chain);+}+.pe-splitbar-treasury {+ background: color-mix(in srgb, var(--pe-cash) 24%, transparent);+ color: var(--pe-cash);+}++/* --- stats + odds -------------------------------------------------------- */++.pe-stats {+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));+ gap: 12px;+ margin-bottom: 18px;+}+.pe-stat {+ padding: 16px;+ border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1));+ border-radius: var(--radius-md, 10px);+ background: var(--surface-1, rgba(255, 255, 255, 0.03));+}+.pe-stat-value {+ font-size: var(--text-xl, 1.618rem);+ font-weight: var(--weight-bold, 700);+ color: var(--ink-bright, #fff);+ line-height: 1.1;+ font-variant-numeric: tabular-nums;+}+.pe-stat-label {+ margin-top: 4px;+ font-size: var(--text-md, 0.8125rem);+ font-weight: var(--weight-medium, 500);+ color: var(--ink, #d8d8d8);+}+.pe-stat-hint {+ margin-top: 2px;+ font-size: var(--text-2xs, 0.6875rem);+ color: var(--ink-faint, #6e7583);+}++.pe-odds {+ display: flex;+ align-items: center;+ gap: 10px;+ min-width: 160px;+}+.pe-odds-bar {+ flex: 1 1 auto;+ height: 6px;+ border-radius: var(--radius-pill, 999px);+ background: var(--surface-3, rgba(255, 255, 255, 0.08));+ overflow: hidden;+}+.pe-odds-fill {+ display: block;+ width: var(--w, 0%);+ height: 100%;+ border-radius: inherit;+ background: var(--pe-grad);+}+.pe-odds-num {+ flex: 0 0 auto;+ font-size: var(--text-2xs, 0.6875rem);+ color: var(--ink-dim, #9aa1ad);+ font-variant-numeric: tabular-nums;+}++/* --- loading + error ----------------------------------------------------- */++.pe-skel-wrap {+ display: grid;+ gap: 16px;+ margin-top: clamp(36px, 6vw, 64px);+}+.pe-skel {+ height: var(--h, 120px);+ border-radius: var(--radius-lg, 14px);+ border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));+ background: linear-gradient(+ 90deg,+ var(--surface-1, rgba(255, 255, 255, 0.03)) 25%,+ var(--surface-2, rgba(255, 255, 255, 0.06)) 37%,+ var(--surface-1, rgba(255, 255, 255, 0.03)) 63%+ );+ background-size: 400% 100%;+ animation: pe-shimmer 1.4s ease-in-out infinite;+}+@keyframes pe-shimmer {+ 0% {+ background-position: 100% 50%;+ }+ 100% {+ background-position: 0 50%;+ }+}+@media (prefers-reduced-motion: reduce) {+ .pe-skel {+ animation: none;+ }+ .pe-btn,+ .pe-cur,+ .pe-fit {+ transition: none;+ }+}++.pe-error {+ margin-top: clamp(36px, 6vw, 64px);+ padding: clamp(20px, 4vw, 32px);+ border: 1px solid color-mix(in srgb, var(--danger, #e5484d) 34%, transparent);+ border-radius: var(--radius-lg, 14px);+ background: color-mix(in srgb, var(--danger, #e5484d) 7%, transparent);+}+.pe-error-actions {+ display: flex;+ flex-wrap: wrap;+ gap: 10px;+ margin-top: 16px;+}++.pe-fineprint {+ max-width: 78ch;+ margin: clamp(40px, 6vw, 64px) 0 0;+ font-size: var(--text-md, 0.8125rem);+ line-height: var(--leading-normal, 1.618);+ color: var(--ink-faint, #6e7583);+}+.pe-fineprint a {+ color: var(--ink-dim, #9aa1ad);+ text-decoration: underline;+ text-underline-offset: 2px;+}+.pe-fineprint a:hover {+ color: var(--ink-bright, #fff);+}++/* Screen-reader-only live region: the load status is announced, never shown. */+.pe-sr {+ position: absolute;+ width: 1px;+ height: 1px;+ padding: 0;+ margin: -1px;+ overflow: hidden;+ clip: rect(0, 0, 0, 0);+ white-space: nowrap;+ border: 0;+}diff --git a/src/runtime/animation-slots.js b/src/runtime/animation-slots.jsindex b120e4fe1..6e84b3076 100644--- a/src/runtime/animation-slots.js+++ b/src/runtime/animation-slots.js@@ -1,6 +1,15 @@// Fixed slot vocabulary for agent animation gestures.-// Each slot maps to a clip name from the loaded animation library.-// Agents can override individual slots via meta.edits.animations.+//+// Two layers live here:+//+// 1. SLOTS + DEFAULT_ANIMATION_MAP — the slot names an agent may override+// (meta.edits.animations) and the clip each one resolves to by default.+// Every value is a real baked clip in public/animations/manifest.json;+// tests/animation-slots.test.js fails the build if one drifts.+// 2. HINT_ALIASES + resolveHint — the skill-side vocabulary. Skills declare+// `animationHint: '<name>'` (src/agent-skills*.js) and the avatar plays+// the matching slot. Hints that are not slot names (the `gesture-*`+// family) alias onto one, so a hint can never resolve to nothing.export const SLOTS = ['idle',@@ -15,25 +24,64 @@ export const SLOTS = ['shrug','fidget','dance',+ 'inspect',+ 'present',+ 'sign',+ 'curiosity',+ 'patience',+ 'manipulate',+ 'conjure',];export const DEFAULT_ANIMATION_MAP = {idle: 'idle',- wave: 'reaction',- nod: 'reaction',- shake: 'angry',- think: 'pray',+ // wave/nod/point/think/shrug each have a dedicated Mixamo clip in the+ // manifest. They used to borrow `reaction`/`pray`/`defeated` because the+ // dedicated clips had not been baked yet; the borrowed mappings outlived+ // their reason and left five real clips unreachable (registry.json+ // resolved_issues: wave-slot-mismatch).+ wave: 'wave',+ nod: 'nod',+ // A "no" is a head shake, not a 19-second angry gesture. xbot-head-shake is+ // the only baked head-shake clip and retargets like any other (the walk+ // state machine already plays it for `disagree`).+ shake: 'xbot-head-shake',+ think: 'think',celebrate: 'celebrate',concern: 'defeated',+ // No bow clip is baked yet, so this stays an approximation: `sitclap` reads+ // as gratitude/applause. Tracked in registry.json known_issues (bow-slot-+ // approximation) with the Mixamo source to add.bow: 'sitclap',- point: 'reaction',- shrug: 'defeated',+ point: 'point',+ shrug: 'shrug',// Was 'Fidget' — no such clip exists (case mismatch against the lowercase// manifest names too), so the slot silently no-op'd on every agent that hit// it. av-waiting is a real baked idle-fidget loop (see registry.json// known_issues: broken-fidget-slot).fidget: 'av-waiting',dance: 'rumba',+ // Skill-driven slots. Each one exists because a skill emits the matching+ // hint; before they were slots those hints hit no clip and no-op'd silently.+ inspect: 'lookdown',+ present: 'av-brag-claps',+ sign: 'xbot-agree',+ curiosity: 'av-spy',+ patience: 'av-waiting',+ manipulate: 'av-push-block',+ conjure: 'av-conductor',+};++const SLOT_SET = new Set(SLOTS);++/**+ * Skill hint → slot, for hints that are not slot names themselves.+ * The `gesture-*` family is namespaced by intent in src/agent-skills-scene.js.+ */+export const HINT_ALIASES = {+ gesture: 'point',+ 'gesture-magic': 'conjure',+ 'gesture-manipulate': 'manipulate',};/**@@ -48,3 +96,26 @@ export function resolveSlot(slot, overrideMap) {if (overrideMap && overrideMap[slot]) return overrideMap[slot];return DEFAULT_ANIMATION_MAP[slot] ?? slot;}++/**+ * Resolve a skill's `animationHint` to a slot name.+ *+ * Exact slot names pass through, known aliases map onto a slot, and an unknown+ * namespaced hint falls back to its family (`gesture-foo` → the `gesture`+ * alias) so a new hint in that family animates instead of no-oping. Returns+ * null when nothing matches, which callers treat as "play nothing" rather than+ * guessing a wrong clip.+ *+ * @param {string} hint+ * @returns {string|null} slot name, or null if the hint maps to no slot+ */+export function resolveHint(hint) {+ const key = String(hint || '').trim().toLowerCase();+ if (!key) return null;+ if (SLOT_SET.has(key)) return key;+ if (HINT_ALIASES[key]) return HINT_ALIASES[key];+ const family = key.split('-')[0];+ if (SLOT_SET.has(family)) return family;+ if (HINT_ALIASES[family]) return HINT_ALIASES[family];+ return null;+}diff --git a/src/trading-hub-data.js b/src/trading-hub-data.jsnew file mode 100644index 000000000..d4f743952--- /dev/null+++ b/src/trading-hub-data.js@@ -0,0 +1,140 @@+// The surface and doc directory rendered on /trading.+//+// This exists because the autonomous trading system grew to roughly twenty+// pages with no front door: each surface was reachable only if you already knew+// its URL. Keeping the directory as data (rather than inline markup) means the+// set is enumerable, so a test can assert every href resolves to a real route+// and the map cannot silently rot when a page is renamed.+//+// Every `href` below must be a live three.ws path. tests/trading-hub.test.js+// enforces that against data/pages.json and the docs directory.++/** @typedef {{kicker: string, title: string, body: string, href: string}} DirectoryItem */++/** Product surfaces: where to watch, tune, and act on the fleet. @type {DirectoryItem[]} */+export const SURFACES = [+ {+ kicker: 'Watch',+ title: 'Sniper Arena',+ body: 'The live floor. Every agent, every open position, and every entry and exit as it lands.',+ href: '/play/arena',+ },+ {+ kicker: 'Compare',+ title: 'Sniper Experiments',+ body: 'Rule shields against oracle gates against language-model judgment, scored on the same market.',+ href: '/sniper/experiments',+ },+ {+ kicker: 'Rank',+ title: 'Trader Leaderboard',+ body: 'Realized profit and loss per agent with win rate, profit factor, and drawdown.',+ href: '/leaderboard',+ },+ {+ kicker: 'Read',+ title: 'Live Trade Feed',+ body: 'Notable exits as they close, with hold time, exit multiple, and a link to the transaction.',+ href: '/trades',+ },+ {+ kicker: 'Follow',+ title: 'Smart Money Radar',+ body: 'The wallets that consistently win, and what they are buying right now.',+ href: '/smart-money',+ },+ {+ kicker: 'Scan',+ title: 'Coin Radar',+ body: 'Launches as they cross the feed, filtered by the same signals the fleet scores on.',+ href: '/radar',+ },+ {+ kicker: 'Mirror',+ title: 'Copy Trading',+ body: 'Point your own wallet at an agent and follow its entries and exits automatically.',+ href: '/mirror',+ },+ {+ kicker: 'Build',+ title: 'Strategy Lab',+ body: 'Compose entry and exit rules into a strategy object, then backtest it before arming.',+ href: '/strategy-lab',+ },+ {+ kicker: 'Automate',+ title: 'Coin Autopilot',+ body: 'Hands-off buyback, burn, and holder payouts for a coin you launched.',+ href: '/autopilot',+ },+ {+ kicker: 'Back',+ title: 'Agent Vaults',+ body: 'Stake behind an agent you believe in and share what its strategy earns.',+ href: '/vaults',+ },+ {+ kicker: 'Research',+ title: 'Coin Intelligence',+ body: 'Holder concentration, bundle and sniper detection, and creator history for any mint.',+ href: '/coin-intel',+ },+ {+ kicker: 'Claim',+ title: 'Trader Card',+ body: 'Verify your own wallet and publish a provable track record.',+ href: '/claim-wallet',+ },+];++/** Documentation and tutorials. @type {DirectoryItem[]} */+export const LEARN = [+ {+ kicker: 'Start here',+ title: 'Agent Sniper',+ body: 'What the autonomous trader is, what it can and cannot do, and how it is wired.',+ href: '/docs/agent-sniper',+ },+ {+ kicker: 'Tutorial',+ title: 'Arm your first agent',+ body: 'Step by step, from an empty wallet to an armed strategy with conservative caps.',+ href: '/tutorials/arm-an-agent-sniper',+ },+ {+ kicker: 'Method',+ title: 'The 10 SOL experiment',+ body: 'The full risk policy: entry band, position sizing, taking initials, and the moon bag.',+ href: '/docs/trading-experiment',+ },+ {+ kicker: 'Policy',+ title: 'Risk acknowledgment',+ body: 'What can go wrong, stated plainly. Read this before arming anything with real funds.',+ href: '/docs/risk-acknowledgment',+ },+ {+ kicker: 'Trust',+ title: 'Custody model',+ body: 'How an agent holds its own keys, and what the platform can and cannot do with them.',+ href: '/docs/custody',+ },+ {+ kicker: 'Autonomy',+ title: 'Earned autonomy',+ body: 'How much freedom an agent gets, and what it has to prove to earn more.',+ href: '/docs/sniper-autonomy',+ },+ {+ kicker: 'Market making',+ title: 'Trading Copilot',+ body: 'The rules-based, non-manipulative market maker behind a fair launch.',+ href: '/docs/trading-copilot',+ },+ {+ kicker: 'Reference',+ title: 'Strategy Objects',+ body: 'The composable schema every armed strategy compiles down to.',+ href: '/docs/strategy-objects',+ },+];diff --git a/tests/payment-session-governor.test.js b/tests/payment-session-governor.test.jsnew file mode 100644index 000000000..597be2771--- /dev/null+++ b/tests/payment-session-governor.test.js@@ -0,0 +1,575 @@+/**+ * Agent Payment Sessions — the spend governor, pinned.+ *+ * A payment session is the only thing standing between an autonomous agent and a+ * funded wallet: the agent holds a bearer token, never a key, and every payment it+ * proposes has to clear this module first. That makes `reserveSessionSpend` a money+ * chokepoint, and a bug in it fails toward MORE spend, not less. Nothing here was+ * covered by a test before this file.+ *+ * What is pinned:+ * - token format parsing rejects everything that is not `pss_<uuid>_<random>`,+ * - the HMAC is keyed off env.PAYMENT_SESSION_SECRET (the var operators actually+ * set), and a token that does not hash to the stored value is rejected,+ * - the five policy phases run in order and each returns its own error code,+ * - the allowlist matches a bare host and its real subdomains and REFUSES the+ * suffix lookalike (`evil-example.com` against an `example.com` entry),+ * - the atomic reservation is race-safe: two concurrent payments that each fit+ * but do not fit together produce exactly one winner,+ * - a session that consumes its last cent flips to `exhausted`,+ * - rollback restores budget, clamps at zero, and revives an exhausted session,+ * - recordExecution derives endpoint_host and is idempotent per idempotency_key.+ *+ * The SQL is executed against an in-memory table whose UPDATE applies the same+ * predicates the real statements carry (including `(budget_usdc - spent_usdc) >=+ * amount`), so the orchestration and the race are genuinely exercised. It is not a+ * substitute for Postgres row locking, which is what makes the real statement+ * atomic; that guarantee lives in the single-statement form of the UPDATE and is+ * asserted structurally at the bottom of this file.+ */++import { describe, it, expect, beforeAll, beforeEach, vi } from 'vitest';+import { readFileSync } from 'node:fs';+import { createHmac } from 'node:crypto';++process.env.PAYMENT_SESSION_SECRET = 'test-payment-session-secret';++// ── In-memory payment_sessions / payment_session_executions ──────────────────+//+// The fake `sql` tag routes on the distinctive text of each statement the governor+// issues and applies that statement's real semantics to the store. Statements run+// one at a time (JS is single-threaded between awaits), which is precisely the+// serialization Postgres row locking provides for the reservation UPDATE.+const store = { sessions: new Map(), executions: [] };++function normalizeSql(strings) {+ return strings.join(' ? ').replace(/\s+/g, ' ').trim();+}++function runStatement(text, values) {+ // verifySessionToken: lookup by id + token hash+ if (text.startsWith('SELECT id, user_id, agent_id')) {+ const [id, hash] = values;+ const row = store.sessions.get(id);+ return row && row.token_hash === hash ? [{ ...row }] : [];+ }++ // reserveSessionSpend phase 3: mark an already-expired session+ if (text.includes("SET status = 'expired'")) {+ const [id] = values;+ const row = store.sessions.get(id);+ if (row && row.status === 'active') row.status = 'expired';+ return [];+ }++ // reserveSessionSpend phase 6: the atomic reservation+ if (text.includes('SET spent_usdc = spent_usdc + ')) {+ const [amount, id, guardAmount] = values;+ const row = store.sessions.get(id);+ if (!row) return [];+ const fits = BigInt(row.budget_usdc) - BigInt(row.spent_usdc) >= BigInt(guardAmount);+ if (row.status !== 'active' || !fits) return [];+ row.spent_usdc = (BigInt(row.spent_usdc) + BigInt(amount)).toString();+ return [{ id: row.id, spent_usdc: row.spent_usdc, budget_usdc: row.budget_usdc }];+ }++ // reserveSessionSpend: precise-error read after a lost race+ if (text.startsWith('SELECT budget_usdc, spent_usdc')) {+ const [id] = values;+ const row = store.sessions.get(id);+ return row ? [{ budget_usdc: row.budget_usdc, spent_usdc: row.spent_usdc }] : [];+ }++ // reserveSessionSpend: flip a fully consumed session+ if (text.includes("SET status = 'exhausted'")) {+ const [id] = values;+ const row = store.sessions.get(id);+ if (row && row.status === 'active') row.status = 'exhausted';+ return [];+ }++ // rollbackReservation+ if (text.includes('greatest(0, spent_usdc - ')) {+ const [amount, id] = values;+ const row = store.sessions.get(id);+ if (!row || !['active', 'exhausted'].includes(row.status)) return [];+ const next = BigInt(row.spent_usdc) - BigInt(amount);+ row.spent_usdc = (next < 0n ? 0n : next).toString();+ if (row.status === 'exhausted') row.status = 'active';+ return [];+ }++ // recordExecution+ if (text.startsWith('INSERT INTO payment_session_executions')) {+ const [sessionId, userId, endpointUrl, host, method, amount, network, txHash,+ payer, payee, status, errorCode, errorMessage, responseBody, durationMs, idem] = values;+ if (idem != null && store.executions.some((e) => e.idempotency_key === idem)) return [];+ store.executions.push({+ session_id: sessionId, user_id: userId, endpoint_url: endpointUrl,+ endpoint_host: host, method, amount_usdc: amount, network, tx_hash: txHash,+ payer_address: payer, payee_address: payee, status, error_code: errorCode,+ error_message: errorMessage, response_body: responseBody,+ duration_ms: durationMs, idempotency_key: idem,+ });+ return [];+ }++ throw new Error(`unrouted SQL in test fake: ${text.slice(0, 90)}`);+}++vi.mock('../api/_lib/db.js', () => ({+ sql: (strings, ...values) => Promise.resolve(runStatement(normalizeSql(strings), values)),+ isDbUnavailableError: () => false,+ isDbCapacityError: () => false,+}));++const {+ usdToAtomics, atomicsToUsd, hashToken, extractSessionId, normalizeHost,+ generateSessionToken, verifySessionToken, reserveSessionSpend,+ rollbackReservation, recordExecution, SpendGovernorError,+} = await import('../api/_lib/pay/spend-governor.js');++const SESSION_ID = '11111111-2222-4333-8444-555555555555';+const HOUR = 3600 * 1000;++function seedSession(partial = {}) {+ const token = partial.token ?? generateSessionToken(partial.id ?? SESSION_ID);+ const row = {+ id: partial.id ?? SESSION_ID,+ user_id: 'user-1',+ agent_id: null,+ label: 'test session',+ budget_usdc: String(partial.budget_usdc ?? 1_000_000), // $1.00+ spent_usdc: String(partial.spent_usdc ?? 0),+ max_per_tx_usdc: partial.max_per_tx_usdc ?? null,+ allowed_hosts: partial.allowed_hosts ?? [],+ network: 'solana',+ connector_ref: null,+ status: partial.status ?? 'active',+ expires_at: new Date(Date.now() + (partial.ttlMs ?? HOUR)).toISOString(),+ session_metadata: {},+ token_hash: hashToken(token),+ };+ store.sessions.set(row.id, row);+ return { token, row };+}++async function expectGovernorError(promise, code) {+ await expect(promise).rejects.toBeInstanceOf(SpendGovernorError);+ await promise.catch((err) => expect(err.code).toBe(code));+}++beforeEach(() => {+ store.sessions.clear();+ store.executions.length = 0;+});++// ── Money arithmetic ─────────────────────────────────────────────────────────++describe('USDC atomics', () => {+ it('converts dollars to 6-decimal atomic units', () => {+ expect(usdToAtomics(1)).toBe(1_000_000n);+ expect(usdToAtomics(0.01)).toBe(10_000n);+ expect(usdToAtomics(0.000001)).toBe(1n);+ });++ it('rounds to the nearest atom rather than truncating toward zero', () => {+ // $0.0000005 is half an atom. Truncation would silently price it at zero,+ // which would let a caller buy an unlimited number of free sub-atom calls.+ expect(usdToAtomics(0.0000005)).toBe(1n);+ expect(usdToAtomics(0.0000004)).toBe(0n);+ });++ it('round-trips a realistic micropayment', () => {+ expect(atomicsToUsd(usdToAtomics(0.05))).toBeCloseTo(0.05, 9);+ });+});++// ── Token handling ───────────────────────────────────────────────────────────++describe('session tokens', () => {+ it('mints a prefixed token that carries its own session id', () => {+ const token = generateSessionToken(SESSION_ID);+ expect(token.startsWith('pss_')).toBe(true);+ expect(extractSessionId(token)).toBe(SESSION_ID);+ });++ it('refuses every malformed token shape', () => {+ for (const bad of [+ '', null, undefined,+ 'not-a-token',+ SESSION_ID, // bare uuid, no prefix+ `sk_${SESSION_ID}_abc`, // wrong prefix+ `pss_${SESSION_ID}`, // no random segment+ `pss_${SESSION_ID.slice(0, 20)}_abc`, // short uuid+ `pss_${SESSION_ID}-abc`, // wrong separator+ ]) {+ expect(extractSessionId(bad)).toBeNull();+ }+ });++ it('hashes with the configured PAYMENT_SESSION_SECRET', () => {+ // Pins the bug this file was written after: env.PAYMENT_SESSION_SECRET did not+ // exist on the env object, so an operator setting it got a token keyed off an+ // unrelated secret and rotating that unrelated secret revoked every session.+ const token = generateSessionToken(SESSION_ID);+ const expected = createHmac('sha256', 'test-payment-session-secret')+ .update(token).digest('hex');+ expect(hashToken(token)).toBe(expected);+ });++ it('rejects a token whose hash does not match the stored session', async () => {+ seedSession();+ const forged = generateSessionToken(SESSION_ID);+ await expectGovernorError(verifySessionToken(forged), 'invalid_token');+ });++ it('rejects a structurally invalid token before any DB read', async () => {+ await expectGovernorError(verifySessionToken('garbage'), 'invalid_token');+ });++ it('maps each governance code to the right HTTP status', () => {+ expect(new SpendGovernorError('invalid_token', 'x').status).toBe(401);+ expect(new SpendGovernorError('session_not_found', 'x').status).toBe(404);+ expect(new SpendGovernorError('allowlist_blocked', 'x').status).toBe(403);+ expect(new SpendGovernorError('per_tx_exceeded', 'x').status).toBe(402);+ expect(new SpendGovernorError('insufficient_budget', 'x').status).toBe(402);+ // An unmapped code must not fall through to 200 or 500.+ expect(new SpendGovernorError('something_new', 'x').status).toBe(403);+ });+});++// ── Host normalization and the allowlist ─────────────────────────────────────++describe('normalizeHost', () => {+ it('reduces any URL shape to a bare lowercase hostname', () => {+ expect(normalizeHost('HTTPS://Api.Example.COM:443/v1/data?k=1')).toBe('api.example.com');+ expect(normalizeHost('api.example.com')).toBe('api.example.com');+ expect(normalizeHost(' Api.Example.com ')).toBe('api.example.com');+ expect(normalizeHost('api.example.com/path')).toBe('api.example.com');+ });++ it('returns empty for blank input rather than a truthy placeholder', () => {+ expect(normalizeHost('')).toBe('');+ expect(normalizeHost(null)).toBe('');+ expect(normalizeHost(' ')).toBe('');+ });+});++describe('allowlist enforcement', () => {+ it('allows the exact host', async () => {+ const { token } = seedSession({ allowed_hosts: ['api.example.com'] });+ const { session } = await reserveSessionSpend({+ token, url: 'https://api.example.com/data', amountAtomics: 10_000n,+ });+ expect(session.spent_usdc).toBe('10000');+ });++ it('allows a real subdomain of an allowlisted apex', async () => {+ const { token } = seedSession({ allowed_hosts: ['example.com'] });+ await expect(reserveSessionSpend({+ token, url: 'https://api.example.com/data', amountAtomics: 10_000n,+ })).resolves.toBeTruthy();+ });++ it('refuses a suffix lookalike that is not a subdomain', async () => {+ // The bug this guards: endsWith(host) instead of endsWith('.' + host) would+ // let anyone who registers evil-example.com collect payments from a session+ // whose owner only ever approved example.com.+ const { token } = seedSession({ allowed_hosts: ['example.com'] });+ await expectGovernorError(reserveSessionSpend({+ token, url: 'https://evil-example.com/data', amountAtomics: 10_000n,+ }), 'allowlist_blocked');+ });++ it('refuses an unrelated host', async () => {+ const { token } = seedSession({ allowed_hosts: ['example.com'] });+ await expectGovernorError(reserveSessionSpend({+ token, url: 'https://attacker.test/data', amountAtomics: 10_000n,+ }), 'allowlist_blocked');+ });++ it('compares case- and port-insensitively', async () => {+ const { token } = seedSession({ allowed_hosts: ['HTTPS://API.Example.com:443/'] });+ await expect(reserveSessionSpend({+ token, url: 'https://api.example.com/data', amountAtomics: 10_000n,+ })).resolves.toBeTruthy();+ });++ it('refuses an unparseable target URL instead of defaulting to allow', async () => {+ const { token } = seedSession({ allowed_hosts: ['example.com'] });+ await expectGovernorError(reserveSessionSpend({+ token, url: 'not a url', amountAtomics: 10_000n,+ }), 'allowlist_blocked');+ });++ it('treats an empty allowlist as no host restriction', async () => {+ const { token } = seedSession({ allowed_hosts: [] });+ await expect(reserveSessionSpend({+ token, url: 'https://anything.test/data', amountAtomics: 10_000n,+ })).resolves.toBeTruthy();+ });++ it('does not charge the session when the allowlist rejects', async () => {+ const { token, row } = seedSession({ allowed_hosts: ['example.com'] });+ await reserveSessionSpend({+ token, url: 'https://attacker.test/x', amountAtomics: 10_000n,+ }).catch(() => {});+ expect(store.sessions.get(row.id).spent_usdc).toBe('0');+ });+});++// ── Session state ────────────────────────────────────────────────────────────++describe('session state gates', () => {+ for (const status of ['exhausted', 'cancelled', 'expired']) {+ it(`refuses a ${status} session`, async () => {+ const { token } = seedSession({ status });+ await expectGovernorError(reserveSessionSpend({+ token, url: 'https://api.example.com/x', amountAtomics: 10_000n,+ }), 'session_inactive');+ });+ }++ it('refuses a session past its expiry and marks the row expired', async () => {+ const { token, row } = seedSession({ ttlMs: -1000 });+ await expectGovernorError(reserveSessionSpend({+ token, url: 'https://api.example.com/x', amountAtomics: 10_000n,+ }), 'session_expired');+ // The sweep runs every 5 minutes; the governor must not wait for it.+ expect(store.sessions.get(row.id).status).toBe('expired');+ });+});++// ── Per-transaction ceiling ──────────────────────────────────────────────────++describe('per-transaction ceiling', () => {+ it('refuses a payment over the cap', async () => {+ const { token } = seedSession({ max_per_tx_usdc: '50000' }); // $0.05+ await expectGovernorError(reserveSessionSpend({+ token, url: 'https://api.example.com/x', amountAtomics: 60_000n,+ }), 'per_tx_exceeded');+ });++ it('allows a payment exactly at the cap', async () => {+ const { token } = seedSession({ max_per_tx_usdc: '50000' });+ await expect(reserveSessionSpend({+ token, url: 'https://api.example.com/x', amountAtomics: 50_000n,+ })).resolves.toBeTruthy();+ });++ it('reports both the amount and the cap so the agent can adapt', async () => {+ const { token } = seedSession({ max_per_tx_usdc: '50000' });+ await reserveSessionSpend({+ token, url: 'https://api.example.com/x', amountAtomics: 60_000n,+ }).catch((err) => {+ expect(err.detail).toEqual({ amount_usd: 0.06, cap_usd: 0.05 });+ });+ });++ it('treats a null cap as unlimited per transaction', async () => {+ const { token } = seedSession({ max_per_tx_usdc: null });+ await expect(reserveSessionSpend({+ token, url: 'https://api.example.com/x', amountAtomics: 999_999n,+ })).resolves.toBeTruthy();+ });+});++// ── Budget: the part that decides whether money is real ──────────────────────++describe('atomic budget reservation', () => {+ it('debits the session on a successful reservation', async () => {+ const { token, row } = seedSession({ budget_usdc: '1000000' });+ await reserveSessionSpend({ token, url: 'https://a.test/x', amountAtomics: 250_000n });+ expect(store.sessions.get(row.id).spent_usdc).toBe('250000');+ });++ it('refuses a payment larger than the remaining budget', async () => {+ const { token } = seedSession({ budget_usdc: '1000000', spent_usdc: '900000' });+ await expectGovernorError(reserveSessionSpend({+ token, url: 'https://a.test/x', amountAtomics: 200_000n,+ }), 'insufficient_budget');+ });++ it('reports need and remaining so the caller can right-size a retry', async () => {+ const { token } = seedSession({ budget_usdc: '1000000', spent_usdc: '900000' });+ await reserveSessionSpend({+ token, url: 'https://a.test/x', amountAtomics: 200_000n,+ }).catch((err) => {+ expect(err.detail).toEqual({ need_usd: 0.2, remaining_usd: 0.1 });+ });+ });++ it('allows a payment that exactly drains the budget', async () => {+ const { token, row } = seedSession({ budget_usdc: '1000000' });+ await expect(reserveSessionSpend({+ token, url: 'https://a.test/x', amountAtomics: 1_000_000n,+ })).resolves.toBeTruthy();+ expect(store.sessions.get(row.id).spent_usdc).toBe('1000000');+ });++ it('flips a fully consumed session to exhausted', async () => {+ const { token, row } = seedSession({ budget_usdc: '1000000' });+ await reserveSessionSpend({ token, url: 'https://a.test/x', amountAtomics: 1_000_000n });+ expect(store.sessions.get(row.id).status).toBe('exhausted');+ });++ it('leaves a partially spent session active', async () => {+ const { token, row } = seedSession({ budget_usdc: '1000000' });+ await reserveSessionSpend({ token, url: 'https://a.test/x', amountAtomics: 999_999n });+ expect(store.sessions.get(row.id).status).toBe('active');+ });++ it('lets exactly one of two concurrent payments win when only one fits', async () => {+ // The overdraft this prevents: with a read-then-write check both callers read+ // $1.00 remaining, both decide $0.80 fits, and the session ends $0.60 in the+ // red. The reservation is a single predicated UPDATE, so the loser sees the+ // winner's committed spend.+ const { token, row } = seedSession({ budget_usdc: '1000000' });+ const pay = () => reserveSessionSpend({+ token, url: 'https://a.test/x', amountAtomics: 800_000n,+ }).then(() => 'ok', (err) => err.code);++ const results = await Promise.all([pay(), pay()]);++ expect(results.filter((r) => r === 'ok')).toHaveLength(1);+ expect(results.filter((r) => r === 'insufficient_budget')).toHaveLength(1);+ expect(store.sessions.get(row.id).spent_usdc).toBe('800000');+ });++ it('lets both concurrent payments through when both fit', async () => {+ const { token, row } = seedSession({ budget_usdc: '1000000' });+ const pay = () => reserveSessionSpend({+ token, url: 'https://a.test/x', amountAtomics: 400_000n,+ }).then(() => 'ok', (err) => err.code);++ expect(await Promise.all([pay(), pay()])).toEqual(['ok', 'ok']);+ expect(store.sessions.get(row.id).spent_usdc).toBe('800000');+ });++ it('never lets ten concurrent payments exceed the budget', async () => {+ const { token, row } = seedSession({ budget_usdc: '1000000' });+ const results = await Promise.all(Array.from({ length: 10 }, () =>+ reserveSessionSpend({ token, url: 'https://a.test/x', amountAtomics: 300_000n })+ .then(() => 'ok', (err) => err.code)));++ expect(results.filter((r) => r === 'ok')).toHaveLength(3); // 3 x $0.30 fits in $1.00+ expect(BigInt(store.sessions.get(row.id).spent_usdc))+ .toBeLessThanOrEqual(BigInt(row.budget_usdc));+ });+});++// ── Rollback ─────────────────────────────────────────────────────────────────++describe('rollbackReservation', () => {+ it('returns the reserved amount to the budget', async () => {+ const { token, row } = seedSession({ budget_usdc: '1000000' });+ await reserveSessionSpend({ token, url: 'https://a.test/x', amountAtomics: 250_000n });+ await rollbackReservation(row.id, 250_000n);+ expect(store.sessions.get(row.id).spent_usdc).toBe('0');+ });++ it('revives a session that rollback un-exhausts', async () => {+ const { token, row } = seedSession({ budget_usdc: '1000000' });+ await reserveSessionSpend({ token, url: 'https://a.test/x', amountAtomics: 1_000_000n });+ expect(store.sessions.get(row.id).status).toBe('exhausted');++ await rollbackReservation(row.id, 1_000_000n);+ const after = store.sessions.get(row.id);+ expect(after.spent_usdc).toBe('0');+ expect(after.status).toBe('active');+ });++ it('clamps at zero so an over-rollback cannot mint budget', async () => {+ const { row } = seedSession({ budget_usdc: '1000000', spent_usdc: '100000' });+ await rollbackReservation(row.id, 500_000n);+ expect(store.sessions.get(row.id).spent_usdc).toBe('0');+ });++ it('does not resurrect a cancelled session', async () => {+ const { row } = seedSession({ status: 'cancelled', spent_usdc: '100000' });+ await rollbackReservation(row.id, 100_000n);+ const after = store.sessions.get(row.id);+ expect(after.status).toBe('cancelled');+ expect(after.spent_usdc).toBe('100000');+ });+});++// ── Execution log ────────────────────────────────────────────────────────────++describe('recordExecution', () => {+ const base = {+ sessionId: SESSION_ID, userId: 'user-1', method: 'GET',+ amountAtomics: 50_000n, network: 'solana', status: 'settled',+ };++ it('derives endpoint_host from the URL for per-host reporting', async () => {+ await recordExecution({ ...base, endpointUrl: 'https://api.example.com/v1/data?k=1' });+ expect(store.executions[0].endpoint_host).toBe('api.example.com');+ });++ it('stores an empty host rather than throwing on an unparseable URL', async () => {+ await recordExecution({ ...base, endpointUrl: 'not a url' });+ expect(store.executions[0].endpoint_host).toBe('');+ });++ it('serializes the amount as an atomic-unit string', async () => {+ await recordExecution({ ...base, endpointUrl: 'https://a.test/x' });+ expect(store.executions[0].amount_usdc).toBe('50000');+ });++ it('writes one row per idempotency key, so a retry cannot double-bill', async () => {+ const row = { ...base, endpointUrl: 'https://a.test/x', idempotencyKey: 'run-42' };+ await recordExecution(row);+ await recordExecution(row);+ expect(store.executions).toHaveLength(1);+ });++ it('still records unkeyed executions individually', async () => {+ const row = { ...base, endpointUrl: 'https://a.test/x' };+ await recordExecution(row);+ await recordExecution(row);+ expect(store.executions).toHaveLength(2);+ });++ it('records a failed settlement with its error code for the audit trail', async () => {+ await recordExecution({+ ...base, endpointUrl: 'https://a.test/x', status: 'failed',+ errorCode: 'settle_uncertain', errorMessage: 'socket hang up',+ });+ expect(store.executions[0]).toMatchObject({+ status: 'failed', error_code: 'settle_uncertain',+ });+ });+});++// ── The atomicity guarantee itself ───────────────────────────────────────────++describe('reservation statement shape', () => {+ // The race-safety above is only real because the check and the increment are one+ // statement. A refactor that splits them into a SELECT then an UPDATE would keep+ // every test above passing against the in-memory store while reintroducing the+ // overdraft against Postgres, so the shape is pinned directly.+ let source;+ beforeAll(() => {+ source = readFileSync(new URL('../api/_lib/pay/spend-governor.js', import.meta.url), 'utf8');+ });++ it('checks the remaining budget inside the UPDATE, not before it', () => {+ const stmt = source.slice(+ source.indexOf('UPDATE payment_sessions\n\t\t\tSET spent_usdc'),+ ).slice(0, 400);+ expect(stmt).toContain('SET spent_usdc = spent_usdc +');+ expect(stmt).toContain('(budget_usdc - spent_usdc) >=');+ expect(stmt).toContain("AND status = 'active'");+ expect(stmt).toContain('RETURNING');+ });++ it('clamps the rollback in SQL rather than in JS', () => {+ expect(source).toContain('greatest(0, spent_usdc - ');+ });++ it('makes the execution log idempotent in SQL', () => {+ expect(source).toContain('ON CONFLICT (idempotency_key) DO NOTHING');+ });+});