Skip to content

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

MCP Studio, viewer, and AR-export updates with tests

nirholasb029887565ed
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fbd0b5807..a099d1de5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -46,6 +46,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Image understanding is more reliable across every image host** — The vision endpoint (used to describe and check 3D renders and avatars) now fetches your image itself and hands it straight to the free model, instead of asking the model's server to go fetch the link. Some image hosts block that server-side fetch, which used to push the request onto a paid fallback and, when that fallback was unavailable, fail outright. Now the free lane serves the request regardless of how the image is hosted, so describe/critique calls stop returning errors on perfectly good images. (`/pulse`) `[fix, improvement]`
- **On-chain reads stay smooth when a data provider hits its daily cap** — The platform reads Solana through a prioritized chain of RPC providers and automatically fails over the instant one is throttled. It now recognizes the specific 'daily request limit reached' signal that metered providers return when a plan's daily quota is spent, and parks that provider for the rest of the day instead of re-checking it every few minutes. On-chain data (balances, prices, live trades) keeps flowing through a healthy provider without a stumble, and the failover leaves the retry chatter behind. A dedicated reserve endpoint was also wired in as deep insurance for the rare case the whole free provider pool is down at once. `[infra, improvement]`
- **Solana price and trade reads now ride a dedicated premium connection** — Every live Solana read the platform depends on (the $THREE price and bonding-curve, wallet balances, agent trades, and on-chain activity) now goes first through a dedicated premium RPC endpoint that absorbs the load ahead of the shared public providers, then falls back automatically down the full free-provider chain if that endpoint is ever unavailable. In practice that means fewer rate-limit stalls and fewer degraded or stale reads when Solana is busy, without adding a single point of failure: if the premium lane blinks, the free chain still answers. (`/pulse`) `[infra, improvement]`
+- **The free 3D Studio now publishes a machine-readable API description** — The free text-to-3D generation endpoint that powers the three.ws 3D Studio in ChatGPT now ships a published OpenAPI description at /.well-known/3d-studio-openapi.yaml. Any app, custom GPT, or agent can read it to discover how to generate a model from a prompt and poll for the result, with no account, no API key, and no payment. It documents only the free generation action and is kept automatically in sync with the version used by the 3D Studio custom GPT, so the two never drift. `[docs, sdk]`
## 2026-07-17
diff --git a/data/changelog.json b/data/changelog.json
index f3edd3b81..cc5fdc700 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-07-18",
+ "title": "The free 3D Studio now publishes a machine-readable API description",
+ "summary": "The free text-to-3D generation endpoint that powers the three.ws 3D Studio in ChatGPT now ships a published OpenAPI description at /.well-known/3d-studio-openapi.yaml. Any app, custom GPT, or agent can read it to discover how to generate a model from a prompt and poll for the result, with no account, no API key, and no payment. It documents only the free generation action and is kept automatically in sync with the version used by the 3D Studio custom GPT, so the two never drift.",
+ "tags": [
+ "docs",
+ "sdk"
+ ]
+ },
{
"date": "2026-07-18",
"title": "On-chain reads stay smooth when a data provider hits its daily cap",
diff --git a/docs/mcp-studio.md b/docs/mcp-studio.md
index b61bc69ad..a2f79c550 100644
--- a/docs/mcp-studio.md
+++ b/docs/mcp-studio.md
@@ -60,6 +60,11 @@ launcher, living avatars, link unfurls) is documented end to end in
## Tools
+The server exposes **nine** tools: the six generation tools documented here, plus
+three persona/embodiment tools (`create_agent_persona`, `get_agent_persona`,
+`persona_say`) documented in the **Embodiment** section below. All nine are free
+and keyless.
+
All six generation tools are free and run operator-funded on the platform's own
generation pipeline. Annotations: `readOnlyHint:false`, `destructiveHint:false`,
`idempotentHint:false`, `openWorldHint:true` (work runs against external model
diff --git a/prompts/store-submissions/_generated/openai-submission.md b/prompts/store-submissions/_generated/openai-submission.md
index 2ba77e699..c28336b77 100644
--- a/prompts/store-submissions/_generated/openai-submission.md
+++ b/prompts/store-submissions/_generated/openai-submission.md
@@ -368,10 +368,23 @@ curl -s -X POST https://three.ws/api/mcp-studio -H 'content-type: application/js
- [x] **B1** cleared — `tools/call forge_free` returns 200 with a GLB (re-verified 2026-07-14, 1.45 MB GLB).
- [x] **B2** cleared — `/viewer?src=<glb>` returns 200 and renders the model (re-verified 2026-07-14).
- [x] Developer identity verified on platform.openai.com (verified organization, 2026-07-14).
-- [x] Support contact + privacy policy confirmed live (2026-07-14).
-- [ ] Screenshots match the form's required dimensions. `[HUMAN verify in the form — 3 real-model shots ready in _generated/openai-screenshots/]`
-- [x] Compliance audit: 7/7 policy items PASS (§2).
-- [x] Listing metadata drafted (§1) — tool list refreshed to the live 9-tool surface 2026-07-14.
+- [x] Support contact + privacy policy confirmed live (2026-07-14); both legal URLs return 200 in the
+ canonical no-`.html` form (`/legal/privacy`, `/legal/tos`), matching the served OpenAPI (2026-07-18).
+- [x] Review surface is the MCP connector metadata, not `/.well-known/ai-plugin.json` (§2.1a, cited);
+ live `initialize` + `tools/list` return `three-ws-3d-studio-free` on protocol `2025-06-18` with the
+ exact 9-tool surface (re-verified live 2026-07-18).
+- [x] App discovery schema served + guarded — `/.well-known/3d-studio-openapi.yaml`, free-only,
+ `security: []`, byte-identical to the custom-GPT Action file, crypto/payment-free
+ (`tests/api/3d-studio-openapi.test.js`).
+- [ ] **Deploy pending** — the served discovery schema and the 2026-07-18 doc/tier/README fixes are
+ committed locally and ship on the next production deploy; `/.well-known/3d-studio-openapi.yaml`
+ returns 404 in prod until then. `[HUMAN: deploy]`
+- [ ] Screenshots — **re-capture the landscape widget shots against the shipped inline widget**
+ (`api/_mcp-studio/component.js`); the earlier standalone-viewer captures were removed as part of
+ collapsing the duplicate viewers. Confirm the form's required dimensions. `[HUMAN]`
+- [x] Compliance audit: 7/7 policy items PASS (§2), with the review-surface separation documented (§2.1a).
+- [x] Listing metadata drafted (§1) — tool list is the live 9-tool surface; `forge_free` tier note
+ corrected to the honest standard default (2026-07-18).
- [x] MCP connectivity documented (§3).
- [x] Reviewer guide written (§5).
- [ ] **Final submit in the portal.** `[HUMAN]`
diff --git a/public/changelog.json b/public/changelog.json
index 1d2cdffc0..9f4e9a608 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-18T00:40:02.697Z",
+ "generated_at": "2026-07-18T01:12:36.992Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -409,6 +409,17 @@
"improvement"
]
},
+ {
+ "date": "2026-07-18",
+ "type": "update",
+ "title": "The free 3D Studio now publishes a machine-readable API description",
+ "summary": "The free text-to-3D generation endpoint that powers the three.ws 3D Studio in ChatGPT now ships a published OpenAPI description at /.well-known/3d-studio-openapi.yaml. Any app, custom GPT, or agent can read it to discover how to generate a model from a prompt and poll for the result, with no account, no API key, and no payment. It documents only the free generation action and is kept automatically in sync with the version used by the 3D Studio custom GPT, so the two never drift.",
+ "link": null,
+ "tags": [
+ "docs",
+ "sdk"
+ ]
+ },
{
"date": "2026-07-17",
"type": "launch",
diff --git a/public/changelog.xml b/public/changelog.xml
index 1ffdf50a5..bd179bfa3 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -326,6 +326,14 @@
<category>infra</category>
<description>Every live Solana read the platform depends on (the $THREE price and bonding-curve, wallet balances, agent trades, and on-chain activity) now goes first through a dedicated premium RPC endpoint that absorbs the load ahead of the shared public providers, then falls back automatically down the full free-provider chain if that endpoint is ever unavailable. In practice that means fewer rate-limit stalls and fewer degraded or stale reads when Solana is busy, without adding a single point of failure: if the premium lane blinks, the free chain still answers.</description>
</item>
+ <item>
+ <title>The free 3D Studio now publishes a machine-readable API description</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-07-18:The free 3D Studio now publishes a machine-readable API description</guid>
+ <pubDate>Sat, 18 Jul 2026 12:00:00 GMT</pubDate>
+ <category>docs</category>
+ <description>The free text-to-3D generation endpoint that powers the three.ws 3D Studio in ChatGPT now ships a published OpenAPI description at /.well-known/3d-studio-openapi.yaml. Any app, custom GPT, or agent can read it to discover how to generate a model from a prompt and poll for the result, with no account, no API key, and no payment. It documents only the free generation action and is kept automatically in sync with the version used by the 3D Studio custom GPT, so the two never drift.</description>
+ </item>
<item>
<title>AR Studio</title>
<link>https://three.ws/ar/studio</link>
diff --git a/public/features.json b/public/features.json
index d2b41f5ec..6061ee354 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-18T00:40:02.682Z",
+ "generated_at": "2026-07-18T01:12:36.978Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/viewer.html b/public/viewer.html
index afdd0f394..9e3114c35 100644
--- a/public/viewer.html
+++ b/public/viewer.html
@@ -12,6 +12,10 @@
<meta property="og:type" content="website" />
<!-- Meshopt decoder must register before <model-viewer> starts loading (Forge GLBs are meshopt-compressed). Classic script → runs during parse, before the model-viewer module. -->
<script src="/model-viewer-meshopt.js"></script>
+<!-- This standalone browser viewer pins model-viewer 4.0.0 with SRI from Google's CDN.
+ The embeddable surfaces (ChatGPT widget api/_mcp-studio/component.js, AR launch
+ api/ar.js) intentionally pin 3.5.0 from jsdelivr instead, matching the other embed
+ bundles. Both are explicit version pins; the split is by surface, not accidental. -->
<script
type="module"
src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"
diff --git a/tests/api/3d-studio-openapi.test.js b/tests/api/3d-studio-openapi.test.js
index 493372eea..ac26b5025 100644
--- a/tests/api/3d-studio-openapi.test.js
+++ b/tests/api/3d-studio-openapi.test.js
@@ -64,3 +64,31 @@ describe('3d-studio-openapi served schema', () => {
expect(match, `served schema leaked a crypto/payment token: ${match?.[0]}`).toBeNull();
});
});
+
+describe('3d-studio Actions responses conform to the served schema', () => {
+ // Bind api/3d/studio.js's real wire output to the GenerationState schema so a
+ // response-shape change and a schema change cannot silently diverge.
+ const allowedKeys = new Set(Object.keys(doc.components.schemas.GenerationState.properties));
+ const validStatus = new Set(doc.components.schemas.GenerationState.properties.status.enum);
+
+ async function shapers() {
+ return import('../../api/3d/studio.js');
+ }
+
+ it('GenerationState allows exactly the keys api/3d/studio.js can emit', async () => {
+ const { shapeSubmit, shapePoll } = await shapers();
+ const outputs = [
+ shapeSubmit({ status: 'done', glb_url: 'https://cdn.example/a.glb' }, 'https://three.ws', 'a fox'),
+ shapeSubmit({ status: 'pending', job_id: 'f1.abc.sig' }, 'https://three.ws', 'a fox'),
+ shapePoll({ status: 'done', glb_url: 'https://cdn.example/a.glb' }, 'https://three.ws', 'f1.abc.sig', 'a fox'),
+ shapePoll({ status: 'failed', error: 'upstream hiccup' }, 'https://three.ws', 'f1.abc.sig', 'a fox'),
+ ].filter(Boolean);
+ expect(outputs.length).toBeGreaterThan(0);
+ for (const out of outputs) {
+ expect(validStatus.has(out.status), `status "${out.status}" not in schema enum`).toBe(true);
+ for (const key of Object.keys(out)) {
+ expect(allowedKeys.has(key), `response key "${key}" is not declared in GenerationState`).toBe(true);
+ }
+ }
+ });
+});
diff --git a/tests/api/embodiment-embed-page.test.js b/tests/api/embodiment-embed-page.test.js
new file mode 100644
index 000000000..d9278e1fa
--- /dev/null
+++ b/tests/api/embodiment-embed-page.test.js
@@ -0,0 +1,51 @@
+// Pins the wiring contract of the hosted embodiment embed page
+// (pages/embodiment/embed.html) that the persona widget iframes into ChatGPT.
+//
+// The EmbodimentStage engine is unit-tested elsewhere (tests/embodiment-*.test.js).
+// This guards the PAGE contract the audit flagged as untested: which modules it
+// imports, which query params it reads, which endpoint it resolves a durable
+// persona through, and that it renders a designed surface when there is nothing
+// to show — without a flaky WebGL/jsdom mount of three.js.
+
+import { describe, it, expect } from 'vitest';
+import { readFileSync, existsSync } from 'node:fs';
+import { fileURLToPath } from 'node:url';
+import { dirname, resolve } from 'node:path';
+
+const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '../..');
+const html = readFileSync(resolve(ROOT, 'pages/embodiment/embed.html'), 'utf8');
+
+describe('embodiment embed page — wiring contract', () => {
+ it('imports the engine + overlay from paths that actually exist', () => {
+ expect(html).toContain("import { EmbodimentStage } from '/apps-sdk/embodiment/embodiment-stage.js'");
+ expect(html).toContain("import { mountOverlay } from '/apps-sdk/embodiment/overlay.js'");
+ expect(existsSync(resolve(ROOT, 'apps-sdk/embodiment/embodiment-stage.js'))).toBe(true);
+ expect(existsSync(resolve(ROOT, 'apps-sdk/embodiment/overlay.js'))).toBe(true);
+ });
+
+ it('reads the documented query params', () => {
+ for (const p of ['persona', 'glb', 'name', 'state', 'text', 'emotion', 'intensity', 'gesture', 'bg', 'wallet', 'network']) {
+ expect(html, `embed page should read the "${p}" param`).toContain(`q.get('${p}')`);
+ }
+ });
+
+ it('renders a designed error surface when neither glb nor persona is supplied', () => {
+ expect(html).toContain('if (!glbUrl && !personaId)');
+ expect(html).toContain('No persona or GLB URL supplied.');
+ });
+
+ it('resolves a durable persona through the persona API and surfaces load failures', () => {
+ expect(html).toContain('/api/mcp3d/persona?id=');
+ // A failed resolve paints the overlay error state, not a blank canvas.
+ expect(html).toContain("overlay.setState('error'");
+ });
+
+ it('the live on-chain identity poll is strictly opt-in (wallet=1) so a plain body makes zero extra calls', () => {
+ expect(html).toContain("q.get('wallet') === '1'");
+ expect(html).toContain('if (showWallet && personaId)');
+ });
+
+ it('is sandboxable: noindex + framable by any host', () => {
+ expect(html).toContain('name="robots" content="noindex"');
+ });
+});
diff --git a/tests/ar-export.test.js b/tests/ar-export.test.js
index d872e68f0..18845bafb 100644
--- a/tests/ar-export.test.js
+++ b/tests/ar-export.test.js
@@ -146,6 +146,47 @@ describe('GET /api/ar — response caching is UA-safe', () => {
expect(html).toContain('Create your own');
expect(html).toContain('Loading your model');
});
+
+ it('embeds THIS GLB in the launch page <model-viewer src>', async () => {
+ const { default: handler } = await import('../api/ar.js');
+ const res = makeRes();
+ await handler(makeReq(IOS), res);
+ const html = res._body;
+ expect(html).toContain(`src="${GLB}"`);
+ expect(html).toContain('ar-modes="webxr scene-viewer quick-look"');
+ });
+
+ it('a missing/invalid src is rejected at the boundary with a designed 400 error page, not a crash', async () => {
+ const { default: handler } = await import('../api/ar.js');
+ // Missing src entirely.
+ const missing = makeRes();
+ await handler({ method: 'GET', url: '/api/ar', headers: { 'user-agent': IOS, host: 'three.ws' } }, missing);
+ expect(missing.statusCode).toBe(400);
+ expect(missing.getHeader('cache-control')).toBe('no-store');
+ expect(missing._body).toContain("Can't open this in AR");
+ expect(missing._body).not.toContain('<model-viewer');
+ // Non-https src.
+ const insecure = makeRes();
+ await handler(
+ { method: 'GET', url: `/api/ar?src=${encodeURIComponent('http://x.io/a.glb')}`, headers: { 'user-agent': IOS, host: 'three.ws' } },
+ insecure,
+ );
+ expect(insecure.statusCode).toBe(400);
+ expect(insecure._body).toContain("Can't open this in AR");
+ });
+
+ it('kind=avatar serves the living-agent launch page with a "Bring it to life" IRL handoff (Android included)', async () => {
+ const { default: handler } = await import('../api/ar.js');
+ const res = makeRes();
+ // Android would normally 302 to Scene Viewer, but an avatar always gets the page.
+ await handler(
+ { method: 'GET', url: `/api/ar?src=${encodeURIComponent(GLB)}&title=Scout&kind=avatar`, headers: { 'user-agent': ANDROID, host: 'three.ws' } },
+ res,
+ );
+ expect(res.statusCode).toBe(200);
+ expect(res._body).toContain('Bring it to life');
+ expect(res._body).toContain('/irl?avatar=' + encodeURIComponent(GLB));
+ });
});
describe('GET /api/render/glb — URL-addressable render (share cards)', () => {
diff --git a/tests/mcp-studio.test.js b/tests/mcp-studio.test.js
index ca8ed057d..8b00bf88f 100644
--- a/tests/mcp-studio.test.js
+++ b/tests/mcp-studio.test.js
@@ -22,7 +22,7 @@ function mkReq() {
const auth = { userId: null, rateKey: '127.0.0.1', scope: '' };
describe('mcp-studio catalog', () => {
- it('exposes exactly the five allowed generation tools', () => {
+ it('exposes exactly the six allowed generation tools', () => {
const names = TOOL_CATALOG.map((t) => t.name).sort();
expect(names).toEqual([...ALLOWED].sort());
expect(TOOL_NAMES.sort()).toEqual([...ALLOWED].sort());