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-policy): classify the card, prediction and trade receipt tools so they stop hiding from every session
three.ws operator4052673a4efa
diff --git a/packages/mcp-policy/src/groups.js b/packages/mcp-policy/src/groups.jsindex 4104f2492..c3a5de336 100644--- a/packages/mcp-policy/src/groups.js+++ b/packages/mcp-policy/src/groups.js@@ -42,6 +42,11 @@ export const CONFIRM_FLAGS = Object.freeze(['confirm_listing','confirm_delist','confirm_accept',+ // Named by the venue that gates them: a prediction order, a card secret+ // reveal, and a card cancellation.+ 'confirm_trade',+ 'confirm_reveal',+ 'confirm_cancel',]);/** The argument a financial tool takes to prove its preview ran. */@@ -73,6 +78,8 @@ export const GROUPS = Object.freeze([{ id: 'account', label: 'Account', summary: 'Notifications, delivery preferences, and push devices.' },{ id: 'allowlist', label: 'Allowlist', summary: 'The destinations an agent wallet may send funds to.' },{ id: 'assets', label: 'Assets', summary: '3D generation, avatars, animation, rigging, rendering, and the asset catalog.' },+ { id: 'gateway', label: 'Tool gateway', summary: 'Web search, page fetch, a headless browser, image and video generation, speech and transcription, and document parsing, billed per call in credits.' },+ { id: 'sandbox', label: 'Sandbox', summary: 'Run code in an isolated workspace: execute scripts, a persistent terminal, and the files a run reads and writes.' },{ id: 'utility', label: 'Utility', summary: 'Getting-started guides, name resolution, vision, speech, and other stateless helpers.' },]);diff --git a/packages/mcp-policy/src/table.js b/packages/mcp-policy/src/table.jsindex d6daf371f..76eed956e 100644--- a/packages/mcp-policy/src/table.js+++ b/packages/mcp-policy/src/table.js@@ -128,6 +128,23 @@ export const POLICY = {create_custom_skill: w('skills'),update_custom_skill: w('skills'),delete_custom_skill: f('skills', 'confirm_delete', 'get_custom_skill', ['agent_id', 'skill_id']),+ trade_receipt: r('trading'),+ // Agent cards (api/_mcp/tools/cards.js). The service verifies its own+ // quote and reveal ids, so the policy enforces enablement and the flag.+ agent_card_search_merchants: r('cards'),+ agent_card_search_gift_cards: r('cards'),+ agent_card_quote: w('cards'),+ agent_card_create: own('cards', 'confirm_spend', 'agent_card_quote'),+ agent_card_list: r('cards'),+ agent_card_get: r('cards'),+ agent_card_status: r('cards'),+ agent_card_balance: r('cards'),+ agent_card_data: w('cards'),+ agent_card_reveal: own('cards', 'confirm_reveal', 'agent_card_data'),+ agent_card_cancel: own('cards', 'confirm_cancel', 'agent_card_get'),+ agent_card_withdraw: own('cards', 'confirm_withdraw', 'agent_card_balance'),+ agent_card_connect: r('cards'),+ agent_card_connect_link: w('cards'),},// /api/mcp-agent@@ -158,6 +175,18 @@ export const POLICY = {withdraw_marketplace_bid: own('marketplace', 'confirm_withdraw', 'preview_marketplace_action'),get_agent_transfer: r('marketplace'),resume_agent_transfer: w('marketplace'),+ // Prediction markets (api/_mcpagent/predictions-tools.js). The engine+ // issues and checks its own preview ids.+ predictions_events: r('predictions'),+ predictions_event: r('predictions'),+ predictions_positions: r('predictions'),+ predictions_open_preview: r('predictions'),+ predictions_open: own('predictions', 'confirm_trade', 'predictions_open_preview'),+ predictions_close_preview: r('predictions'),+ predictions_close: own('predictions', 'confirm_trade', 'predictions_close_preview'),+ predictions_redeem_preview: r('predictions'),+ predictions_redeem: own('predictions', 'confirm_trade', 'predictions_redeem_preview'),+ predictions_watch: w('predictions'),},// /api/mcp-3d