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
// `wallet_send` — send SOL from a signer to a destination pubkey. The
// signer comes from the `secret` arg (preferred) or from SOLANA_SECRET_KEY
// in the MCP server environment. Returns the on-chain signature and a
// Solscan link once confirmed.
import { z } from 'zod';
import { sendSol } from '../lib/solana.js';
import { assertRecipientAllowed, confirmationGate } from '../lib/spend-policy.js';
export const def = {
name: 'wallet_send',
title: 'Send SOL on Solana mainnet',
// MCP ToolAnnotations — EXECUTION: moves real value on Solana mainnet, irreversible.
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
description:
'Send SOL from the configured signer to a destination pubkey. The signer is supplied via the `secret` arg (base58) or via SOLANA_SECRET_KEY env on the MCP server. Returns the confirmed signature and a Solscan link. EXECUTION ACTION: funds move on mainnet, irreversible: pass confirm:true. Capped by MAX_SOL_PER_TX; destination must be in RECIPIENT_ALLOWLIST if one is configured. Call this after wallet_send_preview has been shown to the user and they said yes, and never without that yes.',
inputSchema: {
to: z.string().min(32).max(64).describe('Destination Solana pubkey.'),
sol: z.number().positive().describe('Amount of SOL to send.'),
secret: z.string().optional().describe('Base58 secret of the sender. Falls back to SOLANA_SECRET_KEY env.'),
priorityMicroLamports: z.number().int().min(0).max(10_000_000).optional()
.describe('Compute-unit price (default 100000).'),
confirm: z.boolean().optional().describe('Must be true to execute this irreversible send (when REQUIRE_CONFIRM is on).'),
},
async handler(args) {
const gate = confirmationGate(args.confirm, 'wallet_send (SOL transfer)');
if (gate) return gate;
try {
assertRecipientAllowed(args.to, 'wallet_send destination');
const out = await sendSol({
secret: args.secret,
to: args.to,
sol: args.sol,
priorityMicroLamports: args.priorityMicroLamports,
});
return { ok: true, ...out };
} catch (err) {
return {
ok: false,
error: err.code || 'send_failed',
message: err.message,
signature: err.signature || null,
...(err.status ? { status: err.status } : {}),
};
}
},
};