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.

Intel and marketplace MCP scaffolds, vanity/naming tools

nirholas197433bb6b2c
diff --git a/packages/intel-mcp/LICENSE b/packages/intel-mcp/LICENSE
new file mode 100644
index 000000000..8e2251ab4
--- /dev/null
+++ b/packages/intel-mcp/LICENSE
@@ -0,0 +1,180 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship made available under
+ the License, as indicated by a copyright notice that is included in
+ or attached to the work (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other transformations
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
+ in the Work by the copyright owner or by an individual or Legal Entity
+ authorized to submit on behalf of the copyright owner. For the purposes
+ of this definition, "submitted" means any form of electronic, verbal,
+ or written communication sent to the Licensor or its representatives,
+ including but not limited to communication on electronic mailing lists,
+ source code control systems, and issue tracking systems that are managed
+ by, or on behalf of, the Licensor for the purpose of discussing and
+ improving the Work, but excluding communication that is conspicuously
+ marked or designated in writing by the copyright owner as "Not a
+ Contribution."
+
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
+ whom a Contribution has been received by the Licensor and included
+ within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by the combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a cross-claim
+ or counterclaim in a lawsuit) alleging that the Work or any
+ Contribution embodied within the Work constitutes direct or contributory
+ patent infringement, then any patent licenses granted to You under
+ this License for that Work shall terminate as of the date such
+ litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or Derivative
+ Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, You must include a readable copy of the
+ attribution notices contained within such NOTICE file, in
+ at least one of the following places: within a NOTICE text
+ file distributed as part of the Derivative Works; within
+ the Source form or documentation, if provided along with the
+ Derivative Works; or, within a display generated by the
+ Derivative Works, if and wherever such third-party notices
+ normally appear. The contents of the NOTICE file are for
+ informational purposes only and do not modify the License.
+ You may add Your own attribution notices within Derivative
+ Works that You distribute, alongside or in addition to the
+ NOTICE text from the Work, provided that such additional
+ attribution notices cannot be construed as modifying the License.
+
+ You may add Your own license statement for Your modifications and
+ may provide additional grant of rights to use, copy, modify, merge,
+ publish, distribute, sublicense, and/or sell copies of the
+ Derivative Works, and to permit persons to whom the Derivative Works
+ are furnished to do so.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or reproducing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or exemplary damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or all other
+ commercial damages or losses), even if such Contributor has been
+ advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may offer only
+ conditions consistent with this License.
+
+ END OF TERMS AND CONDITIONS
+
+ Copyright 2026 nirholas
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/packages/intel-mcp/src/config.js b/packages/intel-mcp/src/config.js
new file mode 100644
index 000000000..a498a512b
--- /dev/null
+++ b/packages/intel-mcp/src/config.js
@@ -0,0 +1,33 @@
+// Centralized env + HTTP base for the intel MCP.
+//
+// This server is a thin, read-only wrapper over the PUBLIC three.ws market
+// intelligence API (/api/intel, /api/signals, /api/kol, /api/copy). It signs
+// nothing and holds no secret — the only knobs are which deployment to talk to
+// and how long to wait. Every score, signal, and ranking comes from the live
+// endpoints; nothing is computed or cached here.
+
+export function env(key, fallback) {
+ const v = process.env[key];
+ return v !== undefined && String(v).trim() !== '' ? String(v).trim() : fallback;
+}
+
+// Base URL of the three.ws API. Override only when self-hosting or pointing at a
+// preview deployment.
+export const THREE_WS_BASE = env('THREE_WS_BASE', 'https://three.ws').replace(/\/+$/, '');
+
+// Per-request timeout (ms). These are live reads (smart-money graph joins, KOL
+// trade fan-outs) — generous enough to ride out a cold edge, fast in practice.
+export const HTTP_TIMEOUT_MS = (() => {
+ const raw = env('THREE_WS_TIMEOUT_MS');
+ if (raw === undefined) return 20000;
+ const n = Number(raw);
+ if (!Number.isFinite(n) || n <= 0) {
+ throw Object.assign(new Error(`THREE_WS_TIMEOUT_MS must be a positive number (got "${raw}")`), {
+ code: 'bad_config',
+ });
+ }
+ return n;
+})();
+
+// Identifies this client to the API in request logs.
+export const USER_AGENT = '@three-ws/intel-mcp';
diff --git a/packages/marketplace-mcp/src/config.js b/packages/marketplace-mcp/src/config.js
new file mode 100644
index 000000000..5c9381d49
--- /dev/null
+++ b/packages/marketplace-mcp/src/config.js
@@ -0,0 +1,33 @@
+// Centralized env + HTTP base for the marketplace MCP.
+//
+// This server is a thin, read-only wrapper over the PUBLIC three.ws HTTP API
+// (/api/marketplace and /api/skills). It signs nothing and holds no secret —
+// the only knobs are which deployment to talk to and how long to wait. Nothing
+// about which agents or skills exist is baked in here; it all comes from the
+// live endpoint.
+
+export function env(key, fallback) {
+ const v = process.env[key];
+ return v !== undefined && String(v).trim() !== '' ? String(v).trim() : fallback;
+}
+
+// Base URL of the three.ws API that serves /api/marketplace and /api/skills.
+// Override only when self-hosting or pointing at a preview deployment.
+export const THREE_WS_BASE = env('THREE_WS_BASE', 'https://three.ws').replace(/\/+$/, '');
+
+// Per-request timeout (ms). These are public read endpoints that respond fast,
+// so the default is modest; override for slow links or preview deployments.
+export const HTTP_TIMEOUT_MS = (() => {
+ const raw = env('THREE_WS_TIMEOUT_MS');
+ if (raw === undefined) return 20000;
+ const n = Number(raw);
+ if (!Number.isFinite(n) || n <= 0) {
+ throw Object.assign(new Error(`THREE_WS_TIMEOUT_MS must be a positive number (got "${raw}")`), {
+ code: 'bad_config',
+ });
+ }
+ return n;
+})();
+
+// Identifies this client to the API in request logs.
+export const USER_AGENT = '@three-ws/marketplace-mcp';
diff --git a/packages/marketplace-mcp/src/lib/api.js b/packages/marketplace-mcp/src/lib/api.js
new file mode 100644
index 000000000..65512807b
--- /dev/null
+++ b/packages/marketplace-mcp/src/lib/api.js
@@ -0,0 +1,66 @@
+// Real HTTP access to the three.ws API. No mocks, no fixtures — every call is
+// a live request to THREE_WS_BASE. Errors are normalized into a single shape so
+// tool handlers can surface a clean message + status to the MCP client.
+
+import { THREE_WS_BASE, HTTP_TIMEOUT_MS, USER_AGENT } from '../config.js';
+
+/**
+ * Call a three.ws HTTP endpoint and return its parsed JSON body.
+ *
+ * @param {string} path Endpoint path beginning with `/` (e.g. `/api/marketplace/agents`).
+ * @param {{ method?: string, query?: Record<string, unknown>, body?: unknown }} [opts]
+ * @returns {Promise<any>} Parsed JSON response.
+ * @throws {Error} with `.code` ('timeout' | 'network_error' | 'upstream_error'),
+ * and on upstream errors `.status` + `.body`.
+ */
+export async function apiRequest(path, { method = 'GET', query, body } = {}) {
+ const url = new URL(`${THREE_WS_BASE}${path}`);
+ if (query) {
+ for (const [key, value] of Object.entries(query)) {
+ if (value === undefined || value === null || value === '') continue;
+ url.searchParams.set(key, String(value));
+ }
+ }
+
+ const controller = new AbortController();
+ const timer = setTimeout(() => controller.abort(), HTTP_TIMEOUT_MS);
+
+ let res;
+ try {
+ res = await fetch(url, {
+ method,
+ headers: {
+ accept: 'application/json',
+ 'user-agent': USER_AGENT,
+ ...(body !== undefined ? { 'content-type': 'application/json' } : {}),
+ },
+ body: body !== undefined ? JSON.stringify(body) : undefined,
+ signal: controller.signal,
+ });
+ } catch (err) {
+ clearTimeout(timer);
+ if (err?.name === 'AbortError') {
+ throw Object.assign(new Error(`three.ws ${path} timed out after ${HTTP_TIMEOUT_MS}ms`), {
+ code: 'timeout',
+ });
+ }
+ throw Object.assign(new Error(`three.ws ${path} request failed: ${err?.message || err}`), {
+ code: 'network_error',
+ });
+ }
+ clearTimeout(timer);
+
+ const text = await res.text();
+ let data;
+ try {
+ data = text ? JSON.parse(text) : {};
+ } catch {
+ data = { raw: text };
+ }
+
+ if (!res.ok) {
+ const message = data?.message || data?.error || `three.ws ${path} returned HTTP ${res.status}`;
+ throw Object.assign(new Error(message), { code: 'upstream_error', status: res.status, body: data });
+ }
+ return data;
+}
diff --git a/packages/naming-mcp/src/index.js b/packages/naming-mcp/src/index.js
new file mode 100644
index 000000000..eba7723bd
--- /dev/null
+++ b/packages/naming-mcp/src/index.js
@@ -0,0 +1,113 @@
+#!/usr/bin/env node
+// @three-ws/naming-mcp — MCP server entry point.
+//
+// Gives any AI assistant the three.ws naming / identity layer over stdio:
+// • sns_resolve — resolve a .sol name → owner wallet
+// • sns_reverse — reverse-lookup a wallet → primary .sol name
+// • threews_availability — is <label>.threews.sol free to claim as an agent identity?
+//
+// A thin wrapper over the PUBLIC three.ws API (/api/sns, /api/threews/subdomain).
+// No keys, no signer, no payment — point THREE_WS_BASE at a deployment and go.
+//
+// Run standalone:
+// node packages/naming-mcp/src/index.js
+//
+// Or wire into Claude Code / Cursor — see README.md.
+
+import { realpathSync } from 'node:fs';
+import { createRequire } from 'node:module';
+import { pathToFileURL } from 'node:url';
+
+import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
+import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
+
+import { def as snsResolve } from './tools/sns-resolve.js';
+import { def as snsReverse } from './tools/sns-reverse.js';
+import { def as threewsAvailability } from './tools/threews-availability.js';
+
+// Single source of truth for the advertised server version — package.json.
+const require = createRequire(import.meta.url);
+const { version: PKG_VERSION } = require('../package.json');
+
+export const TOOLS = [snsResolve, snsReverse, threewsAvailability];
+
+/**
+ * Construct a fully-registered McpServer without connecting a transport.
+ * Registration is env-free, so this is safe to import from tests.
+ * @returns {McpServer}
+ */
+export function buildServer() {
+ const server = new McpServer(
+ { name: 'naming-mcp', title: 'three.ws Naming', version: PKG_VERSION },
+ {
+ capabilities: { tools: {} },
+ instructions:
+ 'three.ws Naming MCP — the on-chain identity layer for AI agents. sns_resolve resolves a Solana ' +
+ '.sol name to the wallet that owns it; sns_reverse goes the other way, mapping a wallet to its ' +
+ 'primary .sol name. threews_availability checks whether "<label>.threews.sol" is free to claim as ' +
+ 'an agent identity — three.ws subdomains showcase an agent profile at /u/<label>, so claiming one ' +
+ 'gives your agent a name. All data comes live from the public three.ws /api/sns and ' +
+ '/api/threews/subdomain endpoints, backed by Solana / Bonfida SNS (mainnet). No API key, signer, ' +
+ 'or payment required. Minting a *.threews.sol subdomain is an authenticated write on the HTTP API; ' +
+ 'this server exposes resolution and availability.',
+ },
+ );
+
+ for (const tool of TOOLS) {
+ server.registerTool(
+ tool.name,
+ {
+ title: tool.title,
+ description: tool.description,
+ inputSchema: tool.inputSchema,
+ annotations: tool.annotations,
+ },
+ async (args, extra) => {
+ try {
+ const result = await tool.handler(args, extra);
+ const text = typeof result === 'string' ? result : JSON.stringify(result, null, 2);
+ return { content: [{ type: 'text', text }] };
+ } catch (err) {
+ const payload = {
+ ok: false,
+ error: err?.code || 'unhandled',
+ message: err?.message || String(err),
+ ...(err?.status ? { status: err.status } : {}),
+ };
+ return {
+ content: [{ type: 'text', text: JSON.stringify(payload, null, 2) }],
+ isError: true,
+ };
+ }
+ },
+ );
+ }
+
+ return server;
+}
+
+async function main() {
+ const server = buildServer();
+ const transport = new StdioServerTransport();
+ await server.connect(transport);
+ console.error(`[naming-mcp@${PKG_VERSION}] connected over stdio with ${TOOLS.length} tools`);
+}
+
+// Connect stdio ONLY when this file is the process entry point. Importing the
+// module (tests, embedding) must not grab the transport. realpath both sides:
+// npm bin shims are symlinks, so argv[1] may differ from import.meta.url.
+function isProcessEntryPoint() {
+ if (!process.argv[1]) return false;
+ try {
+ return import.meta.url === pathToFileURL(realpathSync(process.argv[1])).href;
+ } catch {
+ return false;
+ }
+}
+
+if (isProcessEntryPoint()) {
+ main().catch((err) => {
+ console.error('[naming-mcp] fatal:', err);
+ process.exit(1);
+ });
+}
diff --git a/packages/naming-mcp/src/tools/sns-resolve.js b/packages/naming-mcp/src/tools/sns-resolve.js
new file mode 100644
index 000000000..9cb01c02e
--- /dev/null
+++ b/packages/naming-mcp/src/tools/sns-resolve.js
@@ -0,0 +1,32 @@
+// `sns_resolve` — resolve a Solana .sol name to its owner wallet. Read-only.
+//
+// Wraps GET /api/sns?name=<label>[.sol].
+
+import { z } from 'zod';
+
+import { apiRequest } from '../lib/api.js';
+
+export const def = {
+ name: 'sns_resolve',
+ title: 'Resolve a .sol name to its owner wallet',
+ annotations: { readOnlyHint: true, idempotentHint: false, openWorldHint: true },
+ description:
+ 'Resolve a Solana Name Service (.sol) name to the base58 wallet address that owns it. Accepts a bare label, a subdomain, or the full name with or without the trailing ".sol". Returns the owner address, or resolved:false when the name is unregistered. Mainnet only. Read-only.',
+ inputSchema: {
+ name: z
+ .string()
+ .min(1)
+ .describe('A .sol label to resolve, e.g. "bonfida", "nick.threews", or "bonfida.sol" (the .sol suffix is optional).'),
+ },
+ async handler(args) {
+ const name = String(args?.name ?? '').trim();
+ const data = await apiRequest('/api/sns', { query: { name } });
+ const result = data?.data ?? {};
+ return {
+ ok: true,
+ name: result.name ?? null,
+ address: result.address ?? null,
+ resolved: Boolean(result.resolved),
+ };
+ },
+};
diff --git a/packages/naming-mcp/src/tools/sns-reverse.js b/packages/naming-mcp/src/tools/sns-reverse.js
new file mode 100644
index 000000000..d848ed433
--- /dev/null
+++ b/packages/naming-mcp/src/tools/sns-reverse.js
@@ -0,0 +1,32 @@
+// `sns_reverse` — reverse-lookup a wallet to its primary .sol name. Read-only.
+//
+// Wraps GET /api/sns?address=<base58>.
+
+import { z } from 'zod';
+
+import { apiRequest } from '../lib/api.js';
+
+export const def = {
+ name: 'sns_reverse',
+ title: 'Reverse-lookup a wallet to its primary .sol name',
+ annotations: { readOnlyHint: true, idempotentHint: false, openWorldHint: true },
+ description:
+ 'Reverse-lookup a Solana wallet to the primary .sol name it has set as its favorite. Returns the name, or resolved:false when the wallet has no favorite domain (a routine, expected answer — not an error). Mainnet only. Read-only.',
+ inputSchema: {
+ address: z
+ .string()
+ .min(1)
+ .describe('A base58 Solana public key, e.g. "HKKp49qGWXd639QsuH7JiLijfVW5UtCVY4s1n2HANwEA".'),
+ },
+ async handler(args) {
+ const address = String(args?.address ?? '').trim();
+ const data = await apiRequest('/api/sns', { query: { address } });
+ const result = data?.data ?? {};
+ return {
+ ok: true,
+ address: result.address ?? null,
+ name: result.name ?? null,
+ resolved: Boolean(result.resolved),
+ };
+ },
+};
diff --git a/packages/naming-mcp/src/tools/threews-availability.js b/packages/naming-mcp/src/tools/threews-availability.js
new file mode 100644
index 000000000..de6e1559b
--- /dev/null
+++ b/packages/naming-mcp/src/tools/threews-availability.js
@@ -0,0 +1,36 @@
+// `threews_availability` — check whether <label>.threews.sol is free to claim
+// as an agent identity. Read-only.
+//
+// Wraps GET /api/threews/subdomain?label=<label>.
+
+import { z } from 'zod';
+
+import { apiRequest } from '../lib/api.js';
+
+export const def = {
+ name: 'threews_availability',
+ title: 'Check if a *.threews.sol agent identity is available',
+ annotations: { readOnlyHint: true, idempotentHint: false, openWorldHint: true },
+ description:
+ 'Check whether "<label>.threews.sol" is available to claim as a three.ws agent identity. Returns the full domain, availability, the current owner wallet if taken, the on-chain check status ("ok" or "unavailable" if the Solana RPC was degraded), and the public showcase URL for a claimed handle. Minting the subdomain is an authenticated write on the HTTP API; this tool is the public read. Read-only.',
+ inputSchema: {
+ label: z
+ .string()
+ .min(1)
+ .describe('The label to check, e.g. "nick" for "nick.threews.sol" (1–63 chars of [a-z0-9-]).'),
+ },
+ async handler(args) {
+ const label = String(args?.label ?? '').trim();
+ const data = await apiRequest('/api/threews/subdomain', { query: { label } });
+ const result = data?.data ?? {};
+ return {
+ ok: true,
+ full: result.full ?? null,
+ label: result.label ?? null,
+ available: Boolean(result.available),
+ owner: result.owner ?? null,
+ on_chain_check: result.on_chain_check ?? null,
+ showcase_url: result.showcase_url ?? null,
+ };
+ },
+};
diff --git a/packages/vanity-mcp/src/tools/vanity-appraise.js b/packages/vanity-mcp/src/tools/vanity-appraise.js
new file mode 100644
index 000000000..72a21a921
--- /dev/null
+++ b/packages/vanity-mcp/src/tools/vanity-appraise.js
@@ -0,0 +1,39 @@
+// `vanity_appraise` — rarity appraisal of any Solana address. Read-only.
+//
+// Wraps GET /api/vanity/gallery?view=appraise. Pure math on the address (no
+// persistence, no payment), so the same address always appraises the same —
+// idempotent.
+
+import { z } from 'zod';
+
+import { apiRequest } from '../lib/api.js';
+
+export const def = {
+ name: 'vanity_appraise',
+ title: 'Appraise the rarity of a Solana address',
+ annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: true },
+ description:
+ 'Appraise how rare a Solana address is: its detected vanity pattern, rarity score, rarity bits, tier, and expected grind attempts. Pure math on the Base58 address — nothing is stored. If the address has been published to the proof-of-grind gallery, the public entry is returned too. Read-only, no payment.',
+ inputSchema: {
+ address: z.string().min(32).max(44).describe('The Base58 Solana public key to appraise (32–44 chars).'),
+ prefixLen: z.number().int().min(0).optional().describe('Override how many leading characters to treat as the pattern prefix.'),
+ suffixLen: z.number().int().min(0).optional().describe('Override how many trailing characters to treat as the pattern suffix.'),
+ },
+ async handler(args) {
+ const address = String(args?.address ?? '').trim();
+ const data = await apiRequest('/api/vanity/gallery', {
+ query: {
+ view: 'appraise',
+ address,
+ prefixLen: args?.prefixLen,
+ suffixLen: args?.suffixLen,
+ },
+ });
+ return {
+ ok: true,
+ address,
+ appraisal: data?.appraisal,
+ published: data?.published ?? null,
+ };
+ },
+};
diff --git a/packages/vanity-mcp/src/tools/vanity-board.js b/packages/vanity-mcp/src/tools/vanity-board.js
new file mode 100644
index 000000000..0f745b18e
--- /dev/null
+++ b/packages/vanity-mcp/src/tools/vanity-board.js
@@ -0,0 +1,34 @@
+// `vanity_board` — browse the grind-bounty market board. Read-only.
+//
+// Wraps GET /api/vanity/bounties?view=board. The board changes as bounties are
+// posted, claimed, and expire, so it is NOT idempotent.
+
+import { z } from 'zod';
+
+import { apiRequest } from '../lib/api.js';
+
+export const def = {
+ name: 'vanity_board',
+ title: 'Browse the vanity grind-bounty board',
+ annotations: { readOnlyHint: true, idempotentHint: false, openWorldHint: true },
+ description:
+ 'Browse the public grind-bounty board: vanity-address bounties requesters have escrowed for the worker fleet to grind. Filter by status (open / all / settled), sort by recency, reward, or expiry, and paginate. Each bounty shows its pattern, USDC amount, difficulty, status, and timing. Read-only; posting a bounty is a separate x402-paid write on the HTTP API.',
+ inputSchema: {
+ status: z.enum(['open', 'all', 'settled']).default('open').describe('Which bounties to list. Default open.'),
+ sort: z.enum(['recency', 'reward', 'expiry']).default('recency').describe('Order: newest first, biggest reward first, or soonest to expire. Default recency.'),
+ limit: z.number().int().min(1).max(100).optional().describe('Max bounties to return (1–100, default 24).'),
+ offset: z.number().int().min(0).optional().describe('Pagination offset (default 0).'),
+ },
+ async handler(args) {
+ const data = await apiRequest('/api/vanity/bounties', {
+ query: {
+ view: 'board',
+ status: args?.status || 'open',
+ sort: args?.sort || 'recency',
+ limit: args?.limit,
+ offset: args?.offset,
+ },
+ });
+ return { ok: true, ...data };
+ },
+};
diff --git a/packages/vanity-mcp/src/tools/vanity-open.js b/packages/vanity-mcp/src/tools/vanity-open.js
new file mode 100644
index 000000000..bfb8ca0cf
--- /dev/null
+++ b/packages/vanity-mcp/src/tools/vanity-open.js
@@ -0,0 +1,29 @@
+// `vanity_open` — the claimable bounty queue workers poll. Read-only.
+//
+// Wraps GET /api/vanity/bounties?view=open. Live queue of open, unexpired
+// bounties — changes constantly, so NOT idempotent.
+
+import { z } from 'zod';
+
+import { apiRequest } from '../lib/api.js';
+
+export const def = {
+ name: 'vanity_open',
+ title: 'List claimable open bounties for workers',
+ annotations: { readOnlyHint: true, idempotentHint: false, openWorldHint: true },
+ description:
+ 'List the open, unexpired bounties a grinding worker can race to claim — the queue worker fleets poll. Each entry carries the pattern to grind and the escrowed USDC reward; the first worker to submit a verified, sealed key wins. Read-only discovery; submitting a claim is a separate write on the HTTP API.',
+ inputSchema: {
+ limit: z.number().int().min(1).max(100).optional().describe('Max claimable bounties to return (1–100, default 30).'),
+ },
+ async handler(args) {
+ const data = await apiRequest('/api/vanity/bounties', {
+ query: { view: 'open', limit: args?.limit },
+ });
+ return {
+ ok: true,
+ bounties: data?.bounties ?? [],
+ count: data?.count ?? (Array.isArray(data?.bounties) ? data.bounties.length : 0),
+ };
+ },
+};
diff --git a/packages/vanity-mcp/src/tools/vanity-stats.js b/packages/vanity-mcp/src/tools/vanity-stats.js
new file mode 100644
index 000000000..bcf4f81f7
--- /dev/null
+++ b/packages/vanity-mcp/src/tools/vanity-stats.js
@@ -0,0 +1,19 @@
+// `vanity_stats` — live market totals. Read-only.
+//
+// Wraps GET /api/vanity/bounties?view=stats. Live aggregates (open count,
+// escrowed, paid out) change as the market moves — NOT idempotent.
+
+import { apiRequest } from '../lib/api.js';
+
+export const def = {
+ name: 'vanity_stats',
+ title: 'Live grind-bounty market totals',
+ annotations: { readOnlyHint: true, idempotentHint: false, openWorldHint: true },
+ description:
+ 'Get live totals for the grind-bounty market: how many bounties are open, how much USDC is currently escrowed, and how much has been paid out to winning workers. A quick pulse on market activity. Read-only, no params.',
+ inputSchema: {},
+ async handler() {
+ const data = await apiRequest('/api/vanity/bounties', { query: { view: 'stats' } });
+ return { ok: true, ...data };
+ },
+};
diff --git a/src/trader.css b/src/trader.css
index 961778f10..fafecdd64 100644
--- a/src/trader.css
+++ b/src/trader.css
@@ -273,6 +273,31 @@
.tp-oracle-kpi b { font: 700 15px/1 var(--mono); }
.tp-oracle-note { font-size: 11.5px; color: var(--ink-faint); margin: 0; padding: 10px 16px; }
+/* Projected-vs-realized */
+.tp-proj-conf {
+ font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em;
+ padding: 4px 9px; border-radius: 999px; border: 1px solid currentColor;
+}
+.tp-proj-high { color: var(--pos, #4ade80); }
+.tp-proj-medium { color: var(--warn, #fbbf24); }
+.tp-proj-low { color: var(--ink-dim, #888); }
+.tp-proj-grid { display: flex; flex-direction: column; }
+.tp-proj-row {
+ display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center;
+ gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--stroke);
+}
+.tp-proj-row:last-child { border-bottom: none; }
+.tp-proj-head { padding-top: 10px; padding-bottom: 10px; }
+.tp-proj-head b { font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
+.tp-proj-k { font: 600 12px/1.2 var(--sans, inherit); color: var(--ink-dim); }
+.tp-proj-proj, .tp-proj-real { font: 700 14px/1 var(--mono); text-align: right; }
+.tp-proj-proj { color: var(--ink); opacity: .82; }
+.tp-proj-real { color: var(--ink); }
+@media (max-width: 520px) {
+ .tp-proj-k { font-size: 11px; }
+ .tp-proj-proj, .tp-proj-real { font-size: 12.5px; }
+}
+
/* Toast for copy-link */
.tp-toast {
position: fixed;