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
docs(mcp): expand MCP tool descriptions to match actual handler behavior
nirholasc7822d0dc981
diff --git a/README.md b/README.mdindex 93e7a2013..e98f415e8 100644--- a/README.md+++ b/README.md@@ -1588,36 +1588,36 @@ The catalog is assembled dynamically at request time from the per-category tool| Tool | Description ||---|---|-| `list_my_avatars` | List all avatars owned by the authenticated user |-| `get_avatar` | Fetch metadata and download URL for a specific avatar |-| `search_public_avatars` | Search the public avatar library by name, tag, or description |-| `render_avatar` | Generate a preview render of an avatar (returns image URL) |-| `delete_avatar` | Permanently delete an avatar |+| `list_my_avatars` | List the authenticated user's avatars with id, name, slug, size, visibility, and (when permitted) direct `model_url`. |+| `get_avatar` | Fetch a single avatar by id or owner+slug; returns metadata plus a public `model_url` or short-lived signed URL for private avatars. |+| `search_public_avatars` | Free-text + tag search across the public avatar gallery; useful for finding characters to render without prior knowledge of an id. |+| `render_avatar` | Produce an HTML `<model-viewer>` snippet that renders the given avatar, with configurable background, camera orbit, poster, and AR button. |+| `delete_avatar` | Soft-delete an avatar you own. Requires the `avatars:delete` scope. |*Models* ([`api/_mcp/tools/models.js`](api/_mcp/tools/models.js))| Tool | Description ||---|---|-| `validate_model` | Run Khronos glTF validation and return error report |-| `inspect_model` | Inspect model internals (mesh count, material list, animation names, texture sizes) |-| `optimize_model` | Optimize a model (Draco compression, texture downscale, mesh simplification) |+| `validate_model` | Run the Khronos glTF-Validator against a public https GLB/glTF URL; returns a structured report of errors, warnings, infos, and hints. SSRF-hardened. |+| `inspect_model` | Parse a GLB/glTF and return structural stats: scene/node/mesh counts, vertex and triangle totals, material and texture summaries, and extensions used. Pure inspection — no advice. |+| `optimize_model` | Inspect the model and return actionable suggestions for reducing size and draw-call overhead: triangle budget, Draco/Meshopt, oversized textures, KTX2 transcoding, non-indexed primitives, redundant materials, and more. |-*Solana* ([`api/_mcp/tools/solana.js`](api/_mcp/tools/solana.js))+*Solana* ([`api/_mcp/tools/solana.js`](api/_mcp/tools/solana.js)) — all public, no auth required| Tool | Description ||---|---|-| `solana_agent_reputation` | Fetch the reputation score and signals for a Solana agent asset |-| `solana_agent_attestations` | List feedback and validation attestations for an agent asset |-| `solana_agent_passport` | Return the agent's public passport card (name, owner, reputation, badges) |+| `solana_agent_reputation` | Computed reputation summary for a Solana-registered agent: total/verified feedback counts, raw + verified-only score averages, validation pass/fail, task-acceptance, and dispute counts. |+| `solana_agent_attestations` | List recent on-chain attestations (feedback, validation, task offers, acceptances, disputes) about a Solana agent; each row includes verified/disputed/revoked flags. |+| `solana_agent_passport` | Full discovery card for a Solana agent: identity, owner wallet, reputation summary, latest validation result, and attestation schema endpoint — the Solana equivalent of an ERC-8004 passport. |*Pump.fun* ([`api/_mcp/tools/pumpfun.js`](api/_mcp/tools/pumpfun.js))| Tool | Description ||---|---|-| `pumpfun_recent_claims` | Recent GitHub social-fee claims on pump.fun creators |-| `pumpfun_recent_graduations` | Tokens that have recently graduated to AMM pools |-| `pumpfun_token_intel` | Holders, trades, and metadata for a single pump.fun token |-| `pumpfun_creator_intel` | Tokens, fees, and reputation signals for a pump.fun creator |+| `pumpfun_recent_claims` | Most recent pump.fun GitHub social-fee claim events with full enrichment: GitHub profile, X/Twitter follower data, influencer tier, first-time-claim flag, fake-claim detection, and AI summary. |+| `pumpfun_recent_graduations` | Tokens that recently graduated from the bonding curve to PumpAMM, with creator and holder analysis. |+| `pumpfun_token_intel` | Full intel on a pump.fun token: graduation status, bonding-curve progress, creator profile, top holders, volume, bundle detection, and trust signals. |+| `pumpfun_creator_intel` | Reputation profile for a pump.fun creator wallet: prior launches, graduation rate, claim activity, and behavioural trust signals. |**MCP discovery:** configured in `.mcp.json` at the repo root for Claude Desktop integration.diff --git a/src/marketplace.js b/src/marketplace.jsindex 6482c4ddd..43c341e79 100644--- a/src/marketplace.js+++ b/src/marketplace.js@@ -1436,6 +1436,94 @@ function renderSkeletons(n) {return cards;}+// Empty-state block with a recovery action — when the grid is empty we want+// the user to be able to escape the dead-end with one click (clear the search,+// drop the filter, or submit/create their own content).+function renderEmptyState() {+ const hasSearch = !!state.q;+ const hasTag = !!state.tag;+ const hasCategory = !!state.category;+ const hasFilter = state.filter && state.filter !== 'all';++ let title;+ let body;+ const actions = [];++ if (hasSearch || hasTag || hasCategory) {+ title = 'No matches';+ const bits = [];+ if (hasSearch) bits.push(`"${escapeHtml(state.q)}"`);+ if (hasTag) bits.push(`tag ${escapeHtml(state.tag)}`);+ if (hasCategory) bits.push(`category ${escapeHtml(state.category)}`);+ body = `Nothing matched ${bits.join(' · ')}. Try a different term or clear the filters.`;+ actions.push({ id: 'empty-clear-filters', label: 'Clear filters', primary: true });+ } else if (state.filter === 'agents') {+ title = 'No agents published yet';+ body = 'Be the first to share an agent with the community.';+ actions.push({ id: 'empty-submit-agent', label: '+ Submit Agent', primary: true });+ } else if (state.filter === 'avatars') {+ title = 'No public avatars';+ body = 'Create a 3D avatar and publish it for others to use.';+ actions.push({ id: 'empty-create-avatar', label: '+ Create Avatar', primary: true });+ } else if (state.filter === 'onchain') {+ title = 'No onchain agents';+ body = 'No ERC-8004 agents match your current filters.';+ actions.push({ id: 'empty-clear-filters', label: 'Clear filters', primary: true });+ } else {+ title = 'Nothing here yet';+ body = 'Publish an agent or upload an avatar to start the catalog.';+ actions.push({ id: 'empty-submit-agent', label: '+ Submit Agent', primary: true });+ actions.push({ id: 'empty-create-avatar', label: '+ Create Avatar', primary: false });+ }++ const buttons = actions+ .map(+ (a) =>+ `<button type="button" class="market-empty-cta-btn${a.primary ? ' primary' : ''}" data-empty-action="${a.id}">${escapeHtml(a.label)}</button>`,+ )+ .join('');++ return `+ <div class="market-empty-cta" role="status">+ <h3>${escapeHtml(title)}</h3>+ <p>${body}</p>+ <div class="market-empty-cta-actions">${buttons}</div>+ </div>`;+}++// Single delegated click handler so empty-state buttons keep working across+// re-renders (els.grid is innerHTML-replaced on every renderGrid).+function bindEmptyStateActions() {+ if (!els.grid || els.grid.dataset.emptyBound) return;+ els.grid.dataset.emptyBound = '1';+ els.grid.addEventListener('click', (e) => {+ const btn = e.target.closest('[data-empty-action]');+ if (!btn) return;+ const action = btn.dataset.emptyAction;+ if (action === 'empty-clear-filters') {+ state.q = '';+ state.tag = null;+ state.category = null;+ state.filter = 'all';+ const search = $('market-search');+ if (search) search.value = '';+ document.querySelectorAll('.market-chip[data-filter]').forEach((c) => {+ c.classList.toggle('active', c.dataset.filter === 'all');+ });+ const hero = $('market-hero');+ if (hero && state.featured.length) {+ hero.hidden = false;+ startHeroAutoplay();+ }+ loadFeed(true);+ } else if (action === 'empty-submit-agent') {+ openSubmitModal();+ } else if (action === 'empty-create-avatar') {+ navTo('/create');+ }+ });+}+// Name-initial placeholder rendered behind every model-viewer preview. Stays// visible until model-viewer loads (then faded out via .mv-loaded), so cards// and the hero never show a blank black void while GLBs stream in.