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
fix(mcp): name paired_launch's preview argument quote_id, the id the policy actually checks
nirholasd71d5bb05b89
diff --git a/api/_mcp/tools/paired.js b/api/_mcp/tools/paired.jsindex f7959e35b..3eb3a5169 100644--- a/api/_mcp/tools/paired.js+++ b/api/_mcp/tools/paired.js@@ -7,7 +7,7 @@// api/v1/robinhood/paired-*), so ownership, signer mode, spend ceilings and the// audit trail are identical on both surfaces.//-// paired_launch_quote is the preview: the policy layer stamps a preview_id on+// paired_launch_quote is the preview: the policy layer stamps a quote_id on// its result, and paired_launch refuses without that id, confirm_launch: true,// and the same launch arguments the quote priced. See docs/paired-coins.md.@@ -162,7 +162,7 @@ export const toolDefs = [scope: 'wallet:read',annotations: WRITE,description:- "Price a paired-coin launch from an agent's own EVM wallet on Robinhood Chain without signing anything: the pools and their dollar opening values, the launch fee, gas, the optional opening buy and its fill, the USD total, and anything blocking it (an unfunded wallet, the agent's spend ceiling). Show the result to the owner; paired_launch needs the preview_id this returns.",+ "Price a paired-coin launch from an agent's own EVM wallet on Robinhood Chain without signing anything: the pools and their dollar opening values, the launch fee, gas, the optional opening buy and its fill, the USD total, and anything blocking it (an unfunded wallet, the agent's spend ceiling). Show the result to the owner; paired_launch needs the quote_id this returns.",inputSchema: { type: 'object', properties: LAUNCH_PROPS, required: ['agent_id', 'markets', 'name', 'symbol'], additionalProperties: false },async handler(args, auth) {if (!auth?.userId) return needsAccount();@@ -183,15 +183,15 @@ export const toolDefs = [scope: 'wallet:write',annotations: MONEY,description:- "Launch the coin paired_launch_quote priced, signed by the agent's custodial EVM wallet on Robinhood Chain under its spend ceilings. Requires the quote's preview_id, the same launch arguments, and confirm_launch: true, which you may only send after the owner explicitly approved the quote. Returns the coin address, transaction and coin page.",+ "Launch the coin paired_launch_quote priced, signed by the agent's custodial EVM wallet on Robinhood Chain under its spend ceilings. Requires the quote_id from paired_launch_quote, the same launch arguments, and confirm_launch: true, which you may only send after the owner explicitly approved the quote. Returns the coin address, transaction and coin page.",inputSchema: {type: 'object',properties: {...LAUNCH_PROPS,- preview_id: { type: 'string', description: 'From paired_launch_quote.' },+ quote_id: { type: 'string', description: 'From paired_launch_quote.' },confirm_launch: { type: 'boolean', description: 'Must be true, and only after the owner said yes to the quote.' },},- required: ['agent_id', 'markets', 'name', 'symbol', 'preview_id', 'confirm_launch'],+ required: ['agent_id', 'markets', 'name', 'symbol', 'quote_id', 'confirm_launch'],additionalProperties: false,},async handler(args, auth) {diff --git a/public/mcp-catalog.json b/public/mcp-catalog.jsonindex a8e6e2a99..823e2b4cb 100644--- a/public/mcp-catalog.json+++ b/public/mcp-catalog.json@@ -13561,7 +13561,7 @@{"name": "paired_launch","title": "Launch a paired coin from an agent wallet",- "description": "Launch the coin paired_launch_quote priced, signed by the agent's custodial EVM wallet on Robinhood Chain under its spend ceilings. Requires the quote's preview_id, the same launch arguments, and confirm_launch: true, which you may only send after the owner explicitly approved the quote. Returns the coin address, transaction and coin page.",+ "description": "Launch the coin paired_launch_quote priced, signed by the agent's custodial EVM wallet on Robinhood Chain under its spend ceilings. Requires the quote_id from paired_launch_quote, the same launch arguments, and confirm_launch: true, which you may only send after the owner explicitly approved the quote. Returns the coin address, transaction and coin page.","server": {"id": "three.ws","title": "three.ws",@@ -13661,7 +13661,7 @@],"additionalProperties": false},- "preview_id": {+ "quote_id": {"type": "string","description": "From paired_launch_quote."},@@ -13675,7 +13675,7 @@"markets","name","symbol",- "preview_id",+ "quote_id","confirm_launch"],"additionalProperties": false@@ -13685,7 +13685,7 @@{"name": "paired_launch_quote","title": "Quote a paired-coin launch",- "description": "Price a paired-coin launch from an agent's own EVM wallet on Robinhood Chain without signing anything: the pools and their dollar opening values, the launch fee, gas, the optional opening buy and its fill, the USD total, and anything blocking it (an unfunded wallet, the agent's spend ceiling). Show the result to the owner; paired_launch needs the preview_id this returns.",+ "description": "Price a paired-coin launch from an agent's own EVM wallet on Robinhood Chain without signing anything: the pools and their dollar opening values, the launch fee, gas, the optional opening buy and its fill, the USD total, and anything blocking it (an unfunded wallet, the agent's spend ceiling). Show the result to the owner; paired_launch needs the quote_id this returns.","server": {"id": "three.ws","title": "three.ws",diff --git a/tests/fixtures/mcp-golden-tools.json b/tests/fixtures/mcp-golden-tools.jsonindex d791adbf4..75e440a0c 100644--- a/tests/fixtures/mcp-golden-tools.json+++ b/tests/fixtures/mcp-golden-tools.json@@ -769,15 +769,15 @@"name": "paired_launch","title": "Launch a paired coin from an agent wallet","descHead": "Launch the coin paired_launch_quote priced, signed by the agent's custod",- "descHash": "df948cf84507",+ "descHash": "5f9437f56897","annotations": "ref:MONEY",- "schemaHash": "66aa37c1fb27"+ "schemaHash": "078d8f529f65"},{"name": "paired_launch_quote","title": "Quote a paired-coin launch","descHead": "Price a paired-coin launch from an agent's own EVM wallet on Robinhood C",- "descHash": "40f4057bb885",+ "descHash": "a954f2319d75","annotations": "ref:WRITE","schemaHash": "fc7a3d9fec58"},diff --git a/tests/mcp-remote-annotations.test.js b/tests/mcp-remote-annotations.test.jsindex 15ef4a6fa..cba269900 100644--- a/tests/mcp-remote-annotations.test.js+++ b/tests/mcp-remote-annotations.test.js@@ -151,6 +151,21 @@ describe.each(CATALOGS)('%s: tools/list catalog', (label, catalog, serverId) =>}});+ it('never asks for a preview id under a name the policy does not check', () => {+ // The policy injects its id argument into each gated schema at list time,+ // named after the preview tool (quote_id for a *quote* tool, preview_id+ // otherwise). A schema that declares the OTHER name makes clients send an+ // id the policy ignores (paired_launch once required preview_id while the+ // policy checked quote_id, so it was uncallable as documented).+ const byName = new Map(catalog.map((t) => [t.name, t]));+ for (const [name, row] of Object.entries(POLICY[serverId])) {+ const tool = byName.get(name);+ if (!tool || !row.previewTool) continue;+ const other = /quote/.test(row.previewTool) ? 'preview_id' : 'quote_id';+ expect(Object.keys(tool.inputSchema?.properties || {}), `${name} declares ${other}`).not.toContain(other);+ }+ });+it('never leaks internal fields onto the wire', () => {for (const tool of catalog) {for (const field of FORBIDDEN_WIRE_FIELDS) {