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.

chore(probes): point the trader keys probe at the MCP trader_profile handler

nirholasdb69f55325a8
diff --git a/.trader-audit-keys.mjs b/.trader-audit-keys.mjs
index 4e1c6a3bc..4eb56a248 100644
--- a/.trader-audit-keys.mjs
+++ b/.trader-audit-keys.mjs
@@ -2,8 +2,13 @@ import { neonConfig } from '@neondatabase/serverless';
neonConfig.fetchEndpoint = 'http://127.0.0.1:54490/sql';
neonConfig.useSecureWebSocket = false;
process.env.DATABASE_URL = 'postgres://postgres:[email protected]:5432/main';
-const { getTraderStats } = await import('./api/_lib/trader-stats.js');
-const s = await getTraderStats({ agentId: '22222222-2222-4222-8222-222222222222', network: 'mainnet', window: 'all' });
-console.log('metrics keys:', Object.keys(s.metrics).join(','));
-console.log('closed[0]:', JSON.stringify(s.closed[0], null, 1));
-console.log('open[0]:', JSON.stringify(s.open[0], null, 1));
+const { toolDefs } = await import('./api/_mcp/tools/trader.js');
+const profile = toolDefs.find((t) => t.name === 'trader_profile');
+const r = await profile.handler(
+ { agent_id: '22222222-2222-4222-8222-222222222222', window: 'all' },
+ { userId: null, rateKey: null, scope: '' },
+);
+const p = r.structuredContent;
+console.log('recent_trades:', JSON.stringify(p.recent_trades, null, 1));
+console.log('open_positions:', JSON.stringify(p.open_positions, null, 1));
+console.log('win_rate_pct:', p.metrics.win_rate_pct, 'recommendation:', p.recommendation);