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
style(tests,kol-mcp): purge banned em-dashes from batch-14's new comments and describe titles
nirholas8899eacc7f05
diff --git a/packages/kol-mcp/README.md b/packages/kol-mcp/README.mdindex 406d0b840..10cb5c568 100644--- a/packages/kol-mcp/README.md+++ b/packages/kol-mcp/README.md@@ -4,7 +4,7 @@<h1 align="center">@three-ws/kol-mcp</h1>-<p align="center"><strong>Track one smart trader — a tracked KOL wallet's holdings, real on-chain P&L, and its trades on a given mint, from any AI agent.</strong></p>+<p align="center"><strong>Track one smart trader: a tracked KOL wallet's holdings, real on-chain P&L, and its trades on a given mint, from any AI agent.</strong></p><p align="center"><a href="https://www.npmjs.com/package/@three-ws/kol-mcp"><img alt="npm" src="https://img.shields.io/npm/v/@three-ws/kol-mcp?logo=npm&color=cb3837"></a>@@ -16,9 +16,9 @@----> A [Model Context Protocol](https://modelcontextprotocol.io) server for the **per-wallet KOL deep dive**. Where [`@three-ws/intel-mcp`](https://www.npmjs.com/package/@three-ws/intel-mcp) ranks the whole tracked KOL set (`kol_leaderboard`) and shows everyone's trades on a mint (`kol_trades`), this server zooms in on **one** smart trader: pull their live portfolio card (holdings plus real on-chain P&L), then inspect their own buys/sells of a specific token — everything an agent needs to decide whether to copy or analyze them.+> A [Model Context Protocol](https://modelcontextprotocol.io) server for the **per-wallet KOL deep dive**. Where [`@three-ws/intel-mcp`](https://www.npmjs.com/package/@three-ws/intel-mcp) ranks the whole tracked KOL set (`kol_leaderboard`) and shows everyone's trades on a mint (`kol_trades`), this server zooms in on **one** smart trader: pull their live portfolio card (holdings plus real on-chain P&L), then inspect their own buys/sells of a specific token: everything an agent needs to decide whether to copy or analyze them.-Holdings come from the three.ws Birdeye proxy (the Birdeye key lives server-side); P&L is FIFO-computed from the wallet's own on-chain trades, and trade history comes from the three.ws Helius-backed KOL feed. All live, read-only — no API key, signer, or payment on the client. Point `THREE_WS_BASE` at a deployment and go.+Holdings come from the three.ws Birdeye proxy (the Birdeye key lives server-side); P&L is FIFO-computed from the wallet's own on-chain trades, and trade history comes from the three.ws Helius-backed KOL feed. All live, read-only: no API key, signer, or payment on the client. Point `THREE_WS_BASE` at a deployment and go.## Install@@ -111,7 +111,7 @@ Both tools read live data: holdings, P&L and trade feeds move between calls, so}```-`has_activity: false` on a portfolio (no holdings and no trades) means the proxy has no recorded history for that address yet — an honest "no data", not a failure. A **null** P&L field with `pnl_source: null` is the same kind of honesty at field level: three.ws has no trade history for that wallet in the window, so it reports nothing rather than a zero that would read as a flat record.+`has_activity: false` on a portfolio (no holdings and no trades) means the proxy has no recorded history for that address yet: an honest "no data", not a failure. A **null** P&L field with `pnl_source: null` is the same kind of honesty at field level: three.ws has no trade history for that wallet in the window, so it reports nothing rather than a zero that would read as a flat record.## Requirementsdiff --git a/packages/kol-mcp/src/index.js b/packages/kol-mcp/src/index.jsindex 4068ab8bd..3025d682d 100755--- a/packages/kol-mcp/src/index.js+++ b/packages/kol-mcp/src/index.js@@ -5,11 +5,11 @@// (kol_leaderboard) and shows everyone's trades on a mint (kol_trades), this// server is the per-wallet deep dive: one tracked trader's portfolio P&L and// their own trades on a given token, for copy/analysis decisions.-// • get_wallet_portfolio — a KOL wallet's holdings + real on-chain P&L card+// • get_wallet_portfolio: a KOL wallet's holdings + real on-chain P&L card// • get_wallet_trades — that wallet's recent trades on a given mint//// A thin wrapper over the PUBLIC three.ws KOL API. No keys, no signer, no-// payment on the client — the Birdeye key that backs the holdings half lives+// payment on the client; the Birdeye key that backs the holdings half lives// server-side on three.ws. Point THREE_WS_BASE at a deployment and go.//// Run standalone:diff --git a/tests/api/friends-mutations.test.js b/tests/api/friends-mutations.test.jsindex abea38649..3f4074a79 100644--- a/tests/api/friends-mutations.test.js+++ b/tests/api/friends-mutations.test.js@@ -1,4 +1,4 @@-// POST /api/friends — the graph-mutation contract.+// POST /api/friends: the graph-mutation contract.//// One endpoint fans out to six store actions, so the dispatch table and the// input guards in front of it are the whole security surface: an unknown action@@ -86,7 +86,7 @@ async function post(payload) {return { res, body };}-// Every store call this suite could possibly reach — used to assert that a+// Every store call this suite could possibly reach, used to assert that a// rejected request mutated nothing at all, not merely that one action was skipped.const mutators = () => [store.sendRequest, store.acceptRequest, store.declineRequest,diff --git a/tests/api/friends-search-ticket.test.js b/tests/api/friends-search-ticket.test.jsindex 0ecbf969e..dbfb1fbf3 100644--- a/tests/api/friends-search-ticket.test.js+++ b/tests/api/friends-search-ticket.test.js@@ -1,4 +1,4 @@-// /api/friends/search and /api/friends/presence-ticket — the two read-only+// /api/friends/search and /api/friends/presence-ticket: the two read-only// friends endpoints.//// The search endpoint hands its term straight to an ILIKE wrapped in wildcards,@@ -113,7 +113,7 @@ describe('GET /api/friends/presence-ticket', () => {expect(res.statusCode).toBe(200);expect(body.data).toEqual({ token: 'payload.sig', expiresIn: 600 });// The ticket is bound to the resolved account, never to anything the- // client sent — that binding is the whole point of the endpoint.+ // client sent; that binding is the whole point of the endpoint.expect(signPresenceTicket).toHaveBeenCalledWith(ME);});diff --git a/tests/api/mcp-3d-challenge.test.js b/tests/api/mcp-3d-challenge.test.jsindex 38d1ba3d1..9a7911ed8 100644--- a/tests/api/mcp-3d-challenge.test.js+++ b/tests/api/mcp-3d-challenge.test.js@@ -271,7 +271,7 @@ describe('studioX402Amount', () => {// An unpriced tool is served free, so a new GPU-backed tool that lands in the// catalog without a TOOL_PRICING entry silently gives away generation-grade-// compute — the exact regression api/_mcp3d/pricing.js exists to prevent. These+// compute, the exact regression api/_mcp3d/pricing.js exists to prevent. These// assertions force every catalog tool to be a deliberate paid-or-free decision.describe('studio pricing classification covers the whole catalog', () => {const catalogNames = TOOL_CATALOG.map((t) => t.name);diff --git a/tests/embed-doctor.test.js b/tests/embed-doctor.test.jsindex a9bc00b61..2e3c38634 100644--- a/tests/embed-doctor.test.js+++ b/tests/embed-doctor.test.js@@ -246,7 +246,7 @@ describe('analyze — the element', () => {// <three-ws> rather than <agent-3d>, and it is what the gated-embed snippet in// api/embed/gate-create.js hands developers. The doctor accepted that loader// but knew only the canonical tag, so a working v1 embed came back "broken".-describe('analyze — the v1 loader element aliases', () => {+describe('analyze: the v1 loader element aliases', () => {const V1_LOADER = 'https://three.ws/embed/v1.js';function v1Observations(elementOverrides = {}) {@@ -300,7 +300,7 @@ describe('analyze — the v1 loader element aliases', () => {// thread gets its page closed by the watchdog in collectFrom*. What comes back// then is "we could not look", and the report has to say exactly that instead of// claiming the developer's element is missing.-describe('analyze — a page that could not be inspected', () => {+describe('analyze: a page that could not be inspected', () => {it('reports inconclusive rather than inventing a missing element', () => {const report = analyze(healthyObservations({ element: null, probeFailed: true, timedOut: true }),diff --git a/tests/friends-store-mute-and-cursor.test.js b/tests/friends-store-mute-and-cursor.test.jsindex b70e112f0..2cf8f84be 100644--- a/tests/friends-store-mute-and-cursor.test.js+++ b/tests/friends-store-mute-and-cursor.test.js@@ -1,19 +1,19 @@// friends-store: two places where a well-formed caller input reached Postgres// unchecked and the failure surfaced as the wrong thing entirely.//-// muteUser() — user_mutes.muted_id is a foreign key to users(id). Muting an+// muteUser(): user_mutes.muted_id is a foreign key to users(id). Muting an// id that no longer exists raised a bare 23503 with no `status`// on it, so api/_lib/http.js wrap() could only report a 500,// complete with a Sentry capture and an ops alert, for what is// a caller mistake. sendRequest() already answered 404 for the// same input; muteUser now matches it.//-// getThread() — the `before` cursor was resolved with+// getThread(): the `before` cursor was resolved with// `created_at < (select created_at from direct_messages where// id = $cursor)`, unscoped. Two consequences: a caller could// page against the timestamp of a message in someone else's// thread, and an unknown or stale cursor made the comparison-// `created_at < null`, which matches nothing — so the endpoint+// `created_at < null`, which matches nothing, so the endpoint// answered "no older messages" instead of admitting the cursor// was bad, and the client stopped paginating on a lie.//diff --git a/tests/mocap-clips-endpoint.test.js b/tests/mocap-clips-endpoint.test.jsindex 0d42f4706..42aeb1be1 100644--- a/tests/mocap-clips-endpoint.test.js+++ b/tests/mocap-clips-endpoint.test.js@@ -1,4 +1,4 @@-// api/mocap/clips.js + api/mocap/[id].js — the mocap clip store's HTTP surface.+// api/mocap/clips.js + api/mocap/[id].js: the mocap clip store's HTTP surface.//// Covers the success path and the failure path of every method, plus the two// boundaries that used to be wrong: the `:idOrSlug` segment (the published