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: trader leaderboard + copy-trading tools for autonomous agents

nirholas5acf125e9add
diff --git a/api/_mcp/catalog.js b/api/_mcp/catalog.js
index 4e1dc3e8b..fe5c81687 100644
--- a/api/_mcp/catalog.js
+++ b/api/_mcp/catalog.js
@@ -12,6 +12,7 @@ import { toolDefs as animationDefs } from './tools/animations.js';
import { toolDefs as memoryDefs } from './tools/memory.js';
import { toolDefs as embedDefs } from './tools/embed.js';
import { toolDefs as oracleDefs } from './tools/oracle.js';
+import { toolDefs as traderDefs } from './tools/trader.js';
const baseDefs = [
...avatarDefs,
@@ -23,6 +24,7 @@ const baseDefs = [
...agentDefs,
...memoryDefs,
...oracleDefs,
+ ...traderDefs,
];
// Free, public entry point — listed first so discovery clients see it up top.
@@ -34,7 +36,7 @@ const gettingStarted = {
...buildGettingStartedTool({
server: 'three.ws',
tagline:
- 'The main three.ws MCP server: render and manage 3D avatars and models, animations, an agent registry, agent memory, live pump.fun market data, and Oracle conviction signals.',
+ 'The main three.ws MCP server: render and manage 3D avatars and models, animations, an agent registry, agent memory, live pump.fun market data, Oracle conviction signals, and the trader leaderboard + copy-trading system.',
tools: baseDefs,
priceFor,
access: [
diff --git a/api/_mcp/tools/trader.js b/api/_mcp/tools/trader.js
new file mode 100644
index 000000000..7b9f64b82
--- /dev/null
+++ b/api/_mcp/tools/trader.js
@@ -0,0 +1,448 @@
+// Trader MCP tools — leaderboard discovery + copy-trading for autonomous agents.
+//
+// Four tools that close the autonomous copy-trading loop:
+//
+// trader_leaderboard — public. Top agents ranked by composite TraderScore.
+// Each row carries win rate, realized P&L, ROI, and
+// a recommendation on whether to copy them.
+//
+// trader_profile — public. Full track record for one agent: score,
+// all headline metrics, and the 10 most recent trades.
+//
+// copy_subscribe — auth-gated (agents:write). Set up copy-trading: mirror
+// a leader's future entries to your own wallet with your
+// own sizing and risk caps. Non-custodial — we never
+// touch keys.
+//
+// copy_status — auth-gated (agents:read). Check the caller's active
+// copy subscriptions and their execution counts.
+
+import { sql } from '../../_lib/db.js';
+import { limits } from '../../_lib/rate-limit.js';
+import { getLeaderboard, getTraderStats, WINDOWS, LEADERBOARD_SORTS } from '../../_lib/trader-stats.js';
+import { normalizeSubscriptionInput } from '../../_lib/copy-engine.js';
+
+const NETWORKS = new Set(['mainnet', 'devnet']);
+const SORTS = new Set([...LEADERBOARD_SORTS]);
+const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
+const BASE58_RE = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;
+
+function mcpOk(payload) {
+ return {
+ content: [{ type: 'text', text: JSON.stringify(payload, null, 2) }],
+ structuredContent: payload,
+ };
+}
+
+function mcpErr(msg) {
+ return { content: [{ type: 'text', text: msg }], isError: true };
+}
+
+const LIVE = { readOnlyHint: true, destructiveHint: false, idempotentHint: false, openWorldHint: true };
+const WRITE = { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false };
+
+function traderScore(r) {
+ if (r.score >= 75 && r.verified) return 'copy';
+ if (r.score >= 60 || (r.win_rate >= 60 && r.closed >= 5)) return 'watch';
+ return 'skip';
+}
+
+function shapeLeaderboardRow(r) {
+ return {
+ rank: r.rank,
+ agent_id: r.agent_id,
+ name: r.agent_name,
+ image: r.image || null,
+ score: r.score,
+ verified: r.verified,
+ closed_trades: r.closed,
+ open_positions: r.open_positions,
+ wins: r.wins,
+ losses: r.losses,
+ win_rate_pct: r.win_rate,
+ realized_pnl_sol: r.realized_pnl_sol,
+ realized_pnl_usd: r.realized_pnl_usd ?? null,
+ roi_pct: r.roi_pct,
+ profit_factor: r.profit_factor,
+ max_drawdown_pct: r.max_drawdown_pct,
+ copiers: r.copiers,
+ last_active_at: r.last_active_at,
+ recommendation: traderScore(r),
+ profile_url: `https://three.ws/trader/${r.agent_id}`,
+ };
+}
+
+export const toolDefs = [
+ // ── trader_leaderboard ──────────────────────────────────────────────────
+ {
+ name: 'trader_leaderboard',
+ title: 'Top pump.fun traders',
+ annotations: LIVE,
+ 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'.",
+ inputSchema: {
+ type: 'object',
+ properties: {
+ limit: { type: 'integer', minimum: 1, maximum: 50, default: 10, description: 'Max rows to return (default 10, max 50).' },
+ sort: { type: 'string', enum: ['score', 'pnl', 'winrate', 'roi'], default: 'score', description: 'Ranking metric.' },
+ window: { type: 'string', enum: ['24h', '7d', '30d', 'all'], default: '30d', description: 'Time window for trade history.' },
+ verified_only: { type: 'boolean', default: false, description: 'Only return verified traders (12+ closed trades, 5+ unique coins, <40% churn).' },
+ network: { type: 'string', enum: ['mainnet', 'devnet'], default: 'mainnet' },
+ },
+ additionalProperties: false,
+ },
+ async handler(args, auth) {
+ const network = NETWORKS.has(args?.network) ? args.network : 'mainnet';
+ const window = WINDOWS.has(args?.window) ? args.window : '30d';
+ const sort = SORTS.has(args?.sort) ? args.sort : 'score';
+ const limit = Math.min(50, Math.max(1, Number(args?.limit ?? 10)));
+ const verifiedOnly = !!args?.verified_only;
+
+ const rl = await limits.mcpIp(auth.rateKey || 'anon');
+ if (!rl.success) return mcpErr('Rate limit exceeded — try again in a moment.');
+
+ const result = await getLeaderboard({ network, window, sort, limit, verifiedOnly }).catch(() => null);
+ if (!result) return mcpErr('Leaderboard unavailable — try again shortly.');
+
+ const traders = (result.leaderboard || []).map(shapeLeaderboardRow);
+ const copyCount = traders.filter((t) => t.recommendation === 'copy').length;
+
+ const payload = {
+ network,
+ window,
+ sort,
+ sol_usd: result.sol_usd ?? null,
+ count: traders.length,
+ copy_candidates: copyCount,
+ traders,
+ hint: traders.length === 0
+ ? 'No traders found in this window. Try a wider window or remove verified_only.'
+ : `Top trader: ${traders[0].name} · score ${traders[0].score} · ${traders[0].win_rate_pct ?? '?'}% win rate. ${copyCount} copy candidate${copyCount !== 1 ? 's' : ''} in results.`,
+ generated_at: new Date().toISOString(),
+ };
+ return mcpOk(payload);
+ },
+ },
+
+ // ── trader_profile ──────────────────────────────────────────────────────
+ {
+ name: 'trader_profile',
+ title: 'Full track record for one agent',
+ annotations: LIVE,
+ 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.",
+ inputSchema: {
+ type: 'object',
+ properties: {
+ agent_id: { type: 'string', description: 'Agent UUID (from trader_leaderboard rows or /api/agents).' },
+ window: { type: 'string', enum: ['24h', '7d', '30d', 'all'], default: 'all', description: 'Time window for metrics (default all-time).' },
+ network: { type: 'string', enum: ['mainnet', 'devnet'], default: 'mainnet' },
+ },
+ required: ['agent_id'],
+ additionalProperties: false,
+ },
+ async handler(args, auth) {
+ const agentId = (args?.agent_id || '').trim();
+ if (!UUID_RE.test(agentId)) return mcpErr('Invalid agent_id — must be a UUID (get it from trader_leaderboard).');
+
+ const network = NETWORKS.has(args?.network) ? args.network : 'mainnet';
+ const window = WINDOWS.has(args?.window) ? args.window : 'all';
+
+ const rl = await limits.mcpIp(auth.rateKey || 'anon');
+ if (!rl.success) return mcpErr('Rate limit exceeded — try again in a moment.');
+
+ const stats = await getTraderStats({ agentId, network, window }).catch(() => null);
+ if (!stats) return mcpErr(`Agent ${agentId} not found or has no public trading history.`);
+ if (!stats.agent.is_public) return mcpErr('This agent\'s track record is not public.');
+
+ const m = stats.metrics;
+ const topTrades = (stats.closed || []).slice(0, 10).map((t) => ({
+ symbol: t.symbol,
+ mint: t.mint,
+ outcome: t.realized_pnl_pct > 5 ? 'win' : t.realized_pnl_pct < -5 ? 'loss' : 'flat',
+ pnl_sol: t.realized_pnl_sol,
+ pnl_pct: t.realized_pnl_pct,
+ hold_seconds: t.hold_seconds,
+ exit_reason: t.exit_reason,
+ closed_at: t.closed_at,
+ proof_url: t.sell_solscan || t.buy_solscan || null,
+ }));
+
+ const rec = traderScore({ score: m.score, verified: m.verified, win_rate: m.win_rate, closed: m.closed_count });
+
+ const payload = {
+ agent_id: agentId,
+ name: stats.agent.name,
+ image: stats.agent.image || null,
+ network,
+ window,
+ sol_usd: stats.sol_usd ?? null,
+ score: m.score,
+ verified: m.verified,
+ recommendation: rec,
+ metrics: {
+ closed_trades: m.closed_count,
+ open_positions: m.open_count,
+ wins: m.wins,
+ losses: m.losses,
+ win_rate_pct: m.win_rate,
+ realized_pnl_sol: m.realized_pnl_sol,
+ realized_pnl_usd: m.realized_pnl_usd ?? null,
+ roi_pct: m.roi_pct,
+ profit_factor: m.profit_factor,
+ avg_pnl_pct: m.avg_pnl_pct,
+ best_pnl_pct: m.best_pnl_pct,
+ max_drawdown_pct: m.max_drawdown_pct,
+ avg_hold_seconds: m.avg_hold_seconds,
+ unique_coins: m.unique_coins,
+ },
+ copiers: stats.agent.copiers,
+ oracle: stats.oracle ?? null,
+ recent_trades: topTrades,
+ profile_url: `https://three.ws/trader/${agentId}`,
+ generated_at: new Date().toISOString(),
+ };
+ return mcpOk(payload);
+ },
+ },
+
+ // ── copy_subscribe ──────────────────────────────────────────────────────
+ {
+ name: 'copy_subscribe',
+ title: 'Subscribe to copy a trader',
+ scope: 'agents:write',
+ annotations: WRITE,
+ 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.",
+ inputSchema: {
+ type: 'object',
+ properties: {
+ leader_agent_id: { type: 'string', format: 'uuid', description: 'The agent UUID to copy (from trader_leaderboard).' },
+ copier_wallet: { type: 'string', description: 'Your Solana wallet address (base58) that will receive the copy intents.' },
+ sizing_rule: { type: 'string', enum: ['fixed', 'multiplier', 'pct_balance'], default: 'fixed', description: 'How to size your copies relative to the leader.' },
+ fixed_sol: { type: 'number', minimum: 0.001, description: 'SOL per trade (sizing_rule=fixed).' },
+ multiplier: { type: 'number', minimum: 0.01, maximum: 10, description: 'Multiplier of leader size (sizing_rule=multiplier).' },
+ pct_balance: { type: 'number', minimum: 0.1, maximum: 100, description: 'Percent of your balance per trade (sizing_rule=pct_balance).' },
+ per_trade_cap_sol: { type: 'number', minimum: 0.001, default: 0.05, description: 'Hard cap: no single copy trade may exceed this SOL amount.' },
+ daily_budget_sol: { type: 'number', minimum: 0.001, default: 0.5, description: 'Hard daily spend ceiling across all copy trades.' },
+ min_order_sol: { type: 'number', minimum: 0, default: 0, description: 'Skip copies that would be smaller than this SOL amount.' },
+ max_open_copies: { type: 'integer', minimum: 1, maximum: 50, default: 5, description: 'Max simultaneous open copy positions.' },
+ min_oracle_score: { type: 'integer', minimum: 0, maximum: 100, description: 'Only copy leader entries where Oracle conviction is at least this score.' },
+ mcap_floor_usd: { type: 'number', minimum: 0, description: 'Skip coins below this USD market cap at entry.' },
+ mcap_ceiling_usd: { type: 'number', minimum: 0, description: 'Skip coins above this USD market cap at entry (avoid already-pumped).' },
+ telegram_chat_id: { type: 'string', description: 'Telegram chat ID for copy-execution alerts (optional).' },
+ perf_fee_bps: { type: 'integer', minimum: 0, maximum: 3000, default: 1000, description: 'Performance fee in bps paid to the leader on wins (default 10%).' },
+ network: { type: 'string', enum: ['mainnet', 'devnet'], default: 'mainnet' },
+ },
+ required: ['leader_agent_id', 'copier_wallet'],
+ additionalProperties: false,
+ },
+ async handler(args, auth) {
+ if (!auth.userId) return mcpErr('Sign in to a three.ws account to set up copy-trading.');
+
+ const leaderId = (args?.leader_agent_id || '').trim();
+ if (!UUID_RE.test(leaderId)) return mcpErr('Invalid leader_agent_id — must be a UUID from trader_leaderboard.');
+
+ const wallet = (args?.copier_wallet || '').trim();
+ if (!BASE58_RE.test(wallet)) return mcpErr('Invalid copier_wallet — must be a base58 Solana address.');
+
+ const network = NETWORKS.has(args?.network) ? args.network : 'mainnet';
+
+ // Validate leader exists and is public
+ const [leader] = await sql`
+ select id, name, is_public from agent_identities
+ where id = ${leaderId} and deleted_at is null limit 1
+ `.catch(() => []);
+ if (!leader) return mcpErr(`Leader agent ${leaderId} not found.`);
+ if (leader.is_public === false) return mcpErr('That agent\'s trades are not public — cannot copy them.');
+
+ const raw = {
+ sizing_rule: args?.sizing_rule ?? 'fixed',
+ fixed_sol: args?.fixed_sol,
+ multiplier: args?.multiplier,
+ pct_balance: args?.pct_balance,
+ per_trade_cap_sol: args?.per_trade_cap_sol ?? 0.05,
+ min_order_sol: args?.min_order_sol ?? 0,
+ daily_budget_sol: args?.daily_budget_sol ?? 0.5,
+ max_open_copies: args?.max_open_copies ?? 5,
+ min_oracle_score: args?.min_oracle_score ?? null,
+ mcap_floor_usd: args?.mcap_floor_usd ?? null,
+ mcap_ceiling_usd: args?.mcap_ceiling_usd ?? null,
+ telegram_chat_id: args?.telegram_chat_id ?? null,
+ perf_fee_bps: args?.perf_fee_bps ?? 1000,
+ };
+
+ const norm = normalizeSubscriptionInput(raw);
+ if (!norm.ok) return mcpErr(`Invalid subscription parameters: ${norm.error}`);
+ const cfg = norm.value;
+
+ // Upsert: create or update existing subscription for this user+leader+network
+ const [existing] = await sql`
+ select id, status from copy_subscriptions
+ where copier_user_id = ${auth.userId}
+ and leader_agent_id = ${leaderId}
+ and network = ${network}
+ limit 1
+ `.catch(() => []);
+
+ let sub;
+ if (existing) {
+ [sub] = await sql`
+ update copy_subscriptions set
+ copier_wallet = ${wallet},
+ sizing_rule = ${cfg.sizing_rule},
+ fixed_sol = ${cfg.fixed_sol ?? null},
+ multiplier = ${cfg.multiplier ?? null},
+ pct_balance = ${cfg.pct_balance ?? null},
+ per_trade_cap_sol = ${cfg.per_trade_cap_sol},
+ min_order_sol = ${cfg.min_order_sol},
+ daily_budget_sol = ${cfg.daily_budget_sol},
+ max_open_copies = ${cfg.max_open_copies},
+ min_oracle_score = ${cfg.min_oracle_score ?? null},
+ mcap_floor_usd = ${cfg.mcap_floor_usd ?? null},
+ mcap_ceiling_usd = ${cfg.mcap_ceiling_usd ?? null},
+ telegram_chat_id = ${cfg.telegramChatId ?? null},
+ perf_fee_bps = ${cfg.perf_fee_bps},
+ status = 'active',
+ updated_at = now()
+ where id = ${existing.id}
+ returning id, status, created_at, updated_at
+ `;
+ } else {
+ [sub] = await sql`
+ insert into copy_subscriptions (
+ copier_user_id, leader_agent_id, network, copier_wallet,
+ sizing_rule, fixed_sol, multiplier, pct_balance,
+ per_trade_cap_sol, min_order_sol, daily_budget_sol, max_open_copies,
+ min_oracle_score, mcap_floor_usd, mcap_ceiling_usd, telegram_chat_id,
+ perf_fee_bps, status
+ ) values (
+ ${auth.userId}, ${leaderId}, ${network}, ${wallet},
+ ${cfg.sizing_rule}, ${cfg.fixed_sol ?? null}, ${cfg.multiplier ?? null}, ${cfg.pct_balance ?? null},
+ ${cfg.per_trade_cap_sol}, ${cfg.min_order_sol}, ${cfg.daily_budget_sol}, ${cfg.max_open_copies},
+ ${cfg.min_oracle_score ?? null}, ${cfg.mcap_floor_usd ?? null}, ${cfg.mcap_ceiling_usd ?? null},
+ ${cfg.telegramChatId ?? null}, ${cfg.perf_fee_bps}, 'active'
+ )
+ returning id, status, created_at, updated_at
+ `;
+ }
+
+ if (!sub) return mcpErr('Failed to save copy subscription — try again.');
+
+ const isNew = !existing;
+ const sizeLabel = cfg.sizing_rule === 'fixed'
+ ? `${cfg.fixed_sol} SOL fixed`
+ : cfg.sizing_rule === 'multiplier'
+ ? `${cfg.multiplier}× leader size`
+ : `${cfg.pct_balance}% of balance`;
+
+ const payload = {
+ success: true,
+ action: isNew ? 'created' : 'updated',
+ subscription_id: sub.id,
+ leader_agent_id: leaderId,
+ leader_name: leader.name,
+ copier_wallet: wallet,
+ network,
+ config: {
+ sizing: sizeLabel,
+ per_trade_cap: `${cfg.per_trade_cap_sol} SOL`,
+ daily_budget: `${cfg.daily_budget_sol} SOL`,
+ max_open: cfg.max_open_copies,
+ min_oracle_score: cfg.min_oracle_score ?? null,
+ perf_fee_bps: cfg.perf_fee_bps,
+ },
+ message: `Copy subscription ${isNew ? 'created' : 'updated'}. The fan-out cron will detect ${leader.name}'s next entry and generate a sized intent for your wallet. Review intents at https://three.ws/dashboard/copy`,
+ links: {
+ dashboard: 'https://three.ws/dashboard/copy',
+ leader_profile: `https://three.ws/trader/${leaderId}`,
+ leaderboard: 'https://three.ws/leaderboard',
+ },
+ };
+ return mcpOk(payload);
+ },
+ },
+
+ // ── copy_status ─────────────────────────────────────────────────────────
+ {
+ name: 'copy_status',
+ title: 'My copy subscriptions',
+ scope: 'agents:read',
+ annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
+ 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.",
+ inputSchema: {
+ type: 'object',
+ properties: {
+ network: { type: 'string', enum: ['mainnet', 'devnet'], default: 'mainnet' },
+ },
+ additionalProperties: false,
+ },
+ async handler(args, auth) {
+ if (!auth.userId) return mcpErr('Sign in to view your copy subscriptions.');
+
+ const rl = await limits.mcpIp(auth.rateKey || 'anon');
+ if (!rl.success) return mcpErr('Rate limit exceeded — try again in a moment.');
+
+ const network = NETWORKS.has(args?.network) ? args.network : 'mainnet';
+
+ const rows = await sql`
+ select s.id, s.leader_agent_id, s.status, s.network,
+ s.copier_wallet, s.sizing_rule, s.fixed_sol, s.multiplier, s.pct_balance,
+ s.per_trade_cap_sol, s.daily_budget_sol, s.max_open_copies,
+ s.min_oracle_score, s.perf_fee_bps, s.created_at, s.updated_at,
+ a.name as leader_name, a.profile_image_url as leader_image,
+ (select count(*) from copy_executions e
+ where e.subscription_id = s.id and e.status = 'pending') as pending_count,
+ (select count(*) from copy_executions e
+ where e.subscription_id = s.id and e.status = 'acted') as acted_count
+ from copy_subscriptions s
+ join agent_identities a on a.id = s.leader_agent_id
+ where s.copier_user_id = ${auth.userId} and s.network = ${network}
+ and s.status not in ('stopped')
+ order by s.created_at desc
+ `.catch(() => []);
+
+ const subs = rows.map((s) => ({
+ id: s.id,
+ leader_agent_id: s.leader_agent_id,
+ leader_name: s.leader_name,
+ leader_image: s.leader_image || null,
+ status: s.status,
+ network: s.network,
+ copier_wallet: s.copier_wallet,
+ sizing_rule: s.sizing_rule,
+ fixed_sol: s.fixed_sol ? Number(s.fixed_sol) : null,
+ multiplier: s.multiplier ? Number(s.multiplier) : null,
+ pct_balance: s.pct_balance ? Number(s.pct_balance) : null,
+ per_trade_cap_sol: Number(s.per_trade_cap_sol),
+ daily_budget_sol: Number(s.daily_budget_sol),
+ max_open_copies: Number(s.max_open_copies),
+ min_oracle_score: s.min_oracle_score ? Number(s.min_oracle_score) : null,
+ perf_fee_bps: Number(s.perf_fee_bps),
+ pending_intents: Number(s.pending_count),
+ acted_intents: Number(s.acted_count),
+ created_at: s.created_at,
+ profile_url: `https://three.ws/trader/${s.leader_agent_id}`,
+ }));
+
+ const payload = {
+ user_id: auth.userId,
+ network,
+ count: subs.length,
+ subscriptions: subs,
+ pending_total: subs.reduce((n, s) => n + s.pending_intents, 0),
+ acted_total: subs.reduce((n, s) => n + s.acted_intents, 0),
+ hint: subs.length === 0
+ ? 'No active copy subscriptions. Use trader_leaderboard to find top performers, then copy_subscribe to mirror them.'
+ : `${subs.length} active subscription${subs.length !== 1 ? 's' : ''}. ${subs.reduce((n, s) => n + s.pending_intents, 0)} intents waiting to be acted on.`,
+ links: {
+ dashboard: 'https://three.ws/dashboard/copy',
+ leaderboard: 'https://three.ws/leaderboard',
+ },
+ generated_at: new Date().toISOString(),
+ };
+ return mcpOk(payload);
+ },
+ },
+];
diff --git a/data/changelog.json b/data/changelog.json
index 7111a9450..2b8caa2c3 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,13 @@
{
"$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-06-16",
+ "title": "Trader leaderboard + copy-trading now available as MCP tools for agents",
+ "summary": "Four new MCP tools close the autonomous copy-trading loop for any agent connected to three.ws: trader_leaderboard returns the top pump.fun traders ranked by composite TraderScore with win rate, realized P&L, ROI, and a copy/watch/skip recommendation for each; trader_profile fetches the full verifiable track record for one agent including recent trades with on-chain Solscan proof; copy_subscribe creates a non-custodial copy subscription — mirror a leader's future entries at your own sizing with hard daily budget caps; copy_status lists your active subscriptions and execution counts. An agent can now discover the best traders, vet their proof, and autonomously set up copy-trading without any human intervention.",
+ "tags": ["feature", "sdk"],
+ "link": "/leaderboard"
+ },
{
"date": "2026-06-16",
"title": "Live Trade Feed — every notable pump.fun win in one public stream",