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
Sync workspace: motion prompts, shared utilities docs, hood-mcp docs build
nirholas81aa62a82612
diff --git a/api/_lib/seed-prompts.js b/api/_lib/seed-prompts.jsindex a9ff95ea2..892098892 100644--- a/api/_lib/seed-prompts.js+++ b/api/_lib/seed-prompts.js@@ -1,12 +1,24 @@// @ts-check-// Curated prompt pool for the forge auto-seed cron. Every prompt targets the-// FLUX text→image → TRELLIS image→3D pipeline. Realistic human subjects with-// strong silhouettes and clear costume detail produce the best meshes at draft-// quality — avoid thin objects, transparent materials, and busy backgrounds.+// Curated prompt pool for the forge auto-seed cron and the bulk batch runner+// (scripts/gcp/seed-avatars.mjs). Every prompt targets the FLUX text→image →+// TRELLIS image→3D pipeline. Realistic human subjects with strong silhouettes+// and clear costume detail produce the best meshes at draft quality — avoid thin+// objects, transparent materials, and busy backgrounds.//-// Two categories: 'avatar' (realistic human characters) and 'accessory'-// (real-world wearables and carried items). The cron alternates so the gallery-// builds a coherent human character ecosystem.+// Two categories: 'avatar' (humanoid characters — realistic, fantasy, sci-fi,+// stylized) and 'accessory' (real-world wearables, carried items, and sculpted+// creature props). The cron alternates so the gallery builds a coherent+// character ecosystem rather than a pile of unrelated objects.+//+// Rig-readiness is the product bar: a catalog avatar exists to be animated, so+// every avatar prompt is rendered through `composeSeedPrompt()` before it hits+// the generator, which appends the full-body / arms-clear / neutral-stance+// framing the auto-rigger needs. Write new avatar prompts as *subject ++// costume*; do not bake framing into the string, or it will be stated twice.+//+// Coin-neutral by rule: no prompt references any crypto project (commit gate in+// CLAUDE.md). Prompts are also brand-neutral — describe the garment, not a+// trademark./** @typedef {{ prompt: string, category: 'avatar' | 'accessory', theme: string }} SeedPrompt */@@ -72,6 +84,108 @@ export const SEED_PROMPTS = [{ prompt: 'an asian woman in a full harajuku coord with layered accessories, knee socks and platforms, portrait', category: 'avatar', theme: 'subculture' },{ prompt: 'a south asian woman in a modern fusion sari-draped outfit, street fashion editorial portrait', category: 'avatar', theme: 'subculture' },+ // Professions & trades — the working world, in uniform+ { prompt: 'a black woman firefighter in full turnout gear with reflective stripes and a helmet under one arm', category: 'avatar', theme: 'profession' },+ { prompt: 'an east asian man chef in a double-breasted white jacket, check trousers and a folded apron', category: 'avatar', theme: 'profession' },+ { prompt: 'a white woman airline pilot in a navy uniform with epaulettes and a peaked cap', category: 'avatar', theme: 'profession' },+ { prompt: 'a hispanic man construction worker in a hi-vis vest, hard hat, tool belt and work boots', category: 'avatar', theme: 'profession' },+ { prompt: 'a south asian woman surgeon in teal scrubs, cap and clogs, mask pulled down around the neck', category: 'avatar', theme: 'profession' },+ { prompt: 'a black man train conductor in a dark uniform coat with brass buttons and a flat cap', category: 'avatar', theme: 'profession' },+ { prompt: 'a white man auto mechanic in navy coveralls with rolled sleeves and a shop rag in the pocket', category: 'avatar', theme: 'profession' },+ { prompt: 'a middle eastern woman architect in a crisp white shirt, wide trousers and a canvas tube bag', category: 'avatar', theme: 'profession' },+ { prompt: 'an east asian woman barista in a denim apron over a plain tee, sleeves pushed up', category: 'avatar', theme: 'profession' },+ { prompt: 'a black woman scientist in a white lab coat over a knit top, safety glasses pushed up on the head', category: 'avatar', theme: 'profession' },+ { prompt: 'a white woman farmer in a waxed jacket, work jeans and rubber boots with a wide-brim hat', category: 'avatar', theme: 'profession' },+ { prompt: 'a latino man commercial fisherman in bright orange waterproof bibs and a wool beanie', category: 'avatar', theme: 'profession' },+ { prompt: 'a south asian man tailor in a fitted waistcoat and shirtsleeves with a measuring tape around the neck', category: 'avatar', theme: 'profession' },+ { prompt: 'a white man carpenter in a canvas apron over a flannel shirt, pencil behind the ear', category: 'avatar', theme: 'profession' },+ { prompt: 'a black man paramedic in a green high-visibility jumpsuit with a shoulder radio', category: 'avatar', theme: 'profession' },+ { prompt: 'an east asian woman ceramicist in a clay-streaked linen apron with hair tied back', category: 'avatar', theme: 'profession' },+ { prompt: 'a white woman veterinarian in navy scrubs and a fleece vest with a stethoscope', category: 'avatar', theme: 'profession' },+ { prompt: 'a middle eastern man baker in a flour-dusted white apron and rolled-up sleeves', category: 'avatar', theme: 'profession' },+ { prompt: 'a black woman electrician in a utility jumpsuit with an insulated tool pouch and gloves', category: 'avatar', theme: 'profession' },+ { prompt: 'a hispanic woman park ranger in an olive uniform shirt, brimmed hat and radio harness', category: 'avatar', theme: 'profession' },+ { prompt: 'a white man welder in a leather apron, heavy gloves and a flip-up welding mask on the forehead', category: 'avatar', theme: 'profession' },+ { prompt: 'a south asian woman flight attendant in a tailored uniform dress with a neck scarf', category: 'avatar', theme: 'profession' },+ { prompt: 'an east asian man deep sea diver in a neoprene wetsuit with a buoyancy vest and mask on the forehead', category: 'avatar', theme: 'profession' },+ { prompt: 'a black man photographer in a utility vest over a hoodie with a camera strap across the chest', category: 'avatar', theme: 'profession' },++ // Fantasy — humanoid heroes, clean silhouettes+ { prompt: 'a knight in polished steel plate armour with a surcoat and a longsword sheathed at the hip', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a female elf ranger in layered green leather armour with a quiver and a braided side plait', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a dwarf blacksmith in a heavy leather apron over chainmail with a braided beard', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a wizard in deep blue embroidered robes with a rune-carved staff and a long white beard', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a female battle cleric in white and gold plate with a tabard and a heavy round shield', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a hooded rogue in dark layered leathers with buckled straps and twin daggers at the belt', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a barbarian warrior in fur-trimmed hide armour with painted war markings and a great axe', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a female druid in a moss-green cloak with wooden bead jewellery and a carved oak staff', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a desert nomad warrior in flowing sand-coloured robes with wrapped forearms and a curved blade', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a female pirate captain in a long coat with a wide belt, tricorn hat and tall cuffed boots', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a samurai in lacquered lamellar armour with a shoulder guard and a katana at the waist', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a female monk in simple saffron wrapped robes with a rope belt and bare forearms', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a viking shieldmaiden in a riveted mail shirt with a fur mantle and a round painted shield', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a plague doctor in a long waxed coat, wide-brim hat and a beaked leather mask', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a female sorceress in a flowing violet gown with gold arm cuffs and a crystal pendant', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a forest hunter in a fur-lined hood and layered wool tunic with a longbow across the back', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a royal guard in ceremonial gold-trimmed armour with a tall plumed helmet and a spear', category: 'avatar', theme: 'fantasy' },+ { prompt: 'a female alchemist in a leather harness over a linen shirt with vial pouches and goggles', category: 'avatar', theme: 'fantasy' },++ // Sci-fi — hard surfaces read well in reconstruction+ { prompt: 'an astronaut in a white hard-shell spacesuit with a gold-visored helmet and chest control panel', category: 'avatar', theme: 'scifi' },+ { prompt: 'a female deep-space engineer in a padded orange flight suit with utility straps and heavy boots', category: 'avatar', theme: 'scifi' },+ { prompt: 'a cyberpunk courier in a black techwear jacket with reflective panels and a segmented backpack', category: 'avatar', theme: 'scifi' },+ { prompt: 'a female android in a matte white ceramic exosuit with visible joint seams and glowing blue accents', category: 'avatar', theme: 'scifi' },+ { prompt: 'a heavy power-armour soldier in matte grey armoured plating with shoulder pauldrons', category: 'avatar', theme: 'scifi' },+ { prompt: 'a female colony medic in a light blue hazard suit with a transparent visor and a shoulder kit', category: 'avatar', theme: 'scifi' },+ { prompt: 'a mech pilot in a fitted flight harness over a padded bodysuit with a headset collar', category: 'avatar', theme: 'scifi' },+ { prompt: 'a female bounty hunter in worn composite armour with a patched cape and a utility belt', category: 'avatar', theme: 'scifi' },+ { prompt: 'a desert scavenger in wrapped cloth over a mismatched armour rig with tinted goggles', category: 'avatar', theme: 'scifi' },+ { prompt: 'a female orbital station technician in a grey jumpsuit with magnetic boots and a tool harness', category: 'avatar', theme: 'scifi' },+ { prompt: 'a stealth operative in a sleek dark bodysuit with a slim chest rig and a low-profile visor', category: 'avatar', theme: 'scifi' },+ { prompt: 'a female starship captain in a structured uniform jacket with rank piping and tall boots', category: 'avatar', theme: 'scifi' },+ { prompt: 'a biodome researcher in a sealed white containment suit with a backpack filtration unit', category: 'avatar', theme: 'scifi' },+ { prompt: 'a female drone operator in a padded flight vest over a technical hoodie with a wrist console', category: 'avatar', theme: 'scifi' },++ // Historical & cultural dress+ { prompt: 'a roman legionary in segmented armour with a red tunic, rectangular shield and crested helmet', category: 'avatar', theme: 'historical' },+ { prompt: 'a woman in an edwardian walking dress with a high collar, fitted jacket and long skirt', category: 'avatar', theme: 'historical' },+ { prompt: 'a 1920s jazz musician in a pinstripe three-piece suit with a fedora and two-tone shoes', category: 'avatar', theme: 'historical' },+ { prompt: 'a woman in a 1950s swing dress with a cinched waist, petticoat and kitten heels', category: 'avatar', theme: 'historical' },+ { prompt: 'an american frontier ranch hand in a duster coat, wide-brim hat and leather chaps', category: 'avatar', theme: 'historical' },+ { prompt: 'a woman in a hand-embroidered mexican folk dress with a wide sash and braided hair ribbons', category: 'avatar', theme: 'historical' },+ { prompt: 'a man in a highland kilt with a tweed jacket, sporran and knee socks', category: 'avatar', theme: 'historical' },+ { prompt: 'a woman in a layered japanese kimono with an obi sash and wooden sandals', category: 'avatar', theme: 'historical' },+ { prompt: 'a west african man in a flowing embroidered agbada robe with a matching cap', category: 'avatar', theme: 'historical' },+ { prompt: 'a woman in a bright andean woven skirt with layered shawls and a bowler hat', category: 'avatar', theme: 'historical' },+ { prompt: 'a man in a korean hanbok with a wide-sleeved jacket and full trousers', category: 'avatar', theme: 'historical' },+ { prompt: 'a woman in a scandinavian folk costume with an embroidered bodice, apron and silver brooch', category: 'avatar', theme: 'historical' },+ { prompt: 'a 1970s musician in a wide-lapel corduroy suit with a patterned shirt and platform boots', category: 'avatar', theme: 'historical' },+ { prompt: 'a woman in a 1980s power blazer with shoulder pads, a pencil skirt and bold earrings', category: 'avatar', theme: 'historical' },++ // Stylized — non-photoreal art directions that still rig cleanly+ { prompt: 'a stylized cartoon adventurer with exaggerated proportions, a big backpack and chunky boots', category: 'avatar', theme: 'stylized' },+ { prompt: 'a chibi-proportioned schoolgirl character with a large head, small body and a pleated skirt', category: 'avatar', theme: 'stylized' },+ { prompt: 'a clay-sculpted stop-motion style character in a knitted sweater with visible fingerprint texture', category: 'avatar', theme: 'stylized' },+ { prompt: 'a low-poly flat-shaded traveller character in a bright jacket with faceted geometry', category: 'avatar', theme: 'stylized' },+ { prompt: 'a cel-shaded anime swordsman with spiky hair, a long coat and bold outlines', category: 'avatar', theme: 'stylized' },+ { prompt: 'a soft vinyl toy style character with glossy plastic skin, oversized shoes and simple features', category: 'avatar', theme: 'stylized' },+ { prompt: 'a papercraft-styled explorer character with folded planar surfaces and matte paper texture', category: 'avatar', theme: 'stylized' },+ { prompt: 'a stylized pixar-like hero with rounded features, a fitted vest and expressive posture', category: 'avatar', theme: 'stylized' },+ { prompt: 'a knitted wool doll character with visible stitching, button eyes and a striped scarf', category: 'avatar', theme: 'stylized' },+ { prompt: 'a stylized cyber-ninja with a smooth featureless mask, a sculpted bodysuit and a wrapped sash', category: 'avatar', theme: 'stylized' },+ { prompt: 'a wooden articulated artist mannequin figure with visible ball joints and grain texture', category: 'avatar', theme: 'stylized' },+ { prompt: 'a stylized retro-futurist robot butler with a rounded chrome body, bow tie and jointed arms', category: 'avatar', theme: 'stylized' },++ // Performance & stage+ { prompt: 'a ballet dancer in a fitted leotard, wrap skirt and pointe shoes with hair in a bun', category: 'avatar', theme: 'performance' },+ { prompt: 'a circus ringmaster in a red tailcoat, top hat and high polished boots', category: 'avatar', theme: 'performance' },+ { prompt: 'a stage magician in a black tuxedo with a satin-lined cape and white gloves', category: 'avatar', theme: 'performance' },+ { prompt: 'a rock singer in a studded leather jacket, ripped jeans and heeled boots with a mic stand', category: 'avatar', theme: 'performance' },+ { prompt: 'a mime performer in a striped shirt, suspenders and white face paint', category: 'avatar', theme: 'performance' },+ { prompt: 'a female opera singer in a floor-length beaded gown with long gloves', category: 'avatar', theme: 'performance' },+ { prompt: 'a street breakdancer in a tracksuit and snapback with knee pads and clean sneakers', category: 'avatar', theme: 'performance' },+ { prompt: 'a carnival dancer in a feathered headdress and sequinned costume with beaded fringe', category: 'avatar', theme: 'performance' },+// ── ACCESSORIES — real-world wearables & carried items ───────────────────// Footwear@@ -136,8 +250,102 @@ export const SEED_PROMPTS = [{ prompt: 'a wide leather belt in cognac brown with a silver square buckle', category: 'accessory', theme: 'belt' },{ prompt: 'a silk pocket square in a deep burgundy paisley pattern, folded in a TV fold', category: 'accessory', theme: 'accessory' },{ prompt: 'a pair of black leather gloves with a cashmere lining, classic style, product shot', category: 'accessory', theme: 'gloves' },++ // Tools & workshop+ { prompt: 'a claw hammer with a hickory handle and a forged steel head, studio product shot', category: 'accessory', theme: 'tool' },+ { prompt: 'a cordless power drill in matte black and yellow with a chuck and battery pack', category: 'accessory', theme: 'tool' },+ { prompt: 'an adjustable steel wrench with a knurled thumb wheel and a worn chrome finish', category: 'accessory', theme: 'tool' },+ { prompt: 'a red steel toolbox with a folding handle and two latching clasps, closed', category: 'accessory', theme: 'tool' },+ { prompt: 'a wooden-handled hand plane with a brass adjustment knob and a steel blade', category: 'accessory', theme: 'tool' },+ { prompt: 'a pair of heavy-duty bolt cutters with long red rubber grips', category: 'accessory', theme: 'tool' },++ // Musical instruments+ { prompt: 'a sunburst electric guitar with chrome hardware and a maple neck, product shot', category: 'accessory', theme: 'instrument' },+ { prompt: 'a brass trumpet with three valves and a flared bell, polished lacquer finish', category: 'accessory', theme: 'instrument' },+ { prompt: 'a wooden acoustic violin with an ebony fingerboard and a shaped bridge', category: 'accessory', theme: 'instrument' },+ { prompt: 'a compact snare drum with a chrome shell, tension rods and a coated head', category: 'accessory', theme: 'instrument' },+ { prompt: 'a pair of studio headphones on a folding steel headband with leather ear cups', category: 'accessory', theme: 'instrument' },++ // Sports & outdoor gear+ { prompt: 'a leather american football with raised white laces and a pebbled surface', category: 'accessory', theme: 'sports' },+ { prompt: 'an orange basketball with deep black seams and a dimpled rubber surface', category: 'accessory', theme: 'sports' },+ { prompt: 'a black and white panelled soccer ball with a matte finish', category: 'accessory', theme: 'sports' },+ { prompt: 'a matte black bicycle helmet with vent channels and an adjustable dial at the rear', category: 'accessory', theme: 'sports' },+ { prompt: 'a wooden skateboard deck with metal trucks and orange urethane wheels, underside up', category: 'accessory', theme: 'sports' },+ { prompt: 'a rolled camping sleeping bag in dark green with a compression strap', category: 'accessory', theme: 'sports' },+ { prompt: 'a hiking backpack in slate blue with external straps, a hip belt and a top lid pocket', category: 'accessory', theme: 'sports' },+ { prompt: 'a pair of red boxing gloves with white laces and a padded wrist cuff', category: 'accessory', theme: 'sports' },++ // Home & desk objects+ { prompt: 'a ceramic mug in matte speckled grey with a rounded handle, studio product shot', category: 'accessory', theme: 'home' },+ { prompt: 'a brass desk lamp with an articulated arm and a domed shade', category: 'accessory', theme: 'home' },+ { prompt: 'a stack of three hardcover books with cloth-bound spines and gilt lettering', category: 'accessory', theme: 'home' },+ { prompt: 'a hand-thrown stoneware vase with a wide belly and a narrow neck, glazed in deep blue', category: 'accessory', theme: 'home' },+ { prompt: 'a vintage rotary telephone in cream bakelite with a coiled cord and a metal dial', category: 'accessory', theme: 'home' },+ { prompt: 'a wooden chess knight piece carved with a flowing mane on a felt-lined base', category: 'accessory', theme: 'home' },++ // Sculpted animal props — display figures, not rigged creatures+ { prompt: 'a carved wooden elephant figurine standing on all four legs with detailed grain', category: 'accessory', theme: 'creature-prop' },+ { prompt: 'a polished bronze horse statuette rearing on a rectangular plinth', category: 'accessory', theme: 'creature-prop' },+ { prompt: 'a ceramic sitting cat figurine in glossy white with painted eyes', category: 'accessory', theme: 'creature-prop' },+ { prompt: 'a stone owl garden statue perched on a short post with weathered texture', category: 'accessory', theme: 'creature-prop' },+ { prompt: 'a resin model of a coiled dragon with layered scales on a rocky base', category: 'accessory', theme: 'creature-prop' },+ { prompt: 'a painted wooden duck decoy with a smooth body and glass eyes', category: 'accessory', theme: 'creature-prop' },+ { prompt: 'a jade carved turtle ornament with an engraved shell pattern', category: 'accessory', theme: 'creature-prop' },+ { prompt: 'a plush teddy bear with stitched paw pads, a fabric nose and a ribbon bow', category: 'accessory', theme: 'creature-prop' },+ { prompt: 'a detailed resin model of a standing wolf with a thick fur coat on a snow base', category: 'accessory', theme: 'creature-prop' },+ { prompt: 'a small brass rabbit paperweight with polished ears and a matte body', category: 'accessory', theme: 'creature-prop' },];+// Framing directives appended to every AVATAR prompt before generation.+//+// A catalog avatar exists to be animated: the auto-rigger needs the whole body+// visible, arms clear of the torso, and a neutral standing stance to place a+// humanoid skeleton. Left to itself the text→image stage happily returns a+// waist-up "studio portrait" (many of the original prompts literally say+// "portrait"), which reconstructs into a half-body bust that can never rig. This+// suffix is the one place that bar is enforced, so a prompt author never has to+// remember it.+export const AVATAR_FRAMING =+ 'full body visible from head to feet, standing straight and facing the camera, ' ++ 'arms relaxed slightly away from the torso, hands open with fingers separated, ' ++ 'feet flat and shoulder width apart, plain seamless studio background, even lighting, single subject';++// Framing for accessory / prop subjects: isolated, grounded, no scene.+export const ACCESSORY_FRAMING =+ 'single object centered in frame, plain seamless studio background, even lighting, no hands, no people';++// Render a library entry into the exact string sent to /api/forge. Idempotent by+// construction (the framing text is never part of the stored prompt), so the+// cron's "recently used" de-duplication still keys on the library string.+/** @param {SeedPrompt} entry */+export function composeSeedPrompt(entry) {+ const base = String(entry?.prompt || '').trim();+ if (!base) return '';+ const framing = entry?.category === 'accessory' ? ACCESSORY_FRAMING : AVATAR_FRAMING;+ return `${base}, ${framing}`;+}++// Deterministic id for a prompt — the batch runner's checkpoint key and the+// avatar slug seed. Stable across runs because it is derived from the prompt+// text itself, so re-running a batch never re-generates a completed item.+/** @param {SeedPrompt} entry */+export function seedPromptId(entry) {+ const base = String(entry?.prompt || '')+ .toLowerCase()+ .replace(/[^a-z0-9]+/g, '-')+ .replace(/^-+|-+$/g, '');+ // FNV-1a over the full prompt: short, collision-safe enough for a few+ // thousand entries, and needs no crypto import in either runtime.+ let hash = 0x811c9dc5;+ const text = String(entry?.prompt || '');+ for (let i = 0; i < text.length; i += 1) {+ hash ^= text.charCodeAt(i);+ hash = Math.imul(hash, 0x01000193) >>> 0;+ }+ return `${base.slice(0, 48)}-${hash.toString(16).padStart(8, '0')}`;+}+// OG username pool — short common English words that look like someone grabbed// them on day one. The cron tries the bare word first; if taken it appends an// incrementing number (wolf2, wolf3 …) to stay unique without looking synthetic.diff --git a/chat/src/App.svelte b/chat/src/App.svelteindex 537f5f28a..ea9652b9e 100644--- a/chat/src/App.svelte+++ b/chat/src/App.svelte@@ -1659,6 +1659,34 @@console.warn('[forge-avatar] bootstrap failed:', err);}+ // Refresh installed curated packs in place when their tool definitions+ // have changed. The bootstraps above persist the tool BODY into the+ // toolSchema store, so users who installed an older pack (e.g. the+ // iframe-based 3D viewer) would keep executing the stale body forever+ // without this. Matching by group name updates only packs the user+ // still has installed; removal stays honored.+ try {+ let packsChanged = false;+ const refreshed = $toolSchema.map((group) => {+ const pack = curatedToolPacks.find((p) => p.name === group.name);+ if (!pack) return group;+ const same =+ group.schema?.length === pack.schema.length &&+ group.schema.every(+ (t, ti) =>+ t.clientDefinition?.id === pack.schema[ti].clientDefinition?.id &&+ t.clientDefinition?.body === pack.schema[ti].clientDefinition?.body &&+ t.function?.description === pack.schema[ti].function?.description+ );+ if (same) return group;+ packsChanged = true;+ return { ...group, schema: pack.schema };+ });+ if (packsChanged) $toolSchema = refreshed;+ } catch (err) {+ console.warn('[tool-packs] refresh failed:', err);+ }+// When the user installs a Local skill from the Skills modal, auto-enable// the new tools in the current conversation so the LLM can call them on// the next turn â same UX as the x402-pay bootstrap above, butdiff --git a/data/motion-prompts.json b/data/motion-prompts.jsonnew file mode 100644index 000000000..ad4b0772b--- /dev/null+++ b/data/motion-prompts.json@@ -0,0 +1,168 @@+{+ "version": 1,+ "description": "Curated text prompt library for the generative text-to-motion catalog. Each entry is generated through POST /api/forge-motion (the self-hosted GCP text2motion worker), quality-gated, then published to the R2 prefix animations/library/generated/ and surfaced by GET /api/animations/library alongside the Mixamo-sourced clips. Categories mirror the browse facets on /animations so a generated clip lands in the same taxonomy a curated one does.",+ "defaults": {+ "duration_seconds": 4,+ "fps": 30+ },+ "categories": [+ { "id": "locomotion", "label": "Locomotion", "icon": "🚶" },+ { "id": "idle", "label": "Idles", "icon": "🧍" },+ { "id": "emote", "label": "Emotes", "icon": "👋" },+ { "id": "dance", "label": "Dance", "icon": "💃" },+ { "id": "combat", "label": "Combat", "icon": "🥊" },+ { "id": "sport", "label": "Sport", "icon": "🏅" },+ { "id": "interaction", "label": "Interactions", "icon": "🤝" },+ { "id": "reaction", "label": "Reactions", "icon": "😲" },+ { "id": "traversal", "label": "Traversal", "icon": "🧗" },+ { "id": "expressive", "label": "Expressive", "icon": "🎭" }+ ],+ "prompts": [+ { "id": "walk-forward-relaxed", "label": "Relaxed Walk", "prompt": "a person walks forward at a relaxed, even pace with natural arm swing", "category": "locomotion", "loop": true, "duration_seconds": 4, "icon": "🚶", "tags": ["walk", "loop", "forward"] },+ { "id": "walk-confident", "label": "Confident Walk", "prompt": "a person strides forward confidently with the chest lifted and long steps", "category": "locomotion", "loop": true, "duration_seconds": 4, "icon": "🚶", "tags": ["walk", "confident"] },+ { "id": "walk-tired", "label": "Tired Walk", "prompt": "an exhausted person trudges forward slowly with slumped shoulders and heavy feet", "category": "locomotion", "loop": true, "duration_seconds": 5, "icon": "🚶", "tags": ["walk", "tired"] },+ { "id": "walk-sneak", "label": "Sneaking Walk", "prompt": "a person creeps forward slowly in a low crouch, placing each foot carefully", "category": "locomotion", "loop": true, "duration_seconds": 5, "icon": "🥷", "tags": ["walk", "sneak", "crouch"] },+ { "id": "walk-backward", "label": "Walk Backward", "prompt": "a person walks backwards steadily while facing forward", "category": "locomotion", "loop": true, "duration_seconds": 4, "icon": "🚶", "tags": ["walk", "backward"] },+ { "id": "walk-sidestep-left", "label": "Sidestep Left", "prompt": "a person steps sideways to the left repeatedly, keeping the torso facing forward", "category": "locomotion", "loop": true, "duration_seconds": 4, "icon": "↔️", "tags": ["strafe", "left"] },+ { "id": "walk-sidestep-right", "label": "Sidestep Right", "prompt": "a person steps sideways to the right repeatedly, keeping the torso facing forward", "category": "locomotion", "loop": true, "duration_seconds": 4, "icon": "↔️", "tags": ["strafe", "right"] },+ { "id": "jog-steady", "label": "Steady Jog", "prompt": "a person jogs forward at a steady moderate pace with rhythmic arm swing", "category": "locomotion", "loop": true, "duration_seconds": 4, "icon": "🏃", "tags": ["run", "jog"] },+ { "id": "run-sprint", "label": "Sprint", "prompt": "a person sprints forward at full speed with a strong forward lean and driving arms", "category": "locomotion", "loop": true, "duration_seconds": 3, "icon": "🏃", "tags": ["run", "sprint"] },+ { "id": "run-stop", "label": "Run To Stop", "prompt": "a person runs forward then plants both feet and comes to a sharp stop", "category": "locomotion", "loop": false, "duration_seconds": 4, "icon": "🛑", "tags": ["run", "stop"] },+ { "id": "turn-left-90", "label": "Turn Left", "prompt": "a standing person pivots ninety degrees to the left and settles", "category": "locomotion", "loop": false, "duration_seconds": 3, "icon": "↩️", "tags": ["turn", "left"] },+ { "id": "turn-right-90", "label": "Turn Right", "prompt": "a standing person pivots ninety degrees to the right and settles", "category": "locomotion", "loop": false, "duration_seconds": 3, "icon": "↪️", "tags": ["turn", "right"] },+ { "id": "turn-around-180", "label": "Turn Around", "prompt": "a standing person turns all the way around to face the opposite direction", "category": "locomotion", "loop": false, "duration_seconds": 3, "icon": "🔄", "tags": ["turn", "about-face"] },+ { "id": "walk-upstairs", "label": "Climb Stairs", "prompt": "a person walks up a flight of stairs, lifting each knee high and stepping up", "category": "locomotion", "loop": true, "duration_seconds": 5, "icon": "🪜", "tags": ["stairs", "climb"] },+ { "id": "walk-downstairs", "label": "Descend Stairs", "prompt": "a person walks down a flight of stairs carefully, one step at a time", "category": "locomotion", "loop": true, "duration_seconds": 5, "icon": "🪜", "tags": ["stairs", "descend"] },+ { "id": "walk-limp", "label": "Limping Walk", "prompt": "an injured person limps forward favouring the right leg", "category": "locomotion", "loop": true, "duration_seconds": 5, "icon": "🩹", "tags": ["walk", "injured"] },+ { "id": "walk-carrying-heavy", "label": "Carry Heavy Load", "prompt": "a person walks forward slowly carrying a heavy box in both arms against the chest", "category": "locomotion", "loop": true, "duration_seconds": 5, "icon": "📦", "tags": ["walk", "carry"] },+ { "id": "walk-march", "label": "Marching", "prompt": "a person marches in place with high knees and sharp swinging arms", "category": "locomotion", "loop": true, "duration_seconds": 4, "icon": "🥁", "tags": ["march", "in-place"] },+ { "id": "walk-catwalk", "label": "Runway Walk", "prompt": "a model walks a runway with hips swinging and one foot crossing in front of the other", "category": "locomotion", "loop": true, "duration_seconds": 5, "icon": "👠", "tags": ["walk", "fashion"] },+ { "id": "walk-strut", "label": "Strut", "prompt": "a person struts forward with an exaggerated confident bounce in each step", "category": "locomotion", "loop": true, "duration_seconds": 4, "icon": "😎", "tags": ["walk", "swagger"] },++ { "id": "idle-breathing", "label": "Calm Idle", "prompt": "a person stands still and relaxed, breathing gently with tiny weight shifts", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "🧍", "tags": ["idle", "breathe"] },+ { "id": "idle-shift-weight", "label": "Weight Shift Idle", "prompt": "a person stands and shifts their weight from one hip to the other while waiting", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "🧍", "tags": ["idle", "wait"] },+ { "id": "idle-arms-crossed", "label": "Arms Crossed Idle", "prompt": "a person stands with arms folded across the chest, glancing slowly left and right", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "🧍", "tags": ["idle", "arms-crossed"] },+ { "id": "idle-hands-hips", "label": "Hands On Hips Idle", "prompt": "a person stands with both hands on their hips, surveying the area", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "🧍", "tags": ["idle", "confident"] },+ { "id": "idle-impatient", "label": "Impatient Idle", "prompt": "a person waits impatiently, tapping one foot and checking their wrist", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "⏱️", "tags": ["idle", "impatient"] },+ { "id": "idle-stretch", "label": "Stretch And Yawn", "prompt": "a person stretches both arms overhead and yawns, then relaxes back down", "category": "idle", "loop": false, "duration_seconds": 5, "icon": "🥱", "tags": ["idle", "stretch"] },+ { "id": "idle-look-around", "label": "Look Around", "prompt": "a standing person slowly scans the room, turning the head left then right", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "👀", "tags": ["idle", "scan"] },+ { "id": "idle-guard", "label": "Guard Stance Idle", "prompt": "a guard stands at attention with hands clasped in front, feet shoulder width apart", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "🛡️", "tags": ["idle", "guard"] },+ { "id": "idle-combat-ready", "label": "Combat Idle", "prompt": "a fighter bounces lightly on the balls of their feet with fists raised, ready to strike", "category": "idle", "loop": true, "duration_seconds": 4, "icon": "🥊", "tags": ["idle", "combat"] },+ { "id": "idle-sit-ground", "label": "Sit On The Ground", "prompt": "a person lowers themselves to sit cross-legged on the ground and settles", "category": "idle", "loop": false, "duration_seconds": 5, "icon": "🧘", "tags": ["sit", "ground"] },+ { "id": "idle-stand-up", "label": "Stand Up", "prompt": "a person seated on the ground pushes up onto their feet and stands tall", "category": "idle", "loop": false, "duration_seconds": 4, "icon": "🧍", "tags": ["stand", "get-up"] },+ { "id": "idle-crouch-down", "label": "Crouch Down", "prompt": "a person crouches down onto their heels and stays low, then rises", "category": "idle", "loop": false, "duration_seconds": 5, "icon": "🦵", "tags": ["crouch"] },+ { "id": "idle-lean-wall", "label": "Lean Back Idle", "prompt": "a person leans back casually with weight on one leg, arms loose at the sides", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "🧍", "tags": ["idle", "lean"] },+ { "id": "idle-cold", "label": "Shivering Idle", "prompt": "a freezing person shivers, hugging themselves and rubbing their upper arms", "category": "idle", "loop": true, "duration_seconds": 5, "icon": "🥶", "tags": ["idle", "cold"] },++ { "id": "wave-hello", "label": "Wave Hello", "prompt": "a person raises their right hand and waves hello in a friendly greeting", "category": "emote", "loop": false, "duration_seconds": 4, "icon": "👋", "tags": ["wave", "greeting"] },+ { "id": "wave-big", "label": "Big Wave", "prompt": "a person waves enthusiastically with a raised arm swinging wide overhead", "category": "emote", "loop": false, "duration_seconds": 4, "icon": "👋", "tags": ["wave", "excited"] },+ { "id": "wave-goodbye", "label": "Wave Goodbye", "prompt": "a person waves goodbye slowly then lowers the hand", "category": "emote", "loop": false, "duration_seconds": 4, "icon": "👋", "tags": ["wave", "farewell"] },+ { "id": "nod-yes", "label": "Nod Yes", "prompt": "a person nods their head up and down in clear agreement", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "🙂", "tags": ["nod", "yes"] },+ { "id": "shake-no", "label": "Shake Head No", "prompt": "a person shakes their head from side to side in refusal", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "🙅", "tags": ["shake", "no"] },+ { "id": "shrug", "label": "Shrug", "prompt": "a person shrugs both shoulders with palms turned up in a who-knows gesture", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "🤷", "tags": ["shrug"] },+ { "id": "thumbs-up", "label": "Thumbs Up", "prompt": "a person raises a thumbs up with a satisfied nod", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "👍", "tags": ["approve"] },+ { "id": "applaud", "label": "Applaud", "prompt": "a person claps their hands together in steady applause", "category": "emote", "loop": true, "duration_seconds": 4, "icon": "👏", "tags": ["clap", "applause"] },+ { "id": "bow-formal", "label": "Formal Bow", "prompt": "a person bows forward from the waist respectfully and straightens back up", "category": "emote", "loop": false, "duration_seconds": 4, "icon": "🙇", "tags": ["bow", "respect"] },+ { "id": "salute", "label": "Salute", "prompt": "a person snaps into a crisp military salute and holds it before lowering the arm", "category": "emote", "loop": false, "duration_seconds": 4, "icon": "🫡", "tags": ["salute"] },+ { "id": "point-forward", "label": "Point Ahead", "prompt": "a person points straight ahead with an extended right arm", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "👉", "tags": ["point"] },+ { "id": "beckon", "label": "Beckon Over", "prompt": "a person beckons someone to come closer with a curling hand", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "🫴", "tags": ["beckon", "come"] },+ { "id": "facepalm", "label": "Facepalm", "prompt": "a person brings a palm to their forehead in exasperation and shakes their head", "category": "emote", "loop": false, "duration_seconds": 4, "icon": "🤦", "tags": ["facepalm"] },+ { "id": "cheer-fists", "label": "Cheer", "prompt": "a person throws both fists into the air and cheers in celebration", "category": "emote", "loop": false, "duration_seconds": 4, "icon": "🎉", "tags": ["cheer", "celebrate"] },+ { "id": "flex-biceps", "label": "Flex", "prompt": "a person flexes both biceps in a strongman pose", "category": "emote", "loop": false, "duration_seconds": 4, "icon": "💪", "tags": ["flex", "pose"] },+ { "id": "blow-kiss", "label": "Blow A Kiss", "prompt": "a person blows a kiss from the palm of their hand outward", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "😘", "tags": ["kiss", "affection"] },+ { "id": "heart-hands", "label": "Heart Hands", "prompt": "a person forms a heart shape with both hands in front of their chest", "category": "emote", "loop": false, "duration_seconds": 4, "icon": "❤️", "tags": ["heart", "love"] },+ { "id": "shush", "label": "Shush", "prompt": "a person raises one finger to their lips asking for quiet", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "🤫", "tags": ["quiet"] },+ { "id": "check-watch", "label": "Check The Time", "prompt": "a person lifts their wrist to check a watch then lets the arm drop", "category": "emote", "loop": false, "duration_seconds": 3, "icon": "⌚", "tags": ["time"] },+ { "id": "think-chin", "label": "Thinking Pose", "prompt": "a person rests a hand on their chin and looks upward while thinking", "category": "emote", "loop": false, "duration_seconds": 4, "icon": "🤔", "tags": ["think"] },++ { "id": "dance-hip-hop", "label": "Hip Hop Groove", "prompt": "a dancer performs a bouncing hip hop groove with sharp arm accents", "category": "dance", "loop": true, "duration_seconds": 5, "icon": "🕺", "tags": ["dance", "hip-hop"] },+ { "id": "dance-two-step", "label": "Two Step", "prompt": "a person does a relaxed two-step dance shifting side to side to a beat", "category": "dance", "loop": true, "duration_seconds": 5, "icon": "💃", "tags": ["dance", "casual"] },+ { "id": "dance-robot", "label": "Robot Dance", "prompt": "a dancer performs a stiff robotic dance with sharp mechanical arm pops", "category": "dance", "loop": true, "duration_seconds": 5, "icon": "🤖", "tags": ["dance", "robot"] },+ { "id": "dance-breakdance-toprock", "label": "Toprock", "prompt": "a breakdancer performs toprock footwork stepping in and out with crossing arms", "category": "dance", "loop": true, "duration_seconds": 5, "icon": "🕺", "tags": ["dance", "breaking"] },+ { "id": "dance-salsa", "label": "Salsa Step", "prompt": "a dancer performs a salsa basic step with quick weight changes and hip motion", "category": "dance", "loop": true, "duration_seconds": 5, "icon": "💃", "tags": ["dance", "latin"] },+ { "id": "dance-ballet-pirouette", "label": "Pirouette", "prompt": "a ballet dancer rises onto one leg and spins a clean pirouette, then lands", "category": "dance", "loop": false, "duration_seconds": 4, "icon": "🩰", "tags": ["dance", "ballet"] },+ { "id": "dance-shuffle", "label": "Shuffle", "prompt": "a dancer performs a fast shuffle with sliding heel-toe footwork", "category": "dance", "loop": true, "duration_seconds": 5, "icon": "🕺", "tags": ["dance", "shuffle"] },+ { "id": "dance-arms-up", "label": "Hands In The Air", "prompt": "a person dances with both arms raised overhead swaying to music", "category": "dance", "loop": true, "duration_seconds": 5, "icon": "🙌", "tags": ["dance", "party"] },+ { "id": "dance-head-bang", "label": "Head Bang", "prompt": "a person head-bangs to heavy music with the upper body rocking forward", "category": "dance", "loop": true, "duration_seconds": 4, "icon": "🤘", "tags": ["dance", "rock"] },+ { "id": "dance-traditional-circle", "label": "Circle Step Dance", "prompt": "a dancer performs a rhythmic folk circle step with linked-arm posture", "category": "dance", "loop": true, "duration_seconds": 5, "icon": "💃", "tags": ["dance", "folk"] },+ { "id": "dance-moonwalk", "label": "Backslide", "prompt": "a dancer glides smoothly backwards while the feet appear to walk forward", "category": "dance", "loop": true, "duration_seconds": 5, "icon": "🕺", "tags": ["dance", "glide"] },+ { "id": "dance-celebration-spin", "label": "Celebration Spin", "prompt": "a person spins around once with arms out wide in joyful celebration", "category": "dance", "loop": false, "duration_seconds": 4, "icon": "🎊", "tags": ["dance", "celebrate"] },++ { "id": "combat-jab-cross", "label": "Jab Cross", "prompt": "a boxer throws a fast jab followed by a straight cross and returns to guard", "category": "combat", "loop": false, "duration_seconds": 3, "icon": "🥊", "tags": ["punch", "boxing"] },+ { "id": "combat-hook", "label": "Left Hook", "prompt": "a boxer pivots and throws a powerful left hook, then recovers guard", "category": "combat", "loop": false, "duration_seconds": 3, "icon": "🥊", "tags": ["punch", "boxing"] },+ { "id": "combat-uppercut", "label": "Uppercut", "prompt": "a boxer drops slightly and drives an uppercut upward with the right arm", "category": "combat", "loop": false, "duration_seconds": 3, "icon": "🥊", "tags": ["punch", "boxing"] },+ { "id": "combat-block-high", "label": "High Block", "prompt": "a fighter raises both forearms to block a high strike then lowers them", "category": "combat", "loop": false, "duration_seconds": 3, "icon": "🛡️", "tags": ["block", "defend"] },+ { "id": "combat-dodge-left", "label": "Dodge Left", "prompt": "a fighter slips sharply to the left to evade a strike and resets", "category": "combat", "loop": false, "duration_seconds": 3, "icon": "💨", "tags": ["dodge", "evade"] },+ { "id": "combat-roundhouse", "label": "Roundhouse Kick", "prompt": "a martial artist throws a high roundhouse kick with the right leg and recovers", "category": "combat", "loop": false, "duration_seconds": 4, "icon": "🦵", "tags": ["kick", "martial-arts"] },+ { "id": "combat-front-kick", "label": "Front Kick", "prompt": "a martial artist chambers the knee and snaps a front kick forward", "category": "combat", "loop": false, "duration_seconds": 3, "icon": "🦵", "tags": ["kick", "martial-arts"] },+ { "id": "combat-sword-slash", "label": "Sword Slash", "prompt": "a swordfighter swings a two-handed diagonal slash and returns to a ready stance", "category": "combat", "loop": false, "duration_seconds": 4, "icon": "⚔️", "tags": ["sword", "melee"] },+ { "id": "combat-sword-parry", "label": "Parry", "prompt": "a swordfighter parries an incoming strike upward and steps back into guard", "category": "combat", "loop": false, "duration_seconds": 3, "icon": "⚔️", "tags": ["sword", "defend"] },+ { "id": "combat-bow-draw", "label": "Draw A Bow", "prompt": "an archer raises a bow, draws the string back to the cheek, and releases", "category": "combat", "loop": false, "duration_seconds": 5, "icon": "🏹", "tags": ["archery", "ranged"] },+ { "id": "combat-staff-spin", "label": "Staff Spin", "prompt": "a fighter spins a long staff in front of the body and finishes in a low guard", "category": "combat", "loop": false, "duration_seconds": 5, "icon": "🥢", "tags": ["staff", "melee"] },+ { "id": "combat-knockdown", "label": "Take A Hit", "prompt": "a person is struck, staggers backwards, and catches their balance", "category": "combat", "loop": false, "duration_seconds": 4, "icon": "💥", "tags": ["hit", "stagger"] },+ { "id": "combat-tai-chi", "label": "Tai Chi Sweep", "prompt": "a person performs a slow controlled tai chi sweep shifting weight between legs", "category": "combat", "loop": true, "duration_seconds": 6, "icon": "☯️", "tags": ["tai-chi", "slow"] },+ { "id": "combat-kata-open", "label": "Kata Opening", "prompt": "a karateka bows then moves through the opening sequence of a kata", "category": "combat", "loop": false, "duration_seconds": 6, "icon": "🥋", "tags": ["karate", "kata"] },++ { "id": "sport-basketball-shot", "label": "Jump Shot", "prompt": "a basketball player rises into a jump shot and follows through with the wrist", "category": "sport", "loop": false, "duration_seconds": 4, "icon": "🏀", "tags": ["basketball", "shoot"] },+ { "id": "sport-basketball-dribble", "label": "Dribble", "prompt": "a basketball player dribbles the ball low and steadily in place", "category": "sport", "loop": true, "duration_seconds": 4, "icon": "🏀", "tags": ["basketball", "dribble"] },+ { "id": "sport-soccer-kick", "label": "Soccer Strike", "prompt": "a soccer player plants and strikes a ball forward with the instep", "category": "sport", "loop": false, "duration_seconds": 4, "icon": "⚽", "tags": ["soccer", "kick"] },+ { "id": "sport-golf-swing", "label": "Golf Swing", "prompt": "a golfer takes a full backswing and follows through smoothly", "category": "sport", "loop": false, "duration_seconds": 5, "icon": "⛳", "tags": ["golf", "swing"] },+ { "id": "sport-tennis-serve", "label": "Tennis Serve", "prompt": "a tennis player tosses the ball up and serves overhead", "category": "sport", "loop": false, "duration_seconds": 4, "icon": "🎾", "tags": ["tennis", "serve"] },+ { "id": "sport-baseball-swing", "label": "Baseball Swing", "prompt": "a batter loads, steps, and swings a bat level through the strike zone", "category": "sport", "loop": false, "duration_seconds": 4, "icon": "⚾", "tags": ["baseball", "swing"] },+ { "id": "sport-jumping-jacks", "label": "Jumping Jacks", "prompt": "a person performs jumping jacks with arms and legs opening and closing", "category": "sport", "loop": true, "duration_seconds": 4, "icon": "🤸", "tags": ["exercise", "cardio"] },+ { "id": "sport-squat", "label": "Bodyweight Squat", "prompt": "a person performs a deep bodyweight squat and drives back up", "category": "sport", "loop": true, "duration_seconds": 4, "icon": "🏋️", "tags": ["exercise", "squat"] },+ { "id": "sport-pushup", "label": "Push Up", "prompt": "a person performs a push up, lowering the chest to the floor and pressing up", "category": "sport", "loop": true, "duration_seconds": 4, "icon": "🏋️", "tags": ["exercise", "pushup"] },+ { "id": "sport-yoga-warrior", "label": "Warrior Pose", "prompt": "a person moves into a warrior yoga pose with arms extended and front knee bent", "category": "sport", "loop": false, "duration_seconds": 5, "icon": "🧘", "tags": ["yoga", "pose"] },+ { "id": "sport-swim-stroke", "label": "Freestyle Stroke", "prompt": "a swimmer performs alternating freestyle arm strokes while standing", "category": "sport", "loop": true, "duration_seconds": 4, "icon": "🏊", "tags": ["swim", "stroke"] },+ { "id": "sport-skate-push", "label": "Skateboard Push", "prompt": "a skateboarder pushes off the ground with the back foot and rolls", "category": "sport", "loop": true, "duration_seconds": 4, "icon": "🛹", "tags": ["skate", "push"] },++ { "id": "interaction-handshake", "label": "Handshake", "prompt": "a person extends their right hand forward and shakes hands with someone", "category": "interaction", "loop": false, "duration_seconds": 4, "icon": "🤝", "tags": ["handshake", "greet"] },+ { "id": "interaction-high-five", "label": "High Five", "prompt": "a person raises a hand and delivers a high five", "category": "interaction", "loop": false, "duration_seconds": 3, "icon": "🙏", "tags": ["high-five"] },+ { "id": "interaction-fist-bump", "label": "Fist Bump", "prompt": "a person extends a closed fist forward for a fist bump", "category": "interaction", "loop": false, "duration_seconds": 3, "icon": "👊", "tags": ["fist-bump"] },+ { "id": "interaction-hug", "label": "Hug", "prompt": "a person opens their arms wide and closes them into a warm hug", "category": "interaction", "loop": false, "duration_seconds": 4, "icon": "🤗", "tags": ["hug"] },+ { "id": "interaction-hand-item", "label": "Hand Over An Item", "prompt": "a person holds out an object in both hands and offers it forward", "category": "interaction", "loop": false, "duration_seconds": 4, "icon": "🎁", "tags": ["give", "offer"] },+ { "id": "interaction-take-item", "label": "Take An Item", "prompt": "a person reaches forward, takes an object, and draws it back to the chest", "category": "interaction", "loop": false, "duration_seconds": 4, "icon": "🫳", "tags": ["take", "receive"] },+ { "id": "interaction-pickup-ground", "label": "Pick Up From Ground", "prompt": "a person bends down, picks something up off the floor, and stands back up", "category": "interaction", "loop": false, "duration_seconds": 5, "icon": "🫴", "tags": ["pickup", "bend"] },+ { "id": "interaction-push-door", "label": "Push A Door", "prompt": "a person reaches out and pushes a heavy door open, then steps through", "category": "interaction", "loop": false, "duration_seconds": 5, "icon": "🚪", "tags": ["push", "door"] },+ { "id": "interaction-pull-lever", "label": "Pull A Lever", "prompt": "a person grips a lever with both hands and pulls it down", "category": "interaction", "loop": false, "duration_seconds": 4, "icon": "🎚️", "tags": ["pull", "lever"] },+ { "id": "interaction-type-keyboard", "label": "Type", "prompt": "a person types quickly on a keyboard in front of them with both hands", "category": "interaction", "loop": true, "duration_seconds": 4, "icon": "⌨️", "tags": ["type", "work"] },+ { "id": "interaction-phone-scroll", "label": "Scroll A Phone", "prompt": "a person holds a phone up and scrolls it with a thumb", "category": "interaction", "loop": true, "duration_seconds": 4, "icon": "📱", "tags": ["phone"] },+ { "id": "interaction-drink", "label": "Take A Drink", "prompt": "a person raises a cup to their mouth, drinks, and lowers it", "category": "interaction", "loop": false, "duration_seconds": 4, "icon": "🥤", "tags": ["drink"] },+ { "id": "interaction-point-present", "label": "Present Something", "prompt": "a person sweeps an open hand outward to present something beside them", "category": "interaction", "loop": false, "duration_seconds": 4, "icon": "🫱", "tags": ["present", "show"] },+ { "id": "interaction-throw", "label": "Overhand Throw", "prompt": "a person winds up and throws an object overhand, following through", "category": "interaction", "loop": false, "duration_seconds": 4, "icon": "🤾", "tags": ["throw"] },+ { "id": "interaction-catch", "label": "Catch", "prompt": "a person reaches up with both hands and catches something out of the air", "category": "interaction", "loop": false, "duration_seconds": 3, "icon": "🧤", "tags": ["catch"] },++ { "id": "reaction-surprised", "label": "Surprised", "prompt": "a person recoils in surprise with hands raised and a sharp step back", "category": "reaction", "loop": false, "duration_seconds": 3, "icon": "😲", "tags": ["surprise"] },+ { "id": "reaction-scared", "label": "Frightened", "prompt": "a frightened person flinches and shields their face with both arms", "category": "reaction", "loop": false, "duration_seconds": 3, "icon": "😨", "tags": ["fear"] },+ { "id": "reaction-laugh", "label": "Laughing", "prompt": "a person laughs hard, head tipped back and shoulders shaking", "category": "reaction", "loop": false, "duration_seconds": 4, "icon": "😂", "tags": ["laugh"] },+ { "id": "reaction-sad", "label": "Dejected", "prompt": "a dejected person lets their shoulders drop and hangs their head", "category": "reaction", "loop": false, "duration_seconds": 4, "icon": "😞", "tags": ["sad"] },+ { "id": "reaction-angry", "label": "Angry Outburst", "prompt": "an angry person clenches their fists and shouts with a forward lean", "category": "reaction", "loop": false, "duration_seconds": 4, "icon": "😠", "tags": ["anger"] },+ { "id": "reaction-confused", "label": "Confused", "prompt": "a confused person tilts their head and scratches the back of their neck", "category": "reaction", "loop": false, "duration_seconds": 4, "icon": "😕", "tags": ["confused"] },+ { "id": "reaction-victory", "label": "Victory", "prompt": "a person pumps a fist downward twice in a victorious yes gesture", "category": "reaction", "loop": false, "duration_seconds": 3, "icon": "🏆", "tags": ["victory", "win"] },+ { "id": "reaction-defeat", "label": "Defeat", "prompt": "a person drops to their knees in defeat with arms hanging down", "category": "reaction", "loop": false, "duration_seconds": 5, "icon": "😩", "tags": ["defeat"] },+ { "id": "reaction-sneeze", "label": "Sneeze", "prompt": "a person builds up and sneezes sharply into their elbow", "category": "reaction", "loop": false, "duration_seconds": 3, "icon": "🤧", "tags": ["sneeze"] },+ { "id": "reaction-dizzy", "label": "Dizzy Stagger", "prompt": "a dizzy person sways and staggers, trying to regain their balance", "category": "reaction", "loop": false, "duration_seconds": 5, "icon": "😵", "tags": ["dizzy"] },++ { "id": "traversal-jump-up", "label": "Vertical Jump", "prompt": "a person crouches and jumps straight up, landing softly on both feet", "category": "traversal", "loop": false, "duration_seconds": 3, "icon": "⬆️", "tags": ["jump"] },+ { "id": "traversal-jump-forward", "label": "Broad Jump", "prompt": "a person swings their arms and leaps forward, landing in a crouch", "category": "traversal", "loop": false, "duration_seconds": 3, "icon": "➡️", "tags": ["jump", "forward"] },+ { "id": "traversal-running-jump", "label": "Running Jump", "prompt": "a person runs forward and leaps over an obstacle, landing into a run", "category": "traversal", "loop": false, "duration_seconds": 4, "icon": "🏃", "tags": ["jump", "run"] },+ { "id": "traversal-vault", "label": "Vault Over", "prompt": "a person plants one hand and vaults sideways over a waist-high obstacle", "category": "traversal", "loop": false, "duration_seconds": 4, "icon": "🤸", "tags": ["vault", "parkour"] },+ { "id": "traversal-roll-forward", "label": "Forward Roll", "prompt": "a person dives into a forward shoulder roll and comes back up to standing", "category": "traversal", "loop": false, "duration_seconds": 4, "icon": "🤸", "tags": ["roll", "parkour"] },+ { "id": "traversal-climb-ladder", "label": "Climb A Ladder", "prompt": "a person climbs a ladder hand over hand with alternating feet", "category": "traversal", "loop": true, "duration_seconds": 5, "icon": "🪜", "tags": ["climb", "ladder"] },+ { "id": "traversal-climb-wall", "label": "Wall Climb", "prompt": "a person reaches up, grips a ledge, and pulls themselves up over it", "category": "traversal", "loop": false, "duration_seconds": 5, "icon": "🧗", "tags": ["climb", "ledge"] },+ { "id": "traversal-crawl", "label": "Crawl", "prompt": "a person crawls forward on hands and knees under a low ceiling", "category": "traversal", "loop": true, "duration_seconds": 5, "icon": "🐛", "tags": ["crawl"] },+ { "id": "traversal-slide", "label": "Baseball Slide", "prompt": "a person runs then drops into a feet-first slide along the ground", "category": "traversal", "loop": false, "duration_seconds": 4, "icon": "🛝", "tags": ["slide"] },+ { "id": "traversal-balance-beam", "label": "Balance Walk", "prompt": "a person walks a narrow beam with arms out wide for balance", "category": "traversal", "loop": true, "duration_seconds": 5, "icon": "🤹", "tags": ["balance"] },++ { "id": "expressive-conduct", "label": "Conducting", "prompt": "a conductor leads an orchestra with sweeping expressive baton motions", "category": "expressive", "loop": true, "duration_seconds": 5, "icon": "🎼", "tags": ["music", "conduct"] },+ { "id": "expressive-guitar", "label": "Air Guitar", "prompt": "a person plays an energetic air guitar solo with strumming and headbanging", "category": "expressive", "loop": true, "duration_seconds": 5, "icon": "🎸", "tags": ["music", "guitar"] },+ { "id": "expressive-drum", "label": "Drumming", "prompt": "a person drums rapidly on an invisible kit with both arms and a kick foot", "category": "expressive", "loop": true, "duration_seconds": 4, "icon": "🥁", "tags": ["music", "drum"] },+ { "id": "expressive-magic-cast", "label": "Cast A Spell", "prompt": "a spellcaster sweeps both hands in a wide arc and thrusts them forward casting", "category": "expressive", "loop": false, "duration_seconds": 5, "icon": "✨", "tags": ["magic", "cast"] },+ { "id": "expressive-summon", "label": "Summon", "prompt": "a figure raises both arms slowly overhead in a summoning gesture and holds", "category": "expressive", "loop": false, "duration_seconds": 5, "icon": "🔮", "tags": ["magic", "summon"] },+ { "id": "expressive-speech", "label": "Give A Speech", "prompt": "a speaker gestures emphatically with both hands while addressing a crowd", "category": "expressive", "loop": true, "duration_seconds": 5, "icon": "🎤", "tags": ["speech", "gesture"] },+ { "id": "expressive-teach", "label": "Explain And Point", "prompt": "a teacher points to a board beside them and gestures while explaining", "category": "expressive", "loop": true, "duration_seconds": 5, "icon": "📚", "tags": ["teach", "explain"] },+ { "id": "expressive-photo-pose", "label": "Pose For A Photo", "prompt": "a person strikes a confident pose for a photo and holds it", "category": "expressive", "loop": false, "duration_seconds": 4, "icon": "📸", "tags": ["pose", "photo"] },+ { "id": "expressive-meditate", "label": "Meditate", "prompt": "a person settles into a calm seated meditation with hands resting on the knees", "category": "expressive", "loop": true, "duration_seconds": 6, "icon": "🧘", "tags": ["meditate", "calm"] },+ { "id": "expressive-stretch-routine", "label": "Warm Up Routine", "prompt": "a person rolls their shoulders and swings their arms across the body to warm up", "category": "expressive", "loop": true, "duration_seconds": 5, "icon": "🤸", "tags": ["warmup", "stretch"] }+ ]+}diff --git a/data/quality-bench/README.md b/data/quality-bench/README.mdindex e7b1a7865..8088ee44d 100644--- a/data/quality-bench/README.md+++ b/data/quality-bench/README.md@@ -33,6 +33,10 @@ node scripts/quality-bench.mjs# One lane, one tier, a couple of prompts (fast iteration)node scripts/quality-bench.mjs --lane=trellis_selfhost --tier=standard --prompts=qb01,qb09+# Four lanes at once (tasks are ordered so simultaneous work lands on+# different backends, not four jobs queued behind one GPU worker)+node scripts/quality-bench.mjs --lane=nvidia,huggingface,hunyuan3d,trellis_selfhost --concurrency=4+# Against a non-production deploymentnode scripts/quality-bench.mjs --base-url=https://staging.three.ws@@ -47,11 +51,24 @@ node scripts/quality-bench.mjs --resume=run-2026-07-23T12-00-00-000Z.jsonFlags: `--lane=<id|id,id|all>` (default `all` = every lane `/api/forge?catalog`reports as `configured`), `--tier=<draft|standard|high|all>` (default`standard,high`), `--prompts=<id,id,...|all>` (default `all`), `--base-url`-(default `https://three.ws`), `--resume=<run file>`, `--dry-run`.+(default `https://three.ws`), `--resume=<run file>`, `--concurrency=<n>`+(default `1`), `--dry-run`.++`--concurrency` matters because a full sweep is long: one `(prompt, lane, tier)`+combo costs a generation plus 3 renders plus 6 judge calls, so 23 prompts x 4+lanes x 2 tiers is many hours serially. The runner keeps a single run file and+serialises its writes, so resumability is unchanged at any concurrency. Keep it+at or below the number of lanes being swept — beyond that, extra workers just+queue behind the same GPU backend.**Credentials.** Forge generation needs nothing locally — the script calls thelive `/api/forge` HTTP path on `--base-url`, which runs against that-deployment's own configured lanes and credentials. Scoring needs+deployment's own configured lanes and credentials. The High tier is the one+exception: `forge.high` is $THREE hold-or-pay gated, so an anonymous submit gets+a 402 and every high-tier combo would record as a lane failure. Set+`CRON_SECRET` (or `QUALITY_BENCH_FORGE_SEED`) to the target deployment's value+and the bench submits as an internal seed request, which the gate exempts.+Scoring needs`GOOGLE_CLOUD_PROJECT` set and GCP credentials resolvable the same way everyother Vertex Gemini caller in this repo resolves them (`GCP_SERVICE_ACCOUNT_JSON`env var, or the ambient Cloud Run/GCE metadata server) — seediff --git a/data/quality-bench/runs/run-2026-07-29T06-12-33-494Z.json b/data/quality-bench/runs/run-2026-07-29T06-12-33-494Z.jsonnew file mode 100644index 000000000..e3a3b57bb--- /dev/null+++ b/data/quality-bench/runs/run-2026-07-29T06-12-33-494Z.json@@ -0,0 +1,129 @@+{+ "runId": "run-2026-07-29T06-12-33-494Z",+ "startedAt": "2026-07-29T06:12:33.494Z",+ "finishedAt": null,+ "baseUrl": "https://three.ws",+ "judgeModel": "google/gemini-2.5-pro",+ "judgePromptVersion": 1,+ "lanes": [+ "nvidia",+ "huggingface",+ "hunyuan3d",+ "trellis_selfhost"+ ],+ "tiers": [+ "standard",+ "high"+ ],+ "results": [+ {+ "promptId": "qb01",+ "subjectClass": "people-portrait",+ "lane": "nvidia",+ "tier": "standard",+ "startedAt": "2026-07-29T06:12:33.495Z",+ "status": "lane_failed",+ "error": "3D generation hit a snag — please try again.",+ "meanScore": 0,+ "finishedAt": "2026-07-29T06:13:20.872Z"+ },+ {+ "promptId": "qb01",+ "subjectClass": "people-portrait",+ "lane": "trellis_selfhost",+ "tier": "standard",+ "startedAt": "2026-07-29T06:12:33.542Z",+ "glbUrl": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/6f937fcf-bf0e-4781-87b1-12edb224c541.glb",+ "creationId": null,+ "views": [+ {+ "view": "front",+ "scores": [+ {+ "photorealism": 2,+ "geometryIntegrity": 3,+ "textureFidelity": 1,+ "promptAdherence": 4,+ "critique": "The hair is a single, fused geometric mass with a painted texture, completely failing to represent individual strands.",+ "modelVersion": "google/gemini-2.5-pro"+ },+ {+ "photorealism": 2,+ "geometryIntegrity": 3,+ "textureFidelity": 2,+ "promptAdherence": 5,+ "critique": "The hair is a single fused geometric cap and the skin has a waxy, painted quality with extremely low-resolution textures, failing the photorealism requirement.",+ "modelVersion": "google/gemini-2.5-pro"+ }+ ],+ "avg": {+ "photorealism": 2,+ "geometryIntegrity": 3,+ "textureFidelity": 1.5,+ "promptAdherence": 4.5,+ "mean": 2.75+ }+ },+ {+ "view": "three-quarter",+ "scores": [+ {+ "photorealism": 2,+ "geometryIntegrity": 3,+ "textureFidelity": 2,+ "promptAdherence": 5,+ "critique": "The hair is a solid, fused cap with low-resolution, painted-on lighting, and the skin has a waxy, plastic shader that completely undermines realism.",+ "modelVersion": "google/gemini-2.5-pro"+ },+ {+ "photorealism": 2,+ "geometryIntegrity": 3,+ "textureFidelity": 2,+ "promptAdherence": 5,+ "critique": "The model exhibits severe photorealism failures, most notably the plastic-like skin shading and the hair, which is fused into a solid, helmet-like mass.",+ "modelVersion": "google/gemini-2.5-pro"+ }+ ],+ "avg": {+ "photorealism": 2,+ "geometryIntegrity": 3,+ "textureFidelity": 2,+ "promptAdherence": 5,+ "mean": 3+ }+ },+ {+ "view": "side",+ "scores": [+ {+ "photorealism": 3,+ "geometryIntegrity": 4,+ "textureFidelity": 2,+ "promptAdherence": 5,+ "critique": "The model suffers from classic failure modes, including hair that is fused into a solid geometric cap and skin shading that appears waxy and plastic.",+ "modelVersion": "google/gemini-2.5-pro"+ },+ {+ "photorealism": 2,+ "geometryIntegrity": 3,+ "textureFidelity": 2,+ "promptAdherence": 6,+ "critique": "The hair is a fused, solid cap of low-poly geometry with a blurry, painted-on texture, completely failing to represent realistic hair strands.",+ "modelVersion": "google/gemini-2.5-pro"+ }+ ],+ "avg": {+ "photorealism": 2.5,+ "geometryIntegrity": 3.5,+ "textureFidelity": 2,+ "promptAdherence": 5.5,+ "mean": 3.375+ }+ }+ ],+ "status": "ok",+ "meanScore": 3.0416666666666665,+ "finishedAt": "2026-07-29T06:16:29.039Z"+ }+ ]+}diff --git a/docs/shared-utilities.md b/docs/shared-utilities.mdnew file mode 100644index 000000000..ee173f19e--- /dev/null+++ b/docs/shared-utilities.md@@ -0,0 +1,213 @@+# Shared utilities++Small, dependency-backed modules that exist so the same problem is not solved+twice. Each one replaced a family of hand-rolled copies that had drifted apart;+if you find yourself about to write another Markdown renderer, toast, retry+loop, or LRU cache, import from here and extend it instead.++The rule from [CLAUDE.md](../CLAUDE.md) applies: never reinvent a solved+problem. Every module below is a thin layer over a well-maintained package,+adding only the project's conventions.++---++## Frontend++### `src/shared/markdown.js` — sanitized Markdown++Renders Markdown to HTML that is safe to assign via `innerHTML`. Built on+[`marked`](https://www.npmjs.com/package/marked) (CommonMark + GFM) followed by+a strict [`DOMPurify`](https://www.npmjs.com/package/dompurify) pass.++```js+import { renderMarkdown, stripMarkdown } from './shared/markdown.js';++el.innerHTML = renderMarkdown(modelOutput);++// Keep an existing stylesheet contract, and shift `#` down to `<h3>`:+el.innerHTML = renderMarkdown(text, {+ classes: { pre: 'md-code', 'code:not(pre code)': 'md-ic' },+ demoteHeadings: 2,+});++speak(stripMarkdown(text)); // plain text for voice/meta contexts+```++Only text-level tags survive sanitization: no `<img>`, `<iframe>`, `<style>`,+`<form>`, or event handlers. Link `href`s are restricted to `http(s):`,+`mailto:`, and same-site relative paths; every link gets+`target="_blank" rel="noopener noreferrer nofollow"`.++**Why it exists.** Eight separate renderers were parsing Markdown with regexes,+each with its own escaping, and none with a sanitizer. None supported tables or+nested lists. `@three-ws/concierge` has its own copy of this module+(`concierge-sdk/src/markdown.js`) because it ships as an independent bundle.++### `src/shared/toast.js` — notifications++```js+import { toast, toastSuccess, toastError } from './shared/toast.js';++toast('Copied to clipboard');+toastError('Could not save. Check your connection.');+const dismiss = toastSuccess('Agent created', { duration: 4000 });+```++One `role="status" aria-live="polite"` region, a real queue (up to three+visible; a second toast stacks instead of replacing the first), click-to-dismiss,+and error/success variants. Messages are set via `textContent`, never HTML.++**Why it exists.** 67 copies of a single-slot `function toast()`, most without+an ARIA live region, each re-declaring the same inline `cssText`.++### `src/shared/fuzzy.js` — fuzzy search++Backed by [`@leeoniya/ufuzzy`](https://www.npmjs.com/package/@leeoniya/ufuzzy)+(~7 kB).++```js+import { rank, matches, highlight } from './shared/fuzzy.js';++const results = rank(query, commands, (c) => `${c.label} ${c.group}`, { limit: 8 });+for (const { item, ranges } of results) {+ render(highlight(item.label, ranges)); // <mark> around the real match positions+}+```++Ranks by contiguity, word-boundary starts, and match position, and tolerates one+typo per term (insertion, substitution, transposition, or deletion). It does+**not** match arbitrarily sparse subsequences: that is deliberate, because the+scorer it replaced accepted any subsequence and then tied every such hit at one+score, so "close match" and "barely matches" sorted arbitrarily.++### `src/shared/coin-format.js` — `timeAgo` and `toEpochMs`++`timeAgo` accepts ISO strings, `Date` objects, epoch milliseconds, **and epoch+seconds**, normalizing through `toEpochMs`. Copies of this function across the+codebase disagreed about their input unit, which is a live source of+"53 years ago" bugs.++```js+import { timeAgo, toEpochMs } from './shared/coin-format.js';+timeAgo('2026-07-29T10:00:00Z'); // "3m ago"+timeAgo(1783670400); // unix seconds, handled+```++---++## Backend++### `api/_lib/resilience.js` — retry, backoff, circuit breaking++Backed by [`cockatiel`](https://www.npmjs.com/package/cockatiel).++```js+import { withRetry, withBreaker, withRetryAndBreaker, parseRetryAfter, isRetryableError }+ from './_lib/resilience.js';++// Jittered exponential backoff; only transient failures are retried.+const data = await withRetry(() => fetchUpstream(url), {+ attempts: 3, initialDelayMs: 250, maxDelayMs: 10_000, label: 'birdeye',+});++// Retry, then degrade instead of throwing.+const quote = await withRetryAndBreaker('birdeye:quote', () => getQuote(mint), {+ fallback: null,+});+```++`isRetryableError` treats 408/425/429/5xx, network errno codes+(`ECONNRESET`, `UND_ERR_CONNECT_TIMEOUT`, …), and aborts/timeouts as transient;+a 400 or a `TypeError` is not retried. Pass `shouldRetry` to override.++**Why it matters.** The backoff is *decorrelated-jittered*. Roughly three dozen+hand-rolled `sleep(base * 2 ** attempt)` loops had no jitter at all, so a shared+upstream blip re-synchronized every caller into the same retry wave.++### `api/_lib/mem-cache.js` — bounded in-process cache++Backed by [`lru-cache`](https://www.npmjs.com/package/lru-cache).++```js+import { createCache, cached } from './_lib/mem-cache.js';++const cache = createCache({ max: 512, ttlMs: 60_000 });++// Read-through with single-flight: concurrent misses share one load().+const price = await cached(cache, mint, () => fetchPrice(mint));++// Per-entry TTL when lifetimes vary by key:+cache.set(key, value, { ttl: 10 * 60_000 });+```++This is per-instance memory, the same model as the Maps it replaced. Shared+cross-instance state still belongs in Redis via `api/_lib/cache.js`.++**Why it matters.** The Maps it replaces were trimmed with+`map.delete(map.keys().next().value)`, which evicts the **oldest inserted** key,+not the least recently used one, so a continuously-hot key could be evicted+while colder keys inserted after it survived. Others called `.clear()` at the+cap, discarding everything periodically; most were unbounded.++`createCache` sets `ttlResolution: 0` so expiry is checked against a live clock+on every read rather than a memoized timestamp.++### `api/_lib/pool.js` — bounded concurrency++Backed by [`p-limit`](https://www.npmjs.com/package/p-limit).++```js+import { mapPool, mapPoolSettled } from './_lib/pool.js';++// At most 5 in flight; results in input order; rejects on first error.+const balances = await mapPool(wallets, 5, (w) => readBalance(w));++// One bad row must not abort a backfill:+const rows = await mapPoolSettled(items, 4, (i) => process(i));+for (const r of rows) if (!r.ok) log.warn(r.error);+```++Prefer this over chunking input into fixed batches and awaiting each batch: with+batching, one slow item holds its whole batch's slots idle until it drains.++### `api/_lib/csv.js` — CSV export++```js+import { csvCell, csvCellJson, toCsv } from './_lib/csv.js';++res.end(toCsv(['created_at', 'content'], rows.map((r) => [r.created_at, r.content])));+```++Every cell is RFC 4180 quoted **and** neutralized against spreadsheet formula+injection: Excel and Google Sheets execute a cell whose text starts with+`=`, `+`, `-`, `@`, or a leading tab/CR, which turns exported user content into+live formulas. Use `csvCellJson` for columns holding structured metadata.++**Never hand-roll a cell writer.** Two existed before this module and had+diverged, and the one lacking the formula guard was the one exporting+visitor-supplied chat transcripts.++---++## Operations++### `scripts/check-cron-drift.mjs` — cron config vs. reality++Validates every cron expression in `vercel.json` with+[`cron-parser`](https://www.npmjs.com/package/cron-parser) and compares the+declared schedules against the live Cloud Scheduler jobs.++```bash+node scripts/check-cron-drift.mjs # validate + compare against live jobs+node scripts/check-cron-drift.mjs --offline # validate expressions only, no gcloud+node scripts/check-cron-drift.mjs --json # machine-readable report+```++Reports invalid expressions, duplicate job ids, schedules that are declared but+missing from Cloud Scheduler, live schedules that disagree with the declared+one, jobs that are not `ENABLED`, and orphaned jobs no longer declared. Exits+non-zero on anything but orphans, so it can gate a deploy.++`vercel.json` is a live config file, but nothing previously verified that+Cloud Scheduler still matched it: a schedule edited without a re-sync, or a job+paused during an incident and never resumed, failed silently.diff --git a/docs/start-here.md b/docs/start-here.mdindex 1e7cc8295..dc636529d 100644--- a/docs/start-here.md+++ b/docs/start-here.md@@ -100,6 +100,7 @@ Curious what happens between the prompt and the model? [How the Forge works](./h- **Going Pro?** → [Paid plans](./plan-checkout.md) — upgrade with a single on-chain payment in USDC, SOL, or $THREE (the platform coin takes 20% off); [hold-to-access](./hold-to-access.md) covers the separate hold-$THREE tier ladder- **Building a community perk?** → [Token-gated 3D embeds](./token-gated-3d-embeds.md) — turn an avatar or on-chain agent into a holder-only interactive embed; visitors prove a real, server-verified on-chain balance before the live scene renders, no download-only gate- **Developer docs** → Read the [Introduction](./introduction.md) for the full technical picture+- **Contributing code?** → [Shared utilities](./shared-utilities.md) — the modules to import instead of hand-rolling: sanitized Markdown, toasts, fuzzy search, retry/circuit-breaking, bounded caches and concurrency pools, and safe CSV export- **Your agent needs a face?** → [OKX.AI marketplace services](./okx-marketplace.md) — the Agent Identity Studio and the pay-per-call 3D services other agents buy from us; demo identities at [/agent-identities](/agent-identities)- **Buying 3D asset work per call?** → [The 3D Asset Pipeline](./3d-pipeline.md) — pay a few cents in USDC to rig, remesh, make game-ready, stylize, or background-remove an asset; one call, one finished URL, no account or API key- **Want your agent to have a body?** → [Embodiment](./embody.md) — one $1 USDC call turns a prompt or image into a rigged, animated, voiced 3D avatar plus a one-tag embed for any website; no account, no separate rigging stepdiff --git a/pages/fits.html b/pages/fits.htmlindex 67c069868..154690509 100644--- a/pages/fits.html+++ b/pages/fits.html@@ -33,7 +33,7 @@/><metaproperty="og:image"- content="https://three.ws/api/page-og?s=crypto&t=Fits&d=The+live+cosmetics+economy%3A+rarest+fits%2C+top+collectors%2C+and+the+creators+actually+getting+paid+in+USDC.&p=%2Ffits"+ content="https://three.ws/api/page-og?s=crypto&t=Fits%3A+the+cosmetics+economy&d=The+live+cosmetics+economy%3A+the+scarcest+premium+fits+ranked+by+how+few+wallets+own+them%2C+the+top+collectors+wearing+them%2C+the+creators+actually+getting+paid&p=%2Ffits"/><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="630" />@@ -46,7 +46,7 @@/><metaname="twitter:image"- content="https://three.ws/api/page-og?s=crypto&t=Fits&d=The+live+cosmetics+economy%3A+rarest+fits%2C+top+collectors%2C+and+the+creators+actually+getting+paid+in+USDC.&p=%2Ffits"+ content="https://three.ws/api/page-og?s=crypto&t=Fits%3A+the+cosmetics+economy&d=The+live+cosmetics+economy%3A+the+scarcest+premium+fits+ranked+by+how+few+wallets+own+them%2C+the+top+collectors+wearing+them%2C+the+creators+actually+getting+paid&p=%2Ffits"/><meta name="theme-color" content="#0a0a0a" /><link rel="icon" href="/favicon.ico" sizes="any" />diff --git a/prompts/quality-bar/_generated/10/audit-data.json b/prompts/quality-bar/_generated/10/audit-data.jsonindex c13d20a7c..921f8cfa8 100644--- a/prompts/quality-bar/_generated/10/audit-data.json+++ b/prompts/quality-bar/_generated/10/audit-data.json@@ -1,6 +1,6 @@{"startedAt": "2026-07-29T06:10:51.858Z",- "finishedAt": null,+ "finishedAt": "2026-07-29T06:15:16.398Z","baseUrl": "https://three.ws","cases": {"a": {@@ -16,10 +16,96 @@"views": {"front": {"file": "a-before-front.png",- "renderError": null+ "renderError": null,+ "scores": [+ {+ "photorealism": 1,+ "geometryIntegrity": 1,+ "textureFidelity": 1,+ "promptAdherence": 1,+ "critique": "The output is a simple geometric block and bears no resemblance whatsoever to the requested human subject.",+ "modelVersion": "google/gemini-2.5-pro"+ },+ {+ "photorealism": 1,+ "geometryIntegrity": 1,+ "textureFidelity": 1,+ "promptAdherence": 1,+ "critique": "The output is an abstract geometric shape with a blurry texture, bearing no resemblance to the requested human subject.",+ "modelVersion": "google/gemini-2.5-pro"+ }+ ],+ "avg": {+ "photorealism": 1,+ "geometryIntegrity": 1,+ "textureFidelity": 1,+ "promptAdherence": 1,+ "mean": 1+ },+ "judgeError": null},"three-quarter": {"file": "a-before-three-quarter.png",+ "renderError": null,+ "scores": [+ {+ "photorealism": 1,+ "geometryIntegrity": 1,+ "textureFidelity": 1,+ "promptAdherence": 1,+ "critique": "The generated asset is a simple, flat plane and bears no resemblance to the requested human subject.",+ "modelVersion": "google/gemini-2.5-pro"+ },+ {+ "photorealism": 1,+ "geometryIntegrity": 1,+ "textureFidelity": 1,+ "promptAdherence": 1,+ "critique": "The generated asset is a collection of flat, low-polygon planes and completely fails to represent the requested human subject.",+ "modelVersion": "google/gemini-2.5-pro"+ }+ ],+ "avg": {+ "photorealism": 1,+ "geometryIntegrity": 1,+ "textureFidelity": 1,+ "promptAdherence": 1,+ "mean": 1+ },+ "judgeError": null+ },+ "side": {+ "file": "a-before-side.png",+ "renderError": null,+ "scores": [+ {+ "photorealism": 1,+ "geometryIntegrity": 1,+ "textureFidelity": 1,+ "promptAdherence": 1,+ "critique": "The model's geometry has catastrophically collapsed into a nearly two-dimensional plane, rendering it completely unrecognizable.",+ "modelVersion": "google/gemini-2.5-pro"+ },+ {+ "photorealism": 1,+ "geometryIntegrity": 1,+ "textureFidelity": 1,+ "promptAdherence": 1,+ "critique": "The model's geometry has completely collapsed into a paper-thin, two-dimensional plane, making it impossible to evaluate any features.",+ "modelVersion": "google/gemini-2.5-pro"+ }+ ],+ "avg": {+ "photorealism": 1,+ "geometryIntegrity": 1,+ "textureFidelity": 1,+ "promptAdherence": 1,+ "mean": 1+ },+ "judgeError": null+ },+ "hands": {+ "file": "a-before-hands.png","renderError": null}},@@ -29,7 +115,22 @@"previewImageUrl": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/refs/4f92033c-8e30-4689-9f72-2c55099791d1.png","creationId": "47e396f1-4c6b-4b4d-9c23-b39931252744","generationMs": 80287,- "error": null+ "error": null,+ "meanScore": 1,+ "dimMeans": {+ "photorealism": 1,+ "geometryIntegrity": 1,+ "textureFidelity": 1,+ "promptAdherence": 1,+ "mean": 1+ }+ },+ "after": {+ "id": "after",+ "tierRequested": "high",+ "views": {},+ "error": "forge submit 402: three_hold_required",+ "generationMs": 165}},"directed": "Full-body humanoid, standing in a neutral A-pose with arms slightly away from the body and legs slightly apart for optimal rigging, hands open, fingers separated; female, late twenties, lean muscular athletic build, toned proportions, determined",diff --git a/prompts/quality-bar/_generated/10/irl-realism-check.json b/prompts/quality-bar/_generated/10/irl-realism-check.jsonindex 75eced26d..9b436c70e 100644--- a/prompts/quality-bar/_generated/10/irl-realism-check.json+++ b/prompts/quality-bar/_generated/10/irl-realism-check.json@@ -3,162 +3,29 @@"name": "dev","url": "http://localhost:3004/irl","loaded": true,- "avatarRendered": true,+ "avatarRendered": false,"consoleErrors": ["WebSocket connection to 'wss://solid-parakeet-96wp6jwgq7xcxv75-3000.app.github.dev/?token=M0RPhrYv9bOv' failed: Error during WebSocket handshake: Unexpected response code: 404",- "[vite] failed to connect to websocket (Error: WebSocket closed without opened.). "+ "[vite] failed to connect to websocket (Error: WebSocket closed without opened.). ",+ "Failed to load resource: net::ERR_SOCKET_NOT_CONNECTED",+ "Failed to load resource: net::ERR_CONNECTION_REFUSED",+ "Failed to load resource: net::ERR_CONNECTION_REFUSED",+ "Failed to load resource: net::ERR_CONNECTION_REFUSED",+ "Failed to load resource: net::ERR_CONNECTION_REFUSED",+ "[irl] avatar load failed: TypeError: Failed to fetch\n at FileLoader.load (http://localhost:3004/node_modules/.vite/deps/chunk-KWF34OUE.js?v=de7f2fa6:23342:5)\n at GLTFLoader.load (http://localhost:3004/node_modules/.vite/deps/chunk-ZDH5U5RJ.js?v=de7f2fa6:194:12)\n at http://localhost:3004/node_modules/.vite/deps/chunk-KWF34OUE.js?v=de7f2fa6:23203:13\n at new Promise (<anonymous>)\n at GLTFLoader.loadAsync (http://localhost:3004/node_modules/.vite/deps/chunk-KWF34OUE.js?v=de7f2fa6:23202:12)\n at loadAvatar (http://localhost:3004/src/irl.js:1148:40)\n at bootAvatar (http://localhost:3004/src/irl.js:7899:9)\n at http://localhost:3004/src/irl.js:7915:1",+ "Failed to load resource: net::ERR_CONNECTION_REFUSED"],"pageErrors": ["WebSocket closed without opened."],"screenshots": [- "/workspaces/three.ws/prompts/quality-bar/_generated/10/irl-avatar.png",- "/workspaces/three.ws/prompts/quality-bar/_generated/10/irl-avatar-realism-applied.png"+ "/workspaces/three.ws/prompts/quality-bar/_generated/10/irl-avatar.png"],"readback": {- "scenes": 1,- "meshes": 19,- "skinnedMeshes": 10,- "classified": [- {- "mesh": "EyeLeft",- "class": "eye",- "material": {- "name": "Wolf3D_Eye",- "type": "MeshStandardMaterial",- "isMeshPhysicalMaterial": false,- "isMeshStandardMaterial": true,- "roughness": 1,- "metalness": 0,- "sheen": null,- "sheenColor": null,- "sheenRoughness": null,- "clearcoat": null,- "clearcoatRoughness": null,- "ior": null,- "specularIntensity": null,- "envMapIntensity": 0.85,- "side": 0,- "alphaTest": 0,- "color": "#ffffff"- }- },- {- "mesh": "EyeRight",- "class": "eye",- "material": {- "name": "Wolf3D_Eye",- "type": "MeshStandardMaterial",- "isMeshPhysicalMaterial": false,- "isMeshStandardMaterial": true,- "roughness": 1,- "metalness": 0,- "sheen": null,- "sheenColor": null,- "sheenRoughness": null,- "clearcoat": null,- "clearcoatRoughness": null,- "ior": null,- "specularIntensity": null,- "envMapIntensity": 0.85,- "side": 0,- "alphaTest": 0,- "color": "#ffffff"- }- },- {- "mesh": "Wolf3D_Head",- "class": "skin",- "material": {- "name": "Wolf3D_Skin",- "type": "MeshStandardMaterial",- "isMeshPhysicalMaterial": false,- "isMeshStandardMaterial": true,- "roughness": 0.699999988079071,- "metalness": 0,- "sheen": null,- "sheenColor": null,- "sheenRoughness": null,- "clearcoat": null,- "clearcoatRoughness": null,- "ior": null,- "specularIntensity": null,- "envMapIntensity": 0.85,- "side": 0,- "alphaTest": 0,- "color": "#ffffff"- }- },- {- "mesh": "Wolf3D_Teeth",- "class": "teeth",- "material": {- "name": "Wolf3D_Teeth",- "type": "MeshStandardMaterial",- "isMeshPhysicalMaterial": false,- "isMeshStandardMaterial": true,- "roughness": 1,- "metalness": 0,- "sheen": null,- "sheenColor": null,- "sheenRoughness": null,- "clearcoat": null,- "clearcoatRoughness": null,- "ior": null,- "specularIntensity": null,- "envMapIntensity": 0.85,- "side": 2,- "alphaTest": 0,- "color": "#ffffff"- }- },- {- "mesh": "Wolf3D_Hair",- "class": "hair",- "material": {- "name": "Wolf3D_Hair",- "type": "MeshStandardMaterial",- "isMeshPhysicalMaterial": false,- "isMeshStandardMaterial": true,- "roughness": 0.800000011920929,- "metalness": 0,- "sheen": null,- "sheenColor": null,- "sheenRoughness": null,- "clearcoat": null,- "clearcoatRoughness": null,- "ior": null,- "specularIntensity": null,- "envMapIntensity": 0.85,- "side": 2,- "alphaTest": 0,- "color": "#181818"- }- },- {- "mesh": "Wolf3D_Body",- "class": "skin",- "material": {- "name": "Wolf3D_Body",- "type": "MeshStandardMaterial",- "isMeshPhysicalMaterial": false,- "isMeshStandardMaterial": true,- "roughness": 0.858578622341156,- "metalness": 0,- "sheen": null,- "sheenColor": null,- "sheenRoughness": null,- "clearcoat": null,- "clearcoatRoughness": null,- "ior": null,- "specularIntensity": null,- "envMapIntensity": 0.85,- "side": 2,- "alphaTest": 0,- "color": "#e69b7c"- }- }- ],+ "scenes": 2,+ "meshes": 17,+ "skinnedMeshes": 0,+ "classified": [],"sample": [{"name": "",@@ -186,52 +53,42 @@"visible": true},{- "name": "EyeLeft",- "class": "eye",- "visible": true- },- {- "name": "EyeRight",- "class": "eye",- "visible": true- },- {- "name": "Wolf3D_Head",- "class": "skin",+ "name": "",+ "class": null,"visible": true},{- "name": "Wolf3D_Teeth",- "class": "teeth",+ "name": "",+ "class": null,"visible": true},{- "name": "Wolf3D_Hair",- "class": "hair",+ "name": "",+ "class": null,"visible": true},{- "name": "Wolf3D_Glasses",+ "name": "","class": null,"visible": true},{- "name": "Wolf3D_Body",- "class": "skin",+ "name": "",+ "class": null,"visible": true},{- "name": "Wolf3D_Outfit_Bottom",+ "name": "","class": null,"visible": true},{- "name": "Wolf3D_Outfit_Footwear",+ "name": "","class": null,"visible": true},{- "name": "Wolf3D_Outfit_Top",+ "name": "","class": null,"visible": true},@@ -258,282 +115,28 @@]},"summary": {- "classifiedCount": 6,+ "classifiedCount": 0,"physicalCount": 0,- "skinCount": 2,- "eyeCount": 2,+ "skinCount": 0,+ "eyeCount": 0,"skinMarked": false,"eyeMarked": false,"realismActive": false},- "afterModule": {- "looksLikeAvatarMesh": true,- "counts": {- "skin": 2,- "eye": 2,- "hair": 1,- "teeth": 1- },- "readback": {- "scenes": 1,- "meshes": 19,- "skinnedMeshes": 10,- "classified": [- {- "mesh": "EyeLeft",- "class": "eye",- "material": {- "name": "Wolf3D_Eye",- "type": "MeshPhysicalMaterial",- "isMeshPhysicalMaterial": true,- "isMeshStandardMaterial": true,- "roughness": 0.08,- "metalness": 0,- "sheen": 0,- "sheenColor": "#000000",- "sheenRoughness": 1,- "clearcoat": 1,- "clearcoatRoughness": 0.03,- "ior": 1.376,- "specularIntensity": 1,- "envMapIntensity": 1.1,- "side": 0,- "alphaTest": 0,- "color": "#ffffff"- }- },- {- "mesh": "EyeRight",- "class": "eye",- "material": {- "name": "Wolf3D_Eye",- "type": "MeshPhysicalMaterial",- "isMeshPhysicalMaterial": true,- "isMeshStandardMaterial": true,- "roughness": 0.08,- "metalness": 0,- "sheen": 0,- "sheenColor": "#000000",- "sheenRoughness": 1,- "clearcoat": 1,- "clearcoatRoughness": 0.03,- "ior": 1.376,- "specularIntensity": 1,- "envMapIntensity": 1.1,- "side": 0,- "alphaTest": 0,- "color": "#ffffff"- }- },- {- "mesh": "Wolf3D_Head",- "class": "skin",- "material": {- "name": "Wolf3D_Skin",- "type": "MeshPhysicalMaterial",- "isMeshPhysicalMaterial": true,- "isMeshStandardMaterial": true,- "roughness": 0.6,- "metalness": 0,- "sheen": 0.35,- "sheenColor": "#ffe0c2",- "sheenRoughness": 0.6,- "clearcoat": 0,- "clearcoatRoughness": 0,- "ior": 1.5,- "specularIntensity": 0.6,- "envMapIntensity": 0.7,- "side": 0,- "alphaTest": 0,- "color": "#ffffff"- }- },- {- "mesh": "Wolf3D_Teeth",- "class": "teeth",- "material": {- "name": "Wolf3D_Teeth",- "type": "MeshPhysicalMaterial",- "isMeshPhysicalMaterial": true,- "isMeshStandardMaterial": true,- "roughness": 0.25,- "metalness": 0,- "sheen": 0,- "sheenColor": "#000000",- "sheenRoughness": 1,- "clearcoat": 0.4,- "clearcoatRoughness": 0.15,- "ior": 1.5,- "specularIntensity": 1,- "envMapIntensity": 0.85,- "side": 2,- "alphaTest": 0,- "color": "#ffffff"- }- },- {- "mesh": "Wolf3D_Hair",- "class": "hair",- "material": {- "name": "Wolf3D_Hair",- "type": "MeshPhysicalMaterial",- "isMeshPhysicalMaterial": true,- "isMeshStandardMaterial": true,- "roughness": 0.55,- "metalness": 0,- "sheen": 0.5,- "sheenColor": "#181818",- "sheenRoughness": 0.4,- "clearcoat": 0,- "clearcoatRoughness": 0,- "ior": 1.5,- "specularIntensity": 1,- "envMapIntensity": 0.85,- "side": 2,- "alphaTest": 0,- "color": "#181818"- }- },- {- "mesh": "Wolf3D_Body",- "class": "skin",- "material": {- "name": "Wolf3D_Body",- "type": "MeshPhysicalMaterial",- "isMeshPhysicalMaterial": true,- "isMeshStandardMaterial": true,- "roughness": 0.6,- "metalness": 0,- "sheen": 0.35,- "sheenColor": "#e6885d",- "sheenRoughness": 0.6,- "clearcoat": 0,- "clearcoatRoughness": 0,- "ior": 1.5,- "specularIntensity": 0.6,- "envMapIntensity": 0.7,- "side": 2,- "alphaTest": 0,- "color": "#e69b7c"- }- }- ],- "sample": [- {- "name": "",- "class": null,- "visible": true- },- {- "name": "",- "class": null,- "visible": false- },- {- "name": "",- "class": null,- "visible": true- },- {- "name": "",- "class": null,- "visible": true- },- {- "name": "",- "class": null,- "visible": true- },- {- "name": "EyeLeft",- "class": "eye",- "visible": true- },- {- "name": "EyeRight",- "class": "eye",- "visible": true- },- {- "name": "Wolf3D_Head",- "class": "skin",- "visible": true- },- {- "name": "Wolf3D_Teeth",- "class": "teeth",- "visible": true- },- {- "name": "Wolf3D_Hair",- "class": "hair",- "visible": true- },- {- "name": "Wolf3D_Glasses",- "class": null,- "visible": true- },- {- "name": "Wolf3D_Body",- "class": "skin",- "visible": true- },- {- "name": "Wolf3D_Outfit_Bottom",- "class": null,- "visible": true- },- {- "name": "Wolf3D_Outfit_Footwear",- "class": null,- "visible": true- },- {- "name": "Wolf3D_Outfit_Top",- "class": null,- "visible": true- },- {- "name": "",- "class": null,- "visible": true- },- {- "name": "",- "class": null,- "visible": true- },- {- "name": "",- "class": null,- "visible": true- },- {- "name": "",- "class": null,- "visible": true- }- ]- }- },- "afterSummary": {- "classifiedCount": 6,- "physicalCount": 6,- "skinCount": 2,- "eyeCount": 2,- "skinMarked": true,- "eyeMarked": true,- "realismActive": true- },+ "afterModule": null,+ "afterSummary": null,"cameraAr": null,"onboarding": [+ "Enable Camera","Enable Camera","Enable Location",- "Continue without"+ "Continue without",+ "Start exploring"],"notes": [- "camera AR click failed: page.click: Timeout 10000ms exceeded.\nCall log:\n - waiting for locator('#irl-camera-btn')\n - locator resolved to <button type=\"button\" id=\"irl-camera-btn\" aria-pressed=\"false\">…</button>\n - attempting click action\n 2 × waiting for element to be visible, enabled and stable\n - element is visible, enabled and stable\n - scrolling into view if needed\n - done scrolling\n - <div data-dx-close=\"\" class=\"irl-dx-scrim\"></div> from <div role=\"dialog\" class=\"is-open\" aria-modal=\"true\" id=\"irl-discovery-explainer\" aria-label=\"How discovery works\">…</div> subtree intercepts pointer events\n - retrying click action\n - waiting 20ms\n - waiting for element to be visible, enabled and stable\n"+ "no SkinnedMesh observed in any captured scene within 60s",+ "camera AR click failed: page.click: Timeout 10000ms exceeded.\nCall log:\n - waiting for locator('#irl-camera-btn')\n - locator resolved to <button type=\"button\" id=\"irl-camera-btn\" aria-pressed=\"false\">…</button>\n - attempting click action\n 2 × waiting for element to be visible, enabled and stable\n - element is visible, enabled and stable\n - scrolling into view if needed\n - done scrolling\n - <div id=\"irl-overlay\" aria-modal=\"true\" role=\"alertdialog\" aria-label=\"IRL status\">…</div> intercepts pointer events\n - retrying click action\n - waiting 20ms\n - waiting for element to be visible, enabled and stable\n - element is visible, enabled and stable\n - scrolling into view if needed\n - done scrolling\n - <div id=\"irl-overlay\" aria-modal=\"true\" role=\"alertdialog\" aria-label=\"IRL status\">…</div> intercepts pointer events\n - retrying click action\n - waiting 100ms\n - waiting for element to be visible, enabled and stable\n",+ "fatal: page.evaluate: TypeError: Failed to fetch dynamically imported module: http://localhost:3004/src/shared/avatar-material-realism.js"]}]\ No newline at end of filediff --git a/public/changelog.json b/public/changelog.jsonindex a5729512e..93fe863bf 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-29T06:12:36.507Z",+ "generated_at": "2026-07-29T06:15:54.723Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",diff --git a/public/features.json b/public/features.jsonindex 8ecc0d309..be7d21390 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-29T06:12:36.355Z",+ "generated_at": "2026-07-29T06:15:54.710Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/public/locales/localized-pages.json b/public/locales/localized-pages.jsonindex 3bb5cc882..39248e87b 100644--- a/public/locales/localized-pages.json+++ b/public/locales/localized-pages.json@@ -1,6 +1,6 @@{"generated": true,- "count": 346,+ "count": 237,"paths": ["/","/3d",@@ -153,115 +153,6 @@"/mocap-studio","/motion-swap","/my-agents",- "/news",- "/news/",- "/news/2045242891350814835",- "/news/2049397875935989970",- "/news/2049406826719137937",- "/news/2049412062837928202",- "/news/2049447738434339171",- "/news/2049458671139336613",- "/news/2049476546285740512",- "/news/2049557523330638269",- "/news/2049573582247022869",- "/news/2049576603324411933",- "/news/2049576641127682430",- "/news/2049577291957899336",- "/news/2049762836881301865",- "/news/2049765915575914834",- "/news/2049997615421649363",- "/news/2050016695897706885",- "/news/2050049239301165535",- "/news/2050221269732425928",- "/news/2050226678321102975",- "/news/2050229144676675999",- "/news/2050284562069266616",- "/news/2050585585191186781",- "/news/2050627547394916768",- "/news/2050753406109880576",- "/news/2050758788186353723",- "/news/2050800140295049308",- "/news/2050886334261391686",- "/news/2051140736201175323",- "/news/2051261108506558901",- "/news/2051616708482498843",- "/news/2051689230997618690",- "/news/2051690803203105230",- "/news/2051774915876098063",- "/news/2051858035862335505",- "/news/2051858503523066283",- "/news/2051893054584553680",- "/news/2052037977556287723",- "/news/2052167399399735476",- "/news/2052181307002929363",- "/news/2052189491801284690",- "/news/2052402481024667887",- "/news/2052402580266098813",- "/news/2052418108837781511",- "/news/2052418482269254040",- "/news/2052426446073983267",- "/news/2052588973466484922",- "/news/2052603250524967045",- "/news/2052685648377913671",- "/news/2052790746256920583",- "/news/2052791935585407403",- "/news/2053025259645981078",- "/news/2053698115203743922",- "/news/2053698387263008827",- "/news/2053730856339144932",- "/news/2053801703355629587",- "/news/2053804700609458214",- "/news/2053832201176027583",- "/news/2054404663802483072",- "/news/2054675701132132736",- "/news/2055140064070717618",- "/news/2055307440921702738",- "/news/2055309846556401735",- "/news/2055310365588922872",- "/news/2055517252964024561",- "/news/2055967730495586477",- "/news/2055985494606106821",- "/news/2056556899403997450",- "/news/2057721370310775223",- "/news/2057780453709648200",- "/news/2057782522994684413",- "/news/2057786164862730704",- "/news/2058076885805085111",- "/news/2058287578227577039",- "/news/2059456289789657537",- "/news/2059456294189498830",- "/news/2059456295825223723",- "/news/2059457822941978723",- "/news/2059675892981633179",- "/news/2059712761622675776",- "/news/2059821472156446844",- "/news/2059894004771418220",- "/news/2060178868305326413",- "/news/2060186881636422038",- "/news/2061418285896269952",- "/news/2061488909264040194",- "/news/2061523804405616642",- "/news/2061713039624405062",- "/news/aws-builder-center-blog",- "/news/aws-marketplace-live-may29",- "/news/bybit-alpha-listing",- "/news/cmc-mcp-registry-article",- "/news/cmc-memecoin-3d-world",- "/news/ibm-collaboration-showcase",- "/news/ibm-showcase-may31",- "/news/joined-aws-partner-network",- "/news/listed-on-bnb-chain-dappbay",- "/news/live-on-alibaba-cloud-marketplace",- "/news/live-on-aws-marketplace",- "/news/mcp-servers-x402-bazaar-coinbase",- "/news/moonshot-verified",- "/news/partnered-with-hackernoon",- "/news/quicknode-startup-program",- "/news/text-to-3d-is-live",- "/news/three-ws-dextools-social-boost-buyback",- "/news/three-ws-featured-on-alibaba-cloud-marketplace-blog",- "/news/three-ws-first-month-3d-agent-layer",- "/news/threews-play-coin-communities","/nim-forge","/notifications","/objects",diff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex a1cfc673b..3bfe90076 100644--- a/public/sitemap/index.html+++ b/public/sitemap/index.html@@ -12,14 +12,14 @@<meta property="og:url" content="https://three.ws/sitemap" /><meta property="og:title" content="Sitemap · three.ws" /><meta property="og:description" content="Complete index of every public page on three.ws." />-<meta property="og:image" content="https://three.ws/api/page-og?s=main&t=Sitemap&d=Complete+index+of+every+public+page+on+three.ws.&p=%2Fsitemap" />+<meta property="og:image" content="https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap" /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="630" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:site" content="@trythreews" /><meta name="twitter:title" content="Sitemap · three.ws" /><meta name="twitter:description" content="Complete index of every public page on three.ws." />-<meta name="twitter:image" content="https://three.ws/api/page-og?s=main&t=Sitemap&d=Complete+index+of+every+public+page+on+three.ws.&p=%2Fsitemap" />+<meta name="twitter:image" content="https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap" /><link rel="alternate" type="application/xml" title="XML sitemap" href="/sitemap.xml" /><link rel="alternate" type="text/plain" title="llms.txt" href="/llms.txt" /><link rel="stylesheet" href="/nav.css" />@@ -73,6 +73,10 @@.sm-new .sm-list a:hover { border-color: rgba(150,170,255,.40); }.sm-new-date { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #7fd6a2; }</style>++ <meta property="og:locale" content="en_US">+ <meta property="og:image:alt" content="Sitemap — three.ws">+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Sitemap","description":"Human-readable index of every page on three.ws.","url":"https://three.ws/sitemap","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap"}]}</script></head><body><header><div id="nav-container"></div></header>diff --git a/robinhood/hood-mcp/README.md b/robinhood/hood-mcp/README.mdindex 19cd73d42..794531e3d 100644--- a/robinhood/hood-mcp/README.md+++ b/robinhood/hood-mcp/README.md@@ -10,11 +10,23 @@ Docs: **https://nirholas.github.io/hood-mcp/**## Website-The docs site (`docs/`) is a single self-contained `index.html` (inline CSS + JS, zero external-requests, works from `file://`). Its centerpiece is an **analog tuning instrument**: a dual-needle-gauge that reads the gap between a Stock Token's Chainlink oracle price and its live DEX price.-Turn the dial to sweep across tickers and the needles swing to the new spread, the number your-agent trades against. Deploy the folder anywhere static:+The docs site (`docs/`) is four static pages with no client-side JS and no external requests; it+works by opening `docs/index.html` from `file://`. The landing page is a **real captured MCP+session**: a genuine `@modelcontextprotocol/sdk` client spawns the built data server over stdio,+initializes, lists the tools, and calls four of them against live chain 4663. Every frame shown is+recorded off the wire, and the headline numbers (AAPL oracle price, DEX price, the premium) are+whatever the chain returned at capture time.++Regenerate the whole site, including a fresh capture against the chain as it is right now:++```bash+npm run build && npm run docs+```++That chains `docs:tools` (tool reference from the live schemas), `docs:session`+(`scripts/capture-session.mjs` → `docs/session.json`), and `docs:site`+(`scripts/build-docs.mjs` → `docs/index.html`). The page fails to build rather than render invented+numbers if the transcript is missing. Deploy the folder anywhere static:[](https://dash.cloudflare.com/?to=/:account/pages/new)[](https://app.netlify.com/start)@@ -132,7 +144,7 @@ ROBINHOOD_CHAIN_PRIVATE_KEY=0x...| `execute_swap` | **Guarded.** Preview → `confirm: true` → broadcast. Spend-capped. || `transfer_usdg` | **Guarded.** Preview → `confirm: true` → broadcast. Spend-capped. |-See [**Safety model**](docs/index.html#safety) for the full guard design. Summary:+See [**Safety model**](docs/safety.html) for the full guard design. Summary:1. **Kill switch** — the server process itself refuses to start without `HOOD_MCP_ENABLE_TRADING=1`.2. **Eligibility gate** — buying a tokenized Stock Token requires `HOOD_MCP_ACKNOWLEDGE_ELIGIBILITY=1`@@ -191,10 +203,13 @@ the owner should take:[official schema](https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json).Submit with the [`mcp-publisher`](https://github.com/modelcontextprotocol/registry) CLI once`hood-mcp` is live on npm.-- **Smithery** — their current flow publishes a *running* server URL or an `.mcpb` bundle- (`smithery mcp publish <url> -n <org/server>`), not a static config file. Deploy the HTTP- transport (`hood-mcp --http`) somewhere public, then run- `smithery mcp publish https://your-deployment/mcp -n nirholas/hood-mcp`.+- **Smithery** — [`smithery.yaml`](./smithery.yaml) in the repo root declares the stdio+ `startCommand`, so Smithery can install the data server straight from npm+ (`npx -y hood-mcp`) with `HOOD_MCP_NETWORK` and `ALCHEMY_KEY` exposed as optional settings.+ The trading server is deliberately not declared there: it signs transactions and is a+ hand-install only. Connect the GitHub repo at [smithery.ai/new](https://smithery.ai/new), or+ publish a hosted deployment instead by running the HTTP transport (`hood-mcp --http`) somewhere+ public and calling `smithery mcp publish https://your-deployment/mcp -n nirholas/hood-mcp`.## Licensediff --git a/robinhood/hood-mcp/docs/404.html b/robinhood/hood-mcp/docs/404.htmlindex 220187c9e..fcaed5020 100644--- a/robinhood/hood-mcp/docs/404.html+++ b/robinhood/hood-mcp/docs/404.html@@ -3,41 +3,57 @@<head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />-<title>hood-mcp: needle off scale (404)</title>+<title>Not found — hood-mcp</title><meta name="robots" content="noindex" /><link rel="canonical" href="https://nirholas.github.io/hood-mcp/" />-<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' fill='%230b0b0c'/><g fill='none' stroke='%23e9e6df' stroke-width='2' stroke-linecap='round'><path d='M5 22 A11 11 0 0 1 27 22'/><path d='M16 22 L11 11'/><path d='M16 22 L21 13'/></g><circle cx='16' cy='22' r='2' fill='%23e9e6df'/></svg>" />+<meta name="theme-color" content="#0a0d10" />+<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='7' fill='%230a0d10'/><path d='M7 22V10m0 6h8m0-6v12' fill='none' stroke='%2300c805' stroke-width='2.6' stroke-linecap='round'/><circle cx='24' cy='12' r='2.6' fill='%2335e0c0'/></svg>" />+<link rel="stylesheet" href="site.css" /><style>- *{margin:0;padding:0;box-sizing:border-box}- :root{--ink:#0b0b0c;--paper:#e9e6df;--graphite:#78746c;- --mono:ui-monospace,"SFMono-Regular","Menlo","Consolas",monospace;- --grot:"Helvetica Neue","Inter","Arial",system-ui,sans-serif}- body{background:var(--paper);color:var(--ink);font-family:var(--grot);min-height:100vh;- display:flex;flex-direction:column;justify-content:center;padding:clamp(24px,6vw,88px);gap:22px}- .eyebrow{font:600 11px/1 var(--mono);letter-spacing:.34em;text-transform:uppercase;color:var(--graphite)}- h1{font-size:clamp(48px,11vw,140px);font-weight:700;letter-spacing:-.03em;line-height:.9}- p{max-width:52ch;font-size:clamp(16px,1.7vw,21px);color:#2b2823;line-height:1.5}- svg{width:clamp(120px,22vw,200px);height:auto}- .arc{fill:none;stroke:rgba(11,11,12,.32);stroke-width:1.6}- .nd{stroke:var(--ink);stroke-width:2.6;stroke-linecap:round;transform-origin:100px 110px;- animation:swing 3.2s cubic-bezier(.34,1.4,.44,1) infinite alternate}- @keyframes swing{from{transform:rotate(-58deg)}to{transform:rotate(62deg)}}- @media(prefers-reduced-motion:reduce){.nd{animation:none;transform:rotate(70deg)}}- a{display:inline-flex;align-self:flex-start;text-decoration:none;border:1px solid var(--ink);color:var(--ink);- font:600 12px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;padding:15px 22px;- transition:background .25s,color .25s}- a:hover{background:var(--ink);color:var(--paper)}+ main.wrap { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }+ main.wrap section { border-top: 0; }+ .code404 { font: 600 clamp(64px, 16vw, 150px)/0.9 var(--mono); letter-spacing: -0.05em;+ background: linear-gradient(120deg, var(--accent), var(--accent-2));+ -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 18px; }</style></head><body>- <div class="eyebrow">404 / needle off scale</div>- <svg viewBox="0 0 200 130" aria-hidden="true">- <path class="arc" d="M12 110 A88 88 0 0 1 188 110"/>- <line class="nd" x1="100" y1="110" x2="100" y2="30"/>- <circle cx="100" cy="110" r="6" fill="#0b0b0c"/>- </svg>- <h1>Off the dial.</h1>- <p>That page isn't in the registry. The instrument only reads pages that exist. Turn back to the premium instrument and pick a ticker.</p>- <a href="https://nirholas.github.io/hood-mcp/">back to the instrument</a>++<nav class="top">+ <div class="wrap">+ <div class="brand"><span class="tick">hood</span>-mcp</div>+ <div class="links">+ <a href="index.html">Session</a>+ <a href="install.html">Install</a>+ <a href="tools.html">Tools</a>+ <a href="safety.html">Safety model</a>+ <a href="https://github.com/nirholas/hood-mcp">GitHub</a>+ </div>+ </div>+</nav>++<main class="wrap">+ <section>+ <p class="eyebrow">-32601 · method not found</p>+ <p class="code404">404</p>+ <h1 style="font-size:clamp(22px,4vw,32px);">That route is not in the tool list.</h1>+ <p class="section-lede">+ The four pages this site serves are below. If you followed a link from somewhere else, the+ <a href="index.html">session transcript</a> is the place to start.+ </p>+ <ul class="plain">+ <li><a href="index.html">Session</a> — a real captured MCP transcript against live chain 4663.</li>+ <li><a href="install.html">Install</a> — Claude Code, Claude Desktop, Cursor, Smithery, stdio, HTTP.</li>+ <li><a href="tools.html">Tools</a> — every tool schema, generated from the servers themselves.</li>+ <li><a href="safety.html">Safety model</a> — the four gates in front of the trading server.</li>+ </ul>+ </section>+</main>++<footer class="wrap">+ © 2026 nirholas · Built by <a href="https://x.com/nichxbt">nirholas</a> ·+ <a href="https://three.ws">three.ws</a>+</footer>+</body></html>diff --git a/robinhood/hood-mcp/docs/index.html b/robinhood/hood-mcp/docs/index.htmlindex 4544ef56e..078d53148 100644--- a/robinhood/hood-mcp/docs/index.html+++ b/robinhood/hood-mcp/docs/index.html@@ -2,618 +2,505 @@<html lang="en"><head><meta charset="utf-8" />-<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />-<title>hood-mcp: tune the Stock Token premium instrument</title>-<meta name="description" content="MCP servers for Robinhood Chain (chain 4663). Turn the tuning dial and watch a dual-needle instrument read the gap between a Stock Token's Chainlink oracle price and its live DEX price: the premium your agent trades against. A zero-config data server and an opt-in, spend-capped trading server." />+<meta name="viewport" content="width=device-width, initial-scale=1" />+<title>hood-mcp: a real Robinhood Chain agent session</title>+<meta name="description" content="A verbatim MCP session transcript: a real client spawns hood-mcp over stdio, initializes, lists 9 tools, and asks what AAPL is trading at on-chain and what the premium is. Live chain-4663 numbers, captured, not written." /><link rel="canonical" href="https://nirholas.github.io/hood-mcp/" />-<meta name="theme-color" content="#0b0b0c" />+<meta name="theme-color" content="#0a0d10" /><meta property="og:type" content="website" />-<meta property="og:title" content="hood-mcp: the premium instrument" />-<meta property="og:description" content="A dual-needle analog instrument reads the spread between the Chainlink oracle and the live DEX for every Robinhood Chain Stock Token. Turn the dial. The needles swing. That gap is the trade." />+<meta property="og:title" content="hood-mcp: a real Robinhood Chain agent session" />+<meta property="og:description" content="Verbatim MCP wire transcript against Robinhood Chain 4663: AAPL oracle vs DEX price, the premium, trending coins, token search. Every number captured from a live run." /><meta property="og:url" content="https://nirholas.github.io/hood-mcp/" /><meta name="twitter:card" content="summary_large_image" />-<meta name="twitter:title" content="hood-mcp: the premium instrument" />-<meta name="twitter:description" content="MCP servers for Robinhood Chain. Tune a dual-needle instrument across Stock Tokens; the gap between oracle and DEX is the premium your agent trades." />+<meta name="twitter:title" content="hood-mcp: a real Robinhood Chain agent session" />+<meta name="twitter:description" content="A real MCP client, the real server, live chain 4663 data. The transcript is the documentation." /><meta name="twitter:creator" content="@nichxbt" />-<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' fill='%230b0b0c'/><g fill='none' stroke='%23e9e6df' stroke-width='2' stroke-linecap='round'><path d='M5 22 A11 11 0 0 1 27 22'/><path d='M16 22 L11 11'/><path d='M16 22 L21 13'/></g><circle cx='16' cy='22' r='2' fill='%23e9e6df'/></svg>" />+<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='7' fill='%230a0d10'/><path d='M7 22V10m0 6h8m0-6v12' fill='none' stroke='%2300c805' stroke-width='2.6' stroke-linecap='round'/><circle cx='24' cy='12' r='2.6' fill='%2335e0c0'/></svg>" />+<link rel="stylesheet" href="site.css" /><script type="application/ld+json">-{"@context":"https://schema.org","@type":"SoftwareApplication","name":"hood-mcp","applicationCategory":"DeveloperApplication","operatingSystem":"Node.js >= 20","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"Model Context Protocol servers for Robinhood Chain (chain ID 4663): a zero-config read-only data server (Stock Token quotes with Chainlink + DEX premium, multiplier-correct portfolios, memecoin launches, chain stats) and an explicitly opt-in trading server (guarded swaps and USDG transfers with hard spend caps and a confirm gate).","softwareVersion":"0.1.0","author":{"@type":"Person","name":"nirholas","url":"https://x.com/nichxbt"},"downloadUrl":"https://www.npmjs.com/package/hood-mcp","codeRepository":"https://github.com/nirholas/robinhood-chain-mcp"}+{"@context":"https://schema.org","@type":"SoftwareApplication","name":"hood-mcp","applicationCategory":"DeveloperApplication","operatingSystem":"Node.js >= 20","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"Model Context Protocol servers for Robinhood Chain (chain ID 4663): a zero-config read-only data server and an explicitly opt-in trading server with hard spend caps and a confirm gate.","softwareVersion":"0.1.0","author":{"@type":"Person","name":"nirholas","url":"https://x.com/nichxbt"},"downloadUrl":"https://www.npmjs.com/package/hood-mcp","codeRepository":"https://github.com/nirholas/hood-mcp"}</script>-<style>- :root{- --ink:#0b0b0c; --paper:#e9e6df; --graphite:#78746c; --steel:#4a4842;- --hair:rgba(11,11,12,.15); --hair2:rgba(11,11,12,.32);- --mono:ui-monospace,"SFMono-Regular","JetBrains Mono","Menlo","Consolas",monospace;- --grot:"Helvetica Neue","Inter","Arial",system-ui,sans-serif;- --ease:cubic-bezier(.16,1,.3,1);- --needle:cubic-bezier(.34,1.4,.44,1);- --unit:clamp(14px,1.15vw,19px);- }- *{margin:0;padding:0;box-sizing:border-box}- html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}- body{- background:var(--paper); color:var(--ink); font-family:var(--grot);- font-size:var(--unit); line-height:1.5; overflow-x:hidden;- -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;- }- ::selection{background:var(--ink); color:var(--paper)}- a{color:inherit}- .mono{font-family:var(--mono); font-feature-settings:"ss01","zero"}-- /* film grain + scanline */- body::before{- content:""; position:fixed; inset:0; z-index:9999; pointer-events:none;- background:repeating-linear-gradient(0deg,rgba(11,11,12,.035) 0 1px,transparent 1px 3px);- mix-blend-mode:multiply; opacity:.5;- }- .scan{position:fixed; left:0; right:0; height:2px; z-index:9998; pointer-events:none;- background:linear-gradient(90deg,transparent,rgba(11,11,12,.20),transparent);- animation:scan 8s linear infinite; will-change:transform}- @keyframes scan{0%{transform:translateY(-10vh)}100%{transform:translateY(110vh)}}- @media(prefers-reduced-motion:reduce){.scan{display:none} *{animation-duration:.001s!important; transition-duration:.001s!important}}-- /* rail */- .rail{position:fixed; left:0; top:0; bottom:0; width:56px; z-index:60;- display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;- border-right:1px solid var(--hair); background:var(--paper); mix-blend-mode:multiply}- .rail b{writing-mode:vertical-rl; transform:rotate(180deg); font:600 11px/1 var(--mono);- letter-spacing:.35em; text-transform:uppercase; color:var(--graphite); position:absolute; top:16px}- .rail .stn{writing-mode:vertical-rl; font:500 10px/1 var(--mono); letter-spacing:.28em;- text-transform:uppercase; color:var(--graphite); padding:14px 0; cursor:pointer;- transition:color .3s var(--ease); text-decoration:none; opacity:.6}- .rail .stn:hover{color:var(--ink); opacity:1}- .rail .stn[aria-current="true"]{color:var(--ink); opacity:1}- .rail .stn::before{content:"";display:block;width:5px;height:5px;border:1px solid var(--hair2);- border-radius:50%;margin:0 auto 8px;transition:all .3s var(--ease)}- .rail .stn[aria-current="true"]::before{background:var(--ink);border-color:var(--ink)}- .rail .carriage{position:absolute;left:-1px;width:2px;background:var(--ink);height:40px;top:0;- transition:transform .5s var(--ease);will-change:transform}- main{margin-left:56px}- @media(max-width:720px){.rail{width:0;border:0}.rail b,.rail .stn,.rail .carriage{display:none}main{margin-left:0}}-- section{position:relative; padding:clamp(60px,9vh,116px) clamp(20px,5vw,88px); border-bottom:1px solid var(--hair)}- .eyebrow{font:600 11px/1 var(--mono); letter-spacing:.34em; text-transform:uppercase;- color:var(--graphite); display:flex; align-items:center; gap:12px; margin-bottom:26px}- .eyebrow::after{content:"";flex:1;height:1px;background:var(--hair)}- .eyebrow .n{color:var(--ink)}-- h1,h2{font-family:var(--grot); font-weight:700; letter-spacing:-.03em; line-height:.96}- h1{font-size:clamp(38px,6vw,84px)}- h2{font-size:clamp(29px,4.8vw,60px)}- .lede{max-width:60ch; font-size:clamp(17px,1.7vw,23px); line-height:1.42; color:#26241f}-- /* ============ INSTRUMENT (hero + signature interaction) ============ */- #inst{min-height:100svh; display:flex; flex-direction:column; justify-content:center; padding-top:clamp(48px,7vh,80px); padding-bottom:clamp(30px,4vh,56px)}- .boot{font:500 12px/1.7 var(--mono); color:var(--graphite); letter-spacing:.04em; margin-bottom:16px; white-space:pre-wrap; min-height:1.7em}- @media(max-width:720px){.boot{font-size:10.5px; letter-spacing:0}}- .boot span{display:inline-block; white-space:pre; opacity:0; animation:type .5s var(--ease) forwards}- @keyframes type{to{opacity:1}}- #inst .eyebrow{margin-bottom:18px}- .headline{max-width:15ch}- .headline .lo{color:var(--graphite)}- .sub{margin-top:16px; max-width:54ch; font-size:clamp(15px,1.4vw,19px); color:#2b2823}-- .rig{margin-top:clamp(20px,3vh,38px); display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);- gap:clamp(22px,3.5vw,56px); align-items:center}- @media(max-width:900px){.rig{grid-template-columns:1fr; gap:26px}}- @media(min-width:901px){.headline{font-size:clamp(40px,4.6vw,68px)}}-- /* the gauge */- .gauge{position:relative; width:100%; max-width:500px; margin:0 auto; aspect-ratio:400/258; user-select:none}- .gauge svg{width:100%; height:100%; display:block; overflow:visible}- .face-arc{fill:none; stroke:var(--hair2); stroke-width:1.4}- .face-band{fill:none; stroke:var(--ink); stroke-width:2}- .tick{stroke:var(--graphite); stroke-width:1}- .tick.major{stroke:var(--ink); stroke-width:1.6}- .tick-lab{fill:var(--graphite); font:600 8.5px/1 var(--mono); letter-spacing:.06em}- .needle{transition:transform .95s var(--needle); transform-box:view-box; transform-origin:200px 220px; will-change:transform}- @media(prefers-reduced-motion:reduce){.needle{transition:transform .001s}}- .needle.oracle line{stroke:var(--ink); stroke-width:2.4; stroke-linecap:round}- .needle.oracle .cw{stroke:var(--paper); stroke-width:5; stroke-linecap:round}- .needle.dex line{stroke:var(--ink); stroke-width:2.4; stroke-linecap:round; stroke-dasharray:4 4}- .needle.dex .cw{stroke:var(--paper); stroke-width:6; stroke-linecap:round}- .hub{fill:var(--ink)}- .hub-ring{fill:none; stroke:var(--paper); stroke-width:2}- .lgd{position:absolute; left:0; right:0; bottom:-2px; display:flex; justify-content:center; gap:26px; font:600 10px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; color:var(--graphite)}- .lgd i{display:inline-block; width:20px; height:0; border-top:2.4px solid var(--ink); margin-right:8px; vertical-align:middle}- .lgd i.d{border-top-style:dashed}-- /* readout column */- .panel{border:1px solid var(--ink); background:transparent}- .panel .hd{display:flex; justify-content:space-between; align-items:baseline; padding:14px 18px; border-bottom:1px solid var(--hair)}- .panel .hd .tk{font:700 34px/1 var(--grot); letter-spacing:-.03em}- @media(max-width:900px){.panel .hd .tk{font-size:28px}}- .panel .hd .co{font:500 11px/1.3 var(--mono); letter-spacing:.06em; color:var(--graphite); text-align:right; max-width:16ch}- .rd{display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid var(--hair)}- .rd .cell{padding:14px 18px; border-right:1px solid var(--hair)}- .rd .cell:last-child{border-right:0}- .rd .k{font:600 9.5px/1 var(--mono); letter-spacing:.2em; text-transform:uppercase; color:var(--graphite)}- .rd .v{font:600 22px/1 var(--mono); margin-top:9px; font-feature-settings:"zero","ss01"}- @media(max-width:900px){.rd .v{font-size:19px}}- .prem{display:flex; align-items:baseline; justify-content:space-between; padding:16px 18px; gap:14px}- .prem .k{font:600 9.5px/1 var(--mono); letter-spacing:.2em; text-transform:uppercase; color:var(--graphite)}- .prem .big{font:700 42px/.9 var(--grot); letter-spacing:-.03em; transition:transform .3s var(--ease); display:inline-block}- @media(max-width:900px){.prem .big{font-size:34px}}- .prem .tag{font:600 10px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; border:1px solid var(--ink); padding:6px 10px}- .prem.disc .tag{background:var(--ink); color:var(--paper)}- .foot{display:flex; justify-content:space-between; padding:12px 18px; font:500 10.5px/1.4 var(--mono); color:var(--graphite); letter-spacing:.03em; border-top:1px solid var(--hair)}-- /* the tuner dial */- .tuner{margin-top:clamp(24px,4vh,44px)}- .tuner .cap{display:flex; align-items:center; gap:12px; font:600 10px/1 var(--mono); letter-spacing:.28em; text-transform:uppercase; color:var(--graphite); margin-bottom:12px}- .tuner .cap::before{content:"◄"; font-size:8px}- .tuner .cap span{letter-spacing:.14em; text-transform:none; font-weight:500}- .dialwrap{position:relative; border:1px solid var(--ink); overflow:hidden; background:rgba(11,11,12,.02); touch-action:pan-y; cursor:grab}- .dialwrap:active{cursor:grabbing}- .dialwrap:focus-visible{outline:2px solid var(--ink); outline-offset:2px}- .dialwrap::before,.dialwrap::after{content:""; position:absolute; top:0; bottom:0; width:64px; z-index:4; pointer-events:none}- .dialwrap::before{left:0; background:linear-gradient(90deg,var(--paper),transparent)}- .dialwrap::after{right:0; background:linear-gradient(270deg,var(--paper),transparent)}- .center-ind{position:absolute; left:50%; top:0; bottom:0; width:0; z-index:5; pointer-events:none; border-left:1.6px solid var(--ink)}- .center-ind::before,.center-ind::after{content:""; position:absolute; left:-5px; border:5px solid transparent}- .center-ind::before{top:-1px; border-top-color:var(--ink)}- .center-ind::after{bottom:-1px; border-bottom-color:var(--ink)}- .knurl{position:absolute; inset:0; z-index:1; opacity:.5; pointer-events:none;- background:repeating-linear-gradient(90deg,var(--hair2) 0 1px,transparent 1px 11px)}- .strip{position:relative; z-index:2; display:flex; align-items:center; height:74px; will-change:transform}- .stop{flex:0 0 auto; width:96px; text-align:center; cursor:pointer; opacity:.4;- transition:opacity .3s var(--ease), transform .3s var(--ease)}- .stop.on{opacity:1; transform:scale(1.06)}- .stop .t{font:700 17px/1 var(--grot); letter-spacing:-.02em}- .stop .p{font:600 9.5px/1 var(--mono); letter-spacing:.06em; margin-top:6px; color:var(--graphite)}- .stop.on .p{color:var(--ink)}-- .scrollcue{margin-top:clamp(20px,4vh,40px); font:600 10px/1 var(--mono); letter-spacing:.3em; text-transform:uppercase; color:var(--graphite); display:flex; align-items:center; gap:10px}- .scrollcue i{display:block; width:26px; height:1px; background:var(--graphite); position:relative; overflow:hidden}- .scrollcue i::after{content:"";position:absolute;inset:0;background:var(--ink);animation:sweep 2.4s var(--ease) infinite}- @keyframes sweep{0%{transform:translateX(-100%)}60%,100%{transform:translateX(100%)}}-- /* panels / grids */- .cols{display:grid; grid-template-columns:1fr 1fr; gap:clamp(30px,5vw,80px); align-items:start}- @media(max-width:860px){.cols{grid-template-columns:1fr; gap:34px}}- .install{border:1px solid var(--ink); background:var(--ink); color:var(--paper); padding:22px 22px;- font:500 13.5px/1.85 var(--mono); position:relative; overflow-x:auto; word-break:break-word}- .install .c,.install .p,.install .pc{display:block}- .install .c{color:#8b8781; margin-top:15px}- .install .c:first-child{margin-top:0}- .install .p::before{content:"$ "; color:#8b8781}- .install .pc{color:var(--paper)}- .copy{position:absolute; top:12px; right:12px; appearance:none; border:1px solid rgba(233,230,223,.3);- background:transparent; color:var(--paper); font:600 10px/1 var(--mono); letter-spacing:.14em; padding:7px 11px; cursor:pointer; transition:background .2s}- .copy:hover{background:rgba(233,230,223,.14)}-- /* two-server split */- .split{display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--ink); margin-top:12px}- @media(max-width:760px){.split{grid-template-columns:1fr}}- .srv{padding:26px 24px 28px; border-right:1px solid var(--hair)}- .srv:last-child{border-right:0}- @media(max-width:760px){.srv{border-right:0; border-bottom:1px solid var(--hair)}.srv:last-child{border-bottom:0}}- .srv .badge{display:inline-block; font:600 10px/1 var(--mono); letter-spacing:.16em; text-transform:uppercase; padding:6px 10px; border:1px solid var(--ink); margin-bottom:16px}- .srv .badge.hot{background:var(--ink); color:var(--paper)}- .srv h3{font:700 24px/1.05 var(--grot); letter-spacing:-.02em; margin-bottom:10px}- .srv p{font-size:15px; color:#2c2925; line-height:1.5; max-width:42ch}- .srv .cmd{margin-top:16px; font:500 12.5px/1.6 var(--mono); border-top:1px solid var(--hair); padding-top:14px; color:var(--steel); word-break:break-all}- .srv .cmd b{color:var(--ink); font-weight:600}-- /* tool table as instrument panel */- .tools{border-top:1px solid var(--hair); margin-top:clamp(24px,4vh,48px)}- .tools .tr{display:grid; grid-template-columns:220px 1fr; gap:22px; padding:16px 0; border-bottom:1px solid var(--hair); align-items:baseline}- @media(max-width:640px){.tools .tr{grid-template-columns:1fr; gap:5px}}- .tools .tr .nm{font:600 13px/1.3 var(--mono); letter-spacing:.02em; color:var(--ink)}- .tools .tr .ds{font-size:15.5px; color:#2c2925; max-width:60ch}- .tools .tr .ds b{font-weight:700}-- /* safety fuses */- .fuse{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:12px}- @media(max-width:860px){.fuse{grid-template-columns:1fr 1fr}}- @media(max-width:420px){.fuse{grid-template-columns:1fr}}- .fuse .f{border:1px solid var(--hair2); padding:18px}- .fuse .f .h{font:700 13px/1 var(--mono); letter-spacing:.06em; text-transform:uppercase; margin-bottom:9px; display:flex; gap:8px; align-items:baseline}- .fuse .f .h .no{color:var(--graphite); font-size:10px}- .fuse .f .b{font-size:14px; color:#2c2925; line-height:1.45}- .fuse .f .b span{font-family:var(--mono); font-size:12px}-- .btns{display:flex; flex-wrap:wrap; gap:12px; margin-top:26px}- .btn{appearance:none; text-decoration:none; border:1px solid var(--ink); color:var(--ink); background:transparent;- font:600 12px/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; padding:15px 22px; cursor:pointer;- transition:background .25s,color .25s,transform .25s var(--ease)}- .btn:hover{background:var(--ink); color:var(--paper); transform:translateY(-2px)}- .btn.solid{background:var(--ink); color:var(--paper)}- .btn.solid:hover{background:transparent; color:var(--ink)}-- .note{margin-top:22px; border-left:2px solid var(--ink); padding:4px 0 4px 18px; font-size:14.5px; color:#2c2925; max-width:70ch; line-height:1.55}- .note b{font-weight:700}-- footer{padding:clamp(40px,6vh,72px) clamp(20px,5vw,88px); display:flex; flex-wrap:wrap;- justify-content:space-between; gap:20px; align-items:flex-end}- footer .big{font:700 clamp(30px,6vw,72px)/.9 var(--grot); letter-spacing:-.03em}- footer .meta{font:500 12px/1.7 var(--mono); color:var(--graphite); letter-spacing:.02em; text-align:right}- footer a{text-decoration:none; border-bottom:1px solid var(--hair2); transition:border-color .2s}- footer a:hover{border-color:var(--ink)}-- .rise{opacity:0; transform:translateY(22px); transition:opacity .8s var(--ease),transform .8s var(--ease)}- .rise.in{opacity:1; transform:none}-</style></head><body>-<div class="scan" aria-hidden="true"></div>-<nav class="rail" aria-label="Sections">- <b>hood·mcp</b>- <span class="carriage" id="carriage"></span>- <a class="stn" href="#inst" aria-current="true">Tune</a>- <a class="stn" href="#read">Read</a>- <a class="stn" href="#servers">Servers</a>- <a class="stn" href="#tools">Tools</a>- <a class="stn" href="#safety">Safety</a>- <a class="stn" href="#get">Get it</a>+<nav class="top">+ <div class="wrap">+ <div class="brand"><span class="tick">hood</span>-mcp</div>+ <div class="links">+ <a href="index.html" aria-current="page">Session</a>+ <a href="install.html">Install</a>+ <a href="tools.html">Tools</a>+ <a href="safety.html">Safety model</a>+ <a href="https://github.com/nirholas/hood-mcp">GitHub</a>+ </div>+ </div></nav>-<main>- <!-- ============ INSTRUMENT ============ -->- <section id="inst">- <p class="boot mono" id="boot"></p>- <div class="eyebrow"><span class="n">00</span> / THE PREMIUM INSTRUMENT · chain 4663</div>- <h1 class="headline">The oracle and<br>the market<br><span class="lo">rarely agree.</span></h1>- <p class="sub">Every Robinhood Chain Stock Token has two prices: what Chainlink says the share is worth, and what the DEX will actually pay. The gap between them is the premium your agent trades against. Turn the dial. Read the instrument.</p>-- <div class="rig">+<main class="wrap">++ <section style="border-top:none; padding-top:56px;">+ <p class="eyebrow">Captured session · 2026-07-29 05:54:55 UTC</p>+ <h1>“What is AAPL trading at on-chain,<br />and what is the premium?”</h1>+ <p class="section-lede">+ Below is the answer, and then the entire wire transcript that produced it: a real+ <a href="https://modelcontextprotocol.io">Model Context Protocol</a> client spawning+ <code>hood-mcp</code> over stdio, initializing, listing its 9 tools, and+ calling 4 of them against live Robinhood Chain mainnet (4663). Nothing on this page+ is written by hand. It is generated from+ <a href="session.json">session.json</a>, the recorded frames of one run.+ </p>++ <dl class="figures"><div>- <div class="gauge" id="gauge" role="img" aria-label="Dual-needle instrument comparing Chainlink oracle price to live DEX price">- <svg viewBox="0 0 400 258" aria-hidden="true">- <path class="face-arc" id="arc" d=""/>- <path class="face-band" id="band" d=""/>- <g id="ticks"></g>- <g class="needle dex" id="n-dex">- <line class="cw" x1="200" y1="220" x2="200" y2="150"/>- <line x1="200" y1="220" x2="200" y2="66"/>- </g>- <g class="needle oracle" id="n-oracle">- <line class="cw" x1="200" y1="220" x2="200" y2="150"/>- <line x1="200" y1="220" x2="200" y2="58"/>- </g>- <circle class="hub" cx="200" cy="220" r="11"/>- <circle class="hub-ring" cx="200" cy="220" r="6"/>- </svg>- <div class="lgd"><span><i></i>oracle · chainlink</span><span><i class="d"></i>dex · uniswap</span></div>- </div>+ <dt>AAPL · Chainlink oracle</dt>+ <dd>$341.26<small>feed answer, 1,809s old</small></dd></div>-<div>- <div class="panel" id="panel">- <div class="hd"><div class="tk" id="p-tk">AAPL</div><div class="co" id="p-co">Apple Inc · tokenized share</div></div>- <div class="rd">- <div class="cell"><div class="k">oracle</div><div class="v" id="p-oracle">$0.00</div></div>- <div class="cell"><div class="k">dex</div><div class="v" id="p-dex">$0.00</div></div>- </div>- <div class="prem" id="p-prembox">- <div><div class="k">premium vs oracle</div><div class="big" id="p-prem">+0.00%</div></div>- <div class="tag" id="p-tag">premium</div>- </div>- <div class="foot"><span id="p-mult">uiMultiplier 1.000000</span><span id="p-liq">liq $0</span></div>- </div>- <div class="note" style="margin-top:18px">Numbers are a self-contained demo. Point <span class="mono">get_stock_quote</span> at the live chain for the real feed.</div>- </div>- </div>-- <div class="tuner">- <div class="cap"><span>turn the dial · drag, click a ticker, or ← →</span></div>- <div class="dialwrap" id="dialwrap" tabindex="0" role="slider" aria-label="Stock Token selector" aria-valuemin="0" aria-valuemax="9" aria-valuenow="0" aria-valuetext="AAPL">- <div class="knurl" aria-hidden="true"></div>- <div class="center-ind" aria-hidden="true"></div>- <div class="strip" id="strip"></div>+ <dt>AAPL · Uniswap DEX</dt>+ <dd>$340.4<small>on-chain v3 mid price</small></dd></div>- </div>-- <div class="scrollcue"><i></i> read the gap</div>- </section>-- <!-- ============ READ ============ -->- <section id="read">- <div class="eyebrow"><span class="n">01</span> / WHAT THE NEEDLES MEAN</div>- <div class="cols"><div>- <h2>Two feeds,<br>one truth,<br>one spread.</h2>- <p class="lede" style="margin-top:22px">The oracle needle reads the Chainlink price feed, the reference the token is supposed to track. The DEX needle reads the live Uniswap v3 mid on Robinhood Chain, what the market will actually fill. When they diverge, an agent that can see both has an edge one that can't will never notice.</p>+ <dt>Premium</dt>+ <dd class="neg">-0.2522%<small>DEX vs oracle</small></dd></div><div>- <div class="tools" style="margin-top:0; border-top:1px solid var(--hair)">- <div class="tr"><div class="nm">oracle · chainlink</div><div class="ds">The on-chain price feed round data. This is the "should be" number, the underlying share's value, delivered by the same infrastructure the token issuer references.</div></div>- <div class="tr"><div class="nm">dex · uniswap v3</div><div class="ds">The pool's live mid, read directly on-chain (GeckoTerminal has not indexed chain 4663 yet). This is the "is" number: where a swap clears right now.</div></div>- <div class="tr"><div class="nm">premium / discount</div><div class="ds"><b>(dex − oracle) ÷ oracle.</b> Positive means the token trades rich to its underlying; negative means it's cheap. Thin liquidity, weekend gaps, and corporate actions all open it.</div></div>- <div class="tr"><div class="nm">uiMultiplier</div><div class="ds">A split or corporate action changes what a raw balance is worth. <b>get_portfolio</b> reads the multiplier so a position is valued in real shares, never raw units.</div></div>- </div>+ <dt>Chain 4663</dt>+ <dd>#22,218,404<small>101 ms blocks · $338,136,167.56 TVL</small></dd></div>- </div>+ </dl>++ <p class="section-lede">+ That premium is the whole trade: a Stock Token can drift from its oracle, and an agent that can+ read both sides in one tool call can act on the gap. <code>get_stock_quote</code> returns the+ oracle price, the DEX price, the spread, and the ERC-8056 <code>uiMultiplier</code> so the+ underlying share price is never misstated after a split.+ </p>++ <p class="note">+ <strong>Reproduce it.</strong> <code>npm install && npm run build && npm run docs</code> re-runs the+ capture against the chain as it is right now and re-renders this page. The numbers above will+ differ from yours, because they are real.+ </p></section>- <!-- ============ SERVERS ============ -->- <section id="servers">- <div class="eyebrow"><span class="n">02</span> / TWO SERVERS · one package</div>- <div class="cols">- <div>- <h2>A data server<br>anyone can add.<br>A trading server<br>you opt into.</h2>- <p class="lede" style="margin-top:22px">Point Claude Code, Claude Desktop, Cursor, or any stdio MCP client at it. The data server needs no key, no wallet, no config. It talks to the public Robinhood Chain RPC and answers tool calls immediately. The trading server is a separate binary that refuses to start unless you deliberately turn it on.</p>- <div class="btns">- <a class="btn solid" href="https://www.npmjs.com/package/hood-mcp">npm</a>- <a class="btn" href="https://github.com/nirholas/robinhood-chain-mcp">source</a>- <a class="btn" href="https://registry.modelcontextprotocol.io">mcp registry</a>- </div>+ <section id="transcript">+ <h2>The transcript</h2>+ <p class="section-lede">+ Every frame below was recorded off the stdio transport in both directions during a single run+ of <code>scripts/capture-session.mjs</code>. Request frames are the client speaking; result+ frames are the server's, verbatim.+ </p>++ <div class="transcript">+ <div class="transcript-head">+ <span class="dots" aria-hidden="true"><i></i><i></i><i></i></span>+ <span>node dist/data-server.js · stdio · HOOD_MCP_NETWORK=mainnet</span>+ <span style="margin-left:auto">13 frames · 11225 ms total</span></div>- <div>- <div class="install">- <button class="copy" data-copy="add">COPY</button><span class="c"># Claude Code: one line, read-only</span><span class="p" id="cmd-add">claude mcp add hood-mcp -- npx -y hood-mcp</span><span class="c"># any stdio client</span><span class="p">npx -y hood-mcp</span><span class="c"># trading (opt-in, spend-capped)</span><span class="p">HOOD_MCP_ENABLE_TRADING=1 \</span><span class="pc">ROBINHOOD_CHAIN_PRIVATE_KEY=0x… \</span><span class="pc">npx -y hood-mcp-trading</span>- </div>- </div>- </div>- <div class="split">- <div class="srv">- <span class="badge">01 · data</span>- <h3>hood-mcp</h3>- <p>Zero-config, read-only. stdio by default; pass <span class="mono">--http</span> for Streamable HTTP on port 8730 with <span class="mono">POST /mcp</span> and <span class="mono">GET /health</span>. Nine tools across quotes, portfolios, coins, launches, and chain stats.</p>- <div class="cmd"><b>npx -y hood-mcp</b> · no key, no wallet</div>- </div>- <div class="srv">- <span class="badge hot">02 · trading</span>- <h3>hood-mcp-trading</h3>- <p>A separate binary, stdio only. It will not boot without <b>both</b> <span class="mono">HOOD_MCP_ENABLE_TRADING=1</span> and a private key. Guarded swaps and USDG transfers, every fund-moving call behind a preview and a hard cap.</p>- <div class="cmd"><b>HOOD_MCP_ENABLE_TRADING=1</b> · refuses to start otherwise</div>+ <div class="turn req">+ <div class="turn-label">→ initialize<span class="ms">handshake</span></div>+ <pre><code>{+ "method": "initialize",+ "params": {+ "protocolVersion": "<span class="j-num">2025</span><span class="j-num">-11</span><span class="j-num">-25</span>",+ "capabilities": {},+ "clientInfo": {+ "name": "hood-mcp-session-capture",+ "version": "<span class="j-num">1.0</span>.<span class="j-num">0</span>"+ }+ },+ "jsonrpc": "<span class="j-num">2.0</span>",+ "id": <span class="j-num">0</span>+}</code></pre>+ </div>+ <div class="turn res">+ <div class="turn-label">← initialize result<span class="ms">server capabilities</span></div>+ <pre><code>{+ "jsonrpc": "<span class="j-num">2.0</span>",+ "id": <span class="j-num">0</span>,+ "result": {+ "protocolVersion": "<span class="j-num">2025</span><span class="j-num">-11</span><span class="j-num">-25</span>",+ "capabilities": {+ "tools": {+ "listChanged": <span class="j-bool">true</span>+ }+ },+ "serverInfo": {+ "name": "hood-mcp",+ "version": "<span class="j-num">0.1</span>.<span class="j-num">0</span>"+ },+ "instructions": "Read-only market data for Robinhood Chain (chain ID <span class="j-num">4663</span>), the permissionless\nArbitrum Orbit L<span class="j-num">2</span> with tokenized-equity \"Stock Tokens\", the USDG stablecoin, and the NOXA / The\nOdyssey memecoin launchpads. Use get_stock_quote for a ticker&#<span class="j-num">39</span>;s oracle+DEX price and premium,\nget_portfolio for a wallet&#<span class="j-num">39</span>;s holdings, list_trending_coins / get_coin for memecoins,\nget_recent_launches / watch_launches for launchpad activity, and get_chain_stats for the chain.\nAll data is public and read-only. To place trades, use the separate hood-mcp-trading server."+ }+}</code></pre>+ </div>+ <div class="turn req">+ <div class="turn-label">→ tools/list</div>+ <pre><code>{+ "method": "tools/list",+ "jsonrpc": "<span class="j-num">2.0</span>",+ "id": <span class="j-num">1</span>+}</code></pre>+ </div>+ <div class="turn res">+ <div class="turn-label">← 9 tools<span class="ms">schemas in <a href="tools.html">the reference</a></span></div>+ <div class="table-scroll"><table>+ <thead><tr><th>Tool</th><th>Description the model routes on</th></tr></thead>+ <tbody>+ <tr><td><code>get_chain_stats</code></td><td>Live Robinhood Chain overview: latest block, gas price, TVL, and network totals (blocks, addresses, transactions, block time). No inputs.</td></tr>+ <tr><td><code>list_stock_tokens</code></td><td>The registry of tokenized-equity Stock Tokens on Robinhood Chain (ticker, name, contract, Chainlink feed). Set pricedOnly to return only tokens with a live feed.</td></tr>+ <tr><td><code>get_stock_quote</code></td><td>Price a Stock Token by ticker: the Chainlink oracle price, the on-chain Uniswap DEX mid price, the premium/discount between them, and the ERC-8056 multiplier (so you also get the underlying share price).</td></tr>+ <tr><td><code>get_portfolio</code></td><td>Multiplier-correct Stock Token portfolio for any address: per-position token balance, ERC-8056 share-equivalent, USD value, plus the USDG cash balance. Read-only.</td></tr>+ <tr><td><code>get_coin</code></td><td>Detail for any Robinhood Chain token by contract address: price, 24h volume, liquidity, FDV, holder count, and whether it is a registered Stock Token.</td></tr>+ <tr><td><code>list_trending_coins</code></td><td>The trending pools on Robinhood Chain right now (memecoins and stocks) with price, 24h volume, price change, and liquidity — the pulse of the chain.</td></tr>+ <tr><td><code>get_recent_launches</code></td><td>Recently launched tokens on Robinhood Chain launchpads (NOXA and The Odyssey), newest first, scanned from on-chain logs.</td></tr>+ <tr><td><code>watch_launches</code></td><td>Watch NOXA + The Odyssey live for new token launches, blocking up to waitSeconds (or until limit launches are seen), then returns what appeared. Falls back to the most recent launch if none fire in the window.</td></tr>+ <tr><td><code>search_token</code></td><td>Find tokens on Robinhood Chain by ticker, name, or contract address — searches the Stock Token registry and the Blockscout index together.</td></tr>+ </tbody>+ </table></div></div>+ <div class="turn req">+ <div class="turn-label">→ tools/call get_chain_stats</div>+ <pre><code>{+ "jsonrpc": "<span class="j-num">2.0</span>",+ "id": "get_chain_stats",+ "method": "tools/call",+ "params": {+ "name": "get_chain_stats",+ "arguments": {}+ }+}</code></pre>+ </div>+ <div class="turn res">+ <div class="turn-label">← result<span class="ms">799 ms · live</span></div>+ <pre><code>{+ "network": "mainnet",+ "chainId": <span class="j-num">4663</span>,+ "latestBlock": "<span class="j-num">22218404</span>",+ "gasPriceWei": "<span class="j-num">25952000</span>",+ "gasPriceGwei": <span class="j-num">0.026</span>,+ "tvlUsd": <span class="j-num">338136167.5648021</span>,+ "blockscout": {+ "averageBlockTimeMs": <span class="j-num">101</span>,+ "totalBlocks": "<span class="j-num">22217047</span>",+ "totalAddresses": "<span class="j-num">4797848</span>",+ "totalTransactions": "<span class="j-num">187224382</span>",+ "transactionsToday": "<span class="j-num">9205189</span>",+ "gasPrices": {+ "slow": <span class="j-num">0.03</span>,+ "average": <span class="j-num">0.08</span>,+ "fast": <span class="j-num">0.15</span>+ },+ "ethPriceUsd": <span class="j-num">1910.1</span>+ },+ "sources": [+ "robinhood-chain-rpc",+ "defillama",+ "blockscout"+ ],+ "asOf": "<span class="j-num">2026</span><span class="j-num">-07</span><span class="j-num">-29</span>T<span class="j-num">05</span>:<span class="j-num">54</span>:<span class="j-num">53.465</span>Z"+}</code></pre>+ </div>+ <div class="turn req">+ <div class="turn-label">→ tools/call get_stock_quote</div>+ <pre><code>{+ "jsonrpc": "<span class="j-num">2.0</span>",+ "id": "get_stock_quote",+ "method": "tools/call",+ "params": {+ "name": "get_stock_quote",+ "arguments": {+ "symbol": "AAPL"+ }+ }+}</code></pre>+ </div>+ <div class="turn res">+ <div class="turn-label">← result<span class="ms">838 ms · live</span></div>+ <pre><code>{+ "symbol": "AAPL",+ "name": "Apple • Robinhood Token",+ "address": "<span class="j-num">0</span>xaF<span class="j-num">3</span>D<span class="j-num">76</span>f<span class="j-num">1834</span>A<span class="j-num">1</span>d<span class="j-num">425780943</span>C<span class="j-num">99</span>Ea<span class="j-num">8</span>A<span class="j-num">608</span>f<span class="j-num">8</span>a<span class="j-num">93</span>f<span class="j-num">9</span>",+ "network": "mainnet",+ "chainlink": {+ "priceUsd": <span class="j-num">341.26</span>,+ "feed": "<span class="j-num">0</span>x<span class="j-num">6</span>B<span class="j-num">22</span>A<span class="j-num">786</span>bAa<span class="j-num">607</span>d<span class="j-num">76728168703</span>a<span class="j-num">39</span>Ea<span class="j-num">9</span>C<span class="j-num">99</span>f<span class="j-num">2</span>cD<span class="j-num">0</span>",+ "roundId": "<span class="j-num">18446744073709551925</span>",+ "updatedAt": <span class="j-num">1785302684</span>,+ "ageSeconds": <span class="j-num">1809</span>+ },+ "chainlinkError": <span class="j-null">null</span>,+ "dexPriceUsd": <span class="j-num">340.399395</span>,+ "dexError": <span class="j-null">null</span>,+ "premiumPct": <span class="j-num">-0.2522</span>,+ "premiumNote": "positive = DEX trades above oracle",+ "uiMultiplier": "<span class="j-num">1000000000000000000</span>",+ "underlyingSharePriceUsd": <span class="j-num">341.26</span>,+ "explorer": "https://robinhoodchain.blockscout.com/address/<span class="j-num">0</span>xaF<span class="j-num">3</span>D<span class="j-num">76</span>f<span class="j-num">1834</span>A<span class="j-num">1</span>d<span class="j-num">425780943</span>C<span class="j-num">99</span>Ea<span class="j-num">8</span>A<span class="j-num">608</span>f<span class="j-num">8</span>a<span class="j-num">93</span>f<span class="j-num">9</span>",+ "sources": [+ "chainlink",+ "uniswap-v<span class="j-num">3</span>",+ "robinhood-chain-rpc"+ ],+ "asOf": "<span class="j-num">2026</span><span class="j-num">-07</span><span class="j-num">-29</span>T<span class="j-num">05</span>:<span class="j-num">54</span>:<span class="j-num">54.324</span>Z",+ "disclosure": "Stock Tokens are tokenized debt securities (Robinhood Assets (Jersey) Ltd) and may not be offered, sold, or delivered to US persons. This tool is read-only data."+}</code></pre>+ </div>+ <div class="turn req">+ <div class="turn-label">→ tools/call list_trending_coins</div>+ <pre><code>{+ "jsonrpc": "<span class="j-num">2.0</span>",+ "id": "list_trending_coins",+ "method": "tools/call",+ "params": {+ "name": "list_trending_coins",+ "arguments": {+ "limit": <span class="j-num">5</span>+ }+ }+}</code></pre>+ </div>+ <div class="turn res">+ <div class="turn-label">← result<span class="ms">301 ms · live</span></div>+ <pre><code>{+ "network": "mainnet",+ "count": <span class="j-num">5</span>,+ "coins": [+ {+ "poolName": "ASTEROID / WETH",+ "poolAddress": "<span class="j-num">0</span>x<span class="j-num">5</span>d<span class="j-num">0808</span>de<span class="j-num">5</span>c<span class="j-num">01</span>fef<span class="j-num">74</span>b<span class="j-num">1</span>c<span class="j-num">81</span>ecb<span class="j-num">4</span>f<span class="j-num">1</span>baa<span class="j-num">3974</span>f<span class="j-num">28</span>f<span class="j-num">1</span>",+ "baseTokenAddress": "<span class="j-num">0</span>x<span class="j-num">38</span>aaf<span class="j-num">33082</span>b<span class="j-num">20</span>aff<span class="j-num">2e33433138</span>de<span class="j-num">920</span>f<span class="j-num">131</span>b<span class="j-num">7777</span>",+ "quoteTokenAddress": "<span class="j-num">0</span>x<span class="j-num">0</span>bd<span class="j-num">7</span>d<span class="j-num">308</span>f<span class="j-num">8e1639</span>fab<span class="j-num">988</span>df<span class="j-num">18</span>a<span class="j-num">8011</span>f<span class="j-num">41</span>eacad<span class="j-num">73</span>",+ "priceUsd": <span class="j-num">0.000546565206650149</span>,+ "priceChange<span class="j-num">24</span>hPct": <span class="j-num">142.964</span>,+ "volume<span class="j-num">24</span>hUsd": <span class="j-num">1063951.86724201</span>,+ "liquidityUsd": <span class="j-num">80518.5464</span>,+ "fdvUsd": <span class="j-num">546565.2067</span>,+ "buys<span class="j-num">24</span>h": <span class="j-num">3621</span>,+ "sells<span class="j-num">24</span>h": <span class="j-num">2754</span>,+ "createdAt": "<span class="j-num">2026</span><span class="j-num">-07</span><span class="j-num">-21</span>T<span class="j-num">09</span>:<span class="j-num">49</span>:<span class="j-num">58</span>Z"+ },+ {+ "poolName": "FROGE / WETH <span class="j-num">1</span>%",+ "poolAddress": "<span class="j-num">0</span>x<span class="j-num">8236</span>b<span class="j-num">1</span>bc<span class="j-num">2e58411</span>bd<span class="j-num">7</span>be<span class="j-num">1</span>fe<span class="j-num">62</span>b<span class="j-num">512</span>a<span class="j-num">2</span>f<span class="j-num">47</span>f<span class="j-num">7</span>b<span class="j-num">8</span>f<span class="j-num">6</span>",+ "baseTokenAddress": "<span class="j-num">0</span>x<span class="j-num">530237</span>d<span class="j-num">8347e0</span>dc<span class="j-num">4137</span>d<span class="j-num">5</span>f<span class="j-num">04</span>ab<span class="j-num">7</span>a<span class="j-num">952</span>ff<span class="j-num">71</span>df<span class="j-num">20</span>d",+ "quoteTokenAddress": "<span class="j-num">0</span>x<span class="j-num">0</span>bd<span class="j-num">7</span>d<span class="j-num">308</span>f<span class="j-num">8e1639</span>fab<span class="j-num">988</span>df<span class="j-num">18</span>a<span class="j-num">8011</span>f<span class="j-num">41</span>eacad<span class="j-num">73</span>",+ "priceUsd": <span class="j-num">0.0000035167325314918</span>,+ "priceChange<span class="j-num">24</span>hPct": <span class="j-num">28.723</span>,+ "volume<span class="j-num">24</span>hUsd": <span class="j-num">55744.8178726283</span>,+ "liquidityUsd": <span class="j-num">3545.8034</span>,+ "fdvUsd": <span class="j-num">3516.732531</span>,+ "buys<span class="j-num">24</span>h": <span class="j-num">1612</span>,+ "sells<span class="j-num">24</span>h": <span class="j-num">1015</span>,+ "createdAt": "<span class="j-num">2026</span><span class="j-num">-07</span><span class="j-num">-28</span>T<span class="j-num">17</span>:<span class="j-num">33</span>:<span class="j-num">37</span>Z"+ },+ {+ "poolName": "PLTS / WETH",+ "poolAddress": "<span class="j-num">0</span>xdbbe<span class="j-num">5</span>af<span class="j-num">0e5563</span>fa<span class="j-num">3</span>a<span class="j-num">67</span>c<span class="j-num">7</span>fac<span class="j-num">601</span>a<span class="j-num">57</span>dce<span class="j-num">6e450</span>ff",+ "baseTokenAddress": "<span class="j-num">0</span>xbcca<span class="j-num">8</span>c<span class="j-num">2</span>dd<span class="j-num">0</span>ffb<span class="j-num">6</span>ca<span class="j-num">5210</span>dba<span class="j-num">327e027756</span>c<span class="j-num">047777</span>",+ "quoteTokenAddress": "<span class="j-num">0</span>x<span class="j-num">0</span>bd<span class="j-num">7</span>d<span class="j-num">308</span>f<span class="j-num">8e1639</span>fab<span class="j-num">988</span>df<span class="j-num">18</span>a<span class="j-num">8011</span>f<span class="j-num">41</span>eacad<span class="j-num">73</span>",+ "priceUsd": <span class="j-num">1.94102655402234e-9</span>,+ "priceChange<span class="j-num">24</span>hPct": <span class="j-num">-99.901</span>,+ "volume<span class="j-num">24</span>hUsd": <span class="j-num">15902225.2135792</span>,+ "liquidityUsd": <span class="j-num">0.191</span>,+ "fdvUsd": <span class="j-num">1.941026554</span>,+ "buys<span class="j-num">24</span>h": <span class="j-num">6872</span>,+ "sells<span class="j-num">24</span>h": <span class="j-num">1056</span>,+ "createdAt": "<span class="j-num">2026</span><span class="j-num">-07</span><span class="j-num">-28</span>T<span class="j-num">17</span>:<span class="j-num">24</span>:<span class="j-num">09</span>Z"+ },+ {+ "poolName": "PIPEDOG / WETH <span class="j-num">1</span>%",+ "poolAddress": "<span class="j-num">0</span>xb<span class="j-num">7</span>f<span class="j-num">10</span>f<span class="j-num">74</span>b<span class="j-num">39291</span>b<span class="j-num">9290</span>b<span class="j-num">779978e19</span>a<span class="j-num">7637</span>c<span class="j-num">742</span>d<span class="j-num">6</span>",+ "baseTokenAddress": "<span class="j-num">0</span>x<span class="j-num">5</span>cb<span class="j-num">6</span>f<span class="j-num">181081301</span>b<span class="j-num">44905</span>f<span class="j-num">3</span>ae<span class="j-num">15419112</span>ecabd<span class="j-num">8</span>a<span class="j-num">6</span>",+ "quoteTokenAddress": "<span class="j-num">0</span>x<span class="j-num">0</span>bd<span class="j-num">7</span>d<span class="j-num">308</span>f<span class="j-num">8e1639</span>fab<span class="j-num">988</span>df<span class="j-num">18</span>a<span class="j-num">8011</span>f<span class="j-num">41</span>eacad<span class="j-num">73</span>",+ "priceUsd": <span class="j-num">0.00330896516329277</span>,+ "priceChange<span class="j-num">24</span>hPct": <span class="j-num">7793.242</span>,+ "volume<span class="j-num">24</span>hUsd": <span class="j-num">60274246.5498963</span>,+ "liquidityUsd": <span class="j-num">10090826.0318</span>,+ "fdvUsd": <span class="j-num">40234140.4877809</span>,+ "buys<span class="j-num">24</span>h": <span class="j-num">27262</span>,+ "sells<span class="j-num">24</span>h": <span class="j-num">17355</span>,+ "createdAt": "<span class="j-num">2026</span><span class="j-num">-07</span><span class="j-num">-28</span>T<span class="j-num">20</span>:<span class="j-num">31</span>:<span class="j-num">52</span>Z"+ },+ {+ "poolName": "CASHCAT / WETH <span class="j-num">1</span>%",+ "poolAddress": "<span class="j-num">0</span>xa<span class="j-num">70</span>fc<span class="j-num">67</span>c<span class="j-num">9</span>f<span class="j-num">69</span>da<span class="j-num">90</span>b<span class="j-num">63</span>a<span class="j-num">0e4</span>c<span class="j-num">05</span>d<span class="j-num">229954574e313</span>",+ "baseTokenAddress": "<span class="j-num">0</span>x<span class="j-num">020</span>bfc<span class="j-num">650</span>a<span class="j-num">365</span>f<span class="j-num">8</span>bb<span class="j-num">26819</span>deaabf<span class="j-num">3e21291018</span>b<span class="j-num">4</span>",+ "quoteTokenAddress": "<span class="j-num">0</span>x<span class="j-num">0</span>bd<span class="j-num">7</span>d<span class="j-num">308</span>f<span class="j-num">8e1639</span>fab<span class="j-num">988</span>df<span class="j-num">18</span>a<span class="j-num">8011</span>f<span class="j-num">41</span>eacad<span class="j-num">73</span>",+ "priceUsd": <span class="j-num">0.040571997442232</span>,+ "priceChange<span class="j-num">24</span>hPct": <span class="j-num">0.57</span>,+ "volume<span class="j-num">24</span>hUsd": <span class="j-num">7870242.51179214</span>,+ "liquidityUsd": <span class="j-num">2923977.0396</span>,+ "fdvUsd": <span class="j-num">40156036.1427855</span>,+ "buys<span class="j-num">24</span>h": <span class="j-num">5203</span>,+ "sells<span class="j-num">24</span>h": <span class="j-num">4125</span>,+ "createdAt": "<span class="j-num">2026</span><span class="j-num">-06</span><span class="j-num">-29</span>T<span class="j-num">07</span>:<span class="j-num">00</span>:<span class="j-num">49</span>Z"+ }+ ],+ "source": "geckoterminal",+ "asOf": "<span class="j-num">2026</span><span class="j-num">-07</span><span class="j-num">-29</span>T<span class="j-num">05</span>:<span class="j-num">54</span>:<span class="j-num">54.633</span>Z"+}</code></pre>+ </div>+ <div class="turn req">+ <div class="turn-label">→ tools/call search_token</div>+ <pre><code>{+ "jsonrpc": "<span class="j-num">2.0</span>",+ "id": "search_token",+ "method": "tools/call",+ "params": {+ "name": "search_token",+ "arguments": {+ "query": "NVDA",+ "limit": <span class="j-num">3</span>+ }+ }+}</code></pre>+ </div>+ <div class="turn res">+ <div class="turn-label">← result<span class="ms">760 ms · live</span></div>+ <pre><code>{+ "network": "mainnet",+ "query": "NVDA",+ "count": <span class="j-num">3</span>,+ "results": [+ {+ "address": "<span class="j-num">0</span>xd<span class="j-num">0601</span>CE<span class="j-num">157</span>Db<span class="j-num">5</span>bdC<span class="j-num">3162</span>BbaC<span class="j-num">2</span>a<span class="j-num">2</span>C<span class="j-num">8</span>aF<span class="j-num">5320</span>D<span class="j-num">9</span>EEC",+ "symbol": "NVDA",+ "name": "NVIDIA • Robinhood Token",+ "type": "stock-token",+ "isStockToken": <span class="j-bool">true</span>,+ "verified": <span class="j-bool">true</span>,+ "explorer": "https://robinhoodchain.blockscout.com/address/<span class="j-num">0</span>xd<span class="j-num">0601</span>CE<span class="j-num">157</span>Db<span class="j-num">5</span>bdC<span class="j-num">3162</span>BbaC<span class="j-num">2</span>a<span class="j-num">2</span>C<span class="j-num">8</span>aF<span class="j-num">5320</span>D<span class="j-num">9</span>EEC"+ },+ {+ "address": "<span class="j-num">0</span>xDeCF<span class="j-num">74e4</span>AA<span class="j-num">6</span>fF<span class="j-num">30</span>b<span class="j-num">1612e65665</span>AAF<span class="j-num">650</span>BEdecbA<span class="j-num">3</span>",+ "symbol": "NVDA",+ "name": "NVDA",+ "type": "token",+ "isStockToken": <span class="j-bool">false</span>,+ "verified": <span class="j-bool">false</span>,+ "marketCapUsd": <span class="j-null">null</span>,+ "explorer": "https://robinhoodchain.blockscout.com/address/<span class="j-num">0</span>xDeCF<span class="j-num">74e4</span>AA<span class="j-num">6</span>fF<span class="j-num">30</span>b<span class="j-num">1612e65665</span>AAF<span class="j-num">650</span>BEdecbA<span class="j-num">3</span>"+ },+ {+ "address": "<span class="j-num">0</span>xf<span class="j-num">94217</span>F<span class="j-num">3</span>bf<span class="j-num">7804e6</span>cd<span class="j-num">080</span>aEbB<span class="j-num">40271</span>aCbc<span class="j-num">0</span>D<span class="j-num">6</span>a<span class="j-num">09</span>",+ "symbol": "NVDACAT",+ "name": "NVIDIA CAT",+ "type": "token",+ "isStockToken": <span class="j-bool">false</span>,+ "verified": <span class="j-bool">true</span>,+ "marketCapUsd": <span class="j-null">null</span>,+ "explorer": "https://robinhoodchain.blockscout.com/address/<span class="j-num">0</span>xf<span class="j-num">94217</span>F<span class="j-num">3</span>bf<span class="j-num">7804e6</span>cd<span class="j-num">080</span>aEbB<span class="j-num">40271</span>aCbc<span class="j-num">0</span>D<span class="j-num">6</span>a<span class="j-num">09</span>"+ }+ ],+ "sources": [+ "hoodchain-registry",+ "blockscout"+ ],+ "asOf": "<span class="j-num">2026</span><span class="j-num">-07</span><span class="j-num">-29</span>T<span class="j-num">05</span>:<span class="j-num">54</span>:<span class="j-num">55.395</span>Z"+}</code></pre>+ </div></div>- </section>- <!-- ============ TOOLS ============ -->- <section id="tools">- <div class="eyebrow"><span class="n">03</span> / THE DATA SURFACE · 9 tools</div>- <h2>Everything the instrument<br>reads, as a tool call.</h2>- <p class="lede" style="margin-top:22px">The gauge above is one tool: <span class="mono">get_stock_quote</span>. Here is the rest of the read-only surface, each returning structured JSON an agent can reason over.</p>- <div class="tools" id="tools-list"></div>+ <p class="section-lede" style="margin-top:18px;">+ The server's <code>instructions</code> string (returned in the handshake and shown to the model+ before any tool is picked) is what keeps routing sane on a chain with both tokenized equities+ and memecoins:+ </p>+ <pre><code>Read-only market data for Robinhood Chain (chain ID 4663), the permissionless+Arbitrum Orbit L2 with tokenized-equity "Stock Tokens", the USDG stablecoin, and the NOXA / The+Odyssey memecoin launchpads. Use get_stock_quote for a ticker's oracle+DEX price and premium,+get_portfolio for a wallet's holdings, list_trending_coins / get_coin for memecoins,+get_recent_launches / watch_launches for launchpad activity, and get_chain_stats for the chain.+All data is public and read-only. To place trades, use the separate hood-mcp-trading server.</code></pre></section>- <!-- ============ SAFETY ============ -->- <section id="safety">- <div class="eyebrow"><span class="n">04</span> / THE TRADING GUARDS</div>- <h2>Four gates before<br>anything is signed.</h2>- <p class="lede" style="margin-top:22px">The trading server moves real value on a real chain: there is no sandbox. So the guards are enforced in code, as thrown errors, not as polite instructions in a prompt.</p>- <div class="fuse">- <div class="f"><div class="h"><span class="no">01</span> kill switch</div><div class="b">The process refuses to start without <span>HOOD_MCP_ENABLE_TRADING=1</span>. Off by default, always.</div></div>- <div class="f"><div class="h"><span class="no">02</span> eligibility gate</div><div class="b">Buying a Stock Token throws unless <span>HOOD_MCP_ACKNOWLEDGE_ELIGIBILITY=1</span>, so they're barred to US/CA/UK/CH persons. Memecoins are unrestricted.</div></div>- <div class="f"><div class="h"><span class="no">03</span> spend caps</div><div class="b">Every call is valued in USD and checked against <span>MAX_SPEND_USDG</span> (per-call, default 25) and <span>MAX_SESSION_USDG</span> (per-process, default 100) before signing. Fails closed if it can't be priced.</div></div>- <div class="f"><div class="h"><span class="no">04</span> confirm gate</div><div class="b">The first <span>execute_swap</span> / <span>transfer_usdg</span> returns a simulation and signs nothing. Only a second call with <span>confirm: true</span> and identical args broadcasts.</div></div>+ <section id="testnet">+ <h2>Same server, testnet 46630</h2>+ <p class="section-lede">+ One env var switches networks. Captured in the same run against the live testnet, which is a+ different chain with its own block height, gas market, and Blockscout index.+ </p>+ <div class="transcript">+ <div class="transcript-head">+ <span class="dots" aria-hidden="true"><i></i><i></i><i></i></span>+ <span>node dist/data-server.js · stdio · HOOD_MCP_NETWORK=testnet</span>+ <span style="margin-left:auto">7 frames · 8024 ms total</span>+ </div>+ <div class="turn req">+ <div class="turn-label">→ tools/call get_chain_stats</div>+ <pre><code>{+ "jsonrpc": "<span class="j-num">2.0</span>",+ "id": "get_chain_stats",+ "method": "tools/call",+ "params": {+ "name": "get_chain_stats",+ "arguments": {}+ }+}</code></pre>+ </div>+ <div class="turn res">+ <div class="turn-label">← result<span class="ms">429 ms · live</span></div>+ <pre><code>{+ "network": "testnet",+ "chainId": <span class="j-num">46630</span>,+ "latestBlock": "<span class="j-num">94828462</span>",+ "gasPriceWei": "<span class="j-num">10000000</span>",+ "gasPriceGwei": <span class="j-num">0.01</span>,+ "tvlUsd": <span class="j-num">338136167.5648021</span>,+ "blockscout": {+ "averageBlockTimeMs": <span class="j-num">293</span>,+ "totalBlocks": "<span class="j-num">94823272</span>",+ "totalAddresses": "<span class="j-num">20191230</span>",+ "totalTransactions": "<span class="j-num">216329432</span>",+ "transactionsToday": "<span class="j-num">1351781</span>",+ "gasPrices": {+ "slow": <span class="j-num">0.13</span>,+ "average": <span class="j-num">0.15</span>,+ "fast": <span class="j-num">0.15</span>+ },+ "ethPriceUsd": <span class="j-null">null</span>+ },+ "sources": [+ "robinhood-chain-rpc",+ "defillama",+ "blockscout"+ ],+ "asOf": "<span class="j-num">2026</span><span class="j-num">-07</span><span class="j-num">-29</span>T<span class="j-num">05</span>:<span class="j-num">55</span>:<span class="j-num">03.789</span>Z"+}</code></pre>+ </div></div>- <div class="note"><b>Stock Tokens are tokenized debt securities</b> (issuer: Robinhood Assets (Jersey) Ltd) and may not be offered, sold, or delivered to US persons. Additional limits apply in Canada, the UK, and Switzerland. hood-mcp only <b>displays</b> Stock Token data by default; the eligibility gate exists so acquiring one is a deliberate, acknowledged act. Not affiliated with Robinhood Markets, Inc.</div></section>- <!-- ============ GET ============ -->- <section id="get">- <div class="eyebrow"><span class="n">05</span> / GET IT</div>- <div class="cols">- <div>- <h2>One line to read<br>the whole chain.</h2>- <p class="lede" style="margin-top:22px">The data server is a single <span class="mono">npx</span> away, no account, no signup. Add the trading binary and two environment variables only when you actually want an agent that can act, behind every guard above.</p>- <div class="btns">- <a class="btn solid" href="https://github.com/nirholas/robinhood-chain-mcp#readme">read the docs</a>- <a class="btn" href="https://nirholas.github.io/robinhood-chain-sdk/">hoodchain sdk</a>- </div>+ <section id="install">+ <h2>Add it to your client</h2>+ <p class="section-lede">+ The data server is zero-config and read-only: no API key, no wallet, no account. The full+ matrix (Claude Desktop, Cursor, Smithery, raw stdio, Streamable HTTP) is on the+ <a href="install.html">install page</a>.+ </p>+ <pre><code>claude mcp add hood-mcp -- npx -y hood-mcp</code></pre>+ <div class="grid">+ <div class="card">+ <h3>Data server <span class="pill free">free</span></h3>+ <p>9 read-only tools: quotes with the oracle/DEX premium, multiplier-correct portfolios, launches, trending coins, chain stats, token search.</p>+ <p style="margin:0"><a href="tools.html">Tool reference →</a></p></div>- <div>- <div class="install">- <button class="copy" data-copy="get">COPY</button><span class="c"># add to any MCP client</span><span class="p" id="cmd-get">claude mcp add hood-mcp -- npx -y hood-mcp</span><span class="c"># optional: private RPC + network</span><span class="p">export HOOD_MCP_NETWORK=mainnet</span><span class="p">export ALCHEMY_KEY=…</span><span class="c"># trading, only when you mean it</span><span class="p">export HOOD_MCP_ENABLE_TRADING=1</span><span class="p">export HOOD_MCP_MAX_SPEND_USDG=25</span>- </div>+ <div class="card">+ <h3>Trading server <span class="pill guarded">opt-in</span></h3>+ <p>A separate binary that never starts unless you set <code>HOOD_MCP_ENABLE_TRADING=1</code> and a wallet key. Hard USD spend caps per call and per session, plus a simulate-then-confirm round trip on every mutating tool.</p>+ <p style="margin:0"><a href="safety.html">Safety model →</a></p></div></div></section>- <footer>- <div class="big">hood-<br>mcp</div>- <div class="meta">- MCP · Robinhood Chain 4663 · Node ≥ 20<br>- <a href="https://github.com/nirholas/robinhood-chain-mcp">github.com/nirholas/robinhood-chain-mcp</a><br>- <a href="https://www.npmjs.com/package/hood-mcp">npmjs.com/package/hood-mcp</a><br>- built on <a href="https://nirholas.github.io/robinhood-chain-sdk/">hoodchain</a> by <a href="https://x.com/nichxbt">@nichxbt</a> · not affiliated with Robinhood Markets- </div>- </footer></main>-<script>-"use strict";--/* ---------- demo instrument data (clearly a demo) ---------- */-const TOKENS = [- {t:'AAPL', co:'Apple Inc', oracle:229.42, dex:231.18, liq:'1.9M'},- {t:'TSLA', co:'Tesla Inc', oracle:248.90, dex:246.10, liq:'2.4M'},- {t:'NVDA', co:'NVIDIA Corp', oracle:128.55, dex:130.02, liq:'3.1M'},- {t:'GME', co:'GameStop Corp', oracle:24.18, dex:25.90, liq:'0.6M'},- {t:'MSTR', co:'MicroStrategy', oracle:168.30, dex:165.02, liq:'0.9M'},- {t:'COIN', co:'Coinbase Global', oracle:241.77, dex:244.51, liq:'1.2M'},- {t:'HOOD', co:'Robinhood Markets', oracle:66.40, dex:67.85, liq:'1.5M'},- {t:'SPY', co:'SPDR S&P 500 ETF', oracle:548.20, dex:549.10, liq:'4.2M'},- {t:'AMZN', co:'Amazon.com Inc', oracle:184.30, dex:183.05, liq:'2.0M'},- {t:'META', co:'Meta Platforms', oracle:512.40, dex:517.66, liq:'1.7M'},-];-const RANGE = 0.08; // ±8% maps to full ±120° sweep-const SWEEP = 120; // degrees each side of vertical-const fmt = n => '$' + n.toLocaleString('en-US',{minimumFractionDigits:2,maximumFractionDigits:2});--/* ---------- gauge face geometry ---------- */-const CX=200, CY=220, R=168;-function polar(deg, r){ const a=(deg-90)*Math.PI/180; return [CX+r*Math.cos(a), CY+r*Math.sin(a)]; }-function arcPath(r){- const [x0,y0]=polar(-SWEEP,r), [x1,y1]=polar(SWEEP,r);- return `M ${x0.toFixed(1)} ${y0.toFixed(1)} A ${r} ${r} 0 1 1 ${x1.toFixed(1)} ${y1.toFixed(1)}`;-}-(function buildFace(){- document.getElementById('arc').setAttribute('d', arcPath(R));- document.getElementById('band').setAttribute('d', arcPath(R-8));- let s='';- for(let i=-8;i<=8;i++){- const deg = i/8*SWEEP;- const major = (i%4===0);- const [xa,ya]=polar(deg, R-10), [xb,yb]=polar(deg, R-(major?26:18));- s += `<line class="tick ${major?'major':''}" x1="${xa.toFixed(1)}" y1="${ya.toFixed(1)}" x2="${xb.toFixed(1)}" y2="${yb.toFixed(1)}"/>`;- if(major){- const [lx,ly]=polar(deg, R-42);- const lab = (i===0?'PAR':(i>0?'+':'')+ (i/8*RANGE*100).toFixed(0)+'%');- s += `<text class="tick-lab" x="${lx.toFixed(1)}" y="${(ly+3).toFixed(1)}" text-anchor="middle">${lab}</text>`;- }- }- document.getElementById('ticks').innerHTML = s;-})();--function fracToDeg(f){ return (Math.max(0,Math.min(1,f))-0.5)*2*SWEEP; }--const nOracle=document.getElementById('n-oracle'), nDex=document.getElementById('n-dex');-const P = {- tk:document.getElementById('p-tk'), co:document.getElementById('p-co'),- oracle:document.getElementById('p-oracle'), dex:document.getElementById('p-dex'),- prem:document.getElementById('p-prem'), tag:document.getElementById('p-tag'),- prembox:document.getElementById('p-prembox'), mult:document.getElementById('p-mult'), liq:document.getElementById('p-liq'),-};--let current=0;-function render(i, animate){- const d = TOKENS[i]; current=i;- const prem = (d.dex - d.oracle)/d.oracle;- const dexF = 0.5 + prem/(2*RANGE);- nOracle.style.transform = `rotate(0deg)`; // oracle = PAR reference- nDex.style.transform = `rotate(${fracToDeg(dexF).toFixed(2)}deg)`;-- P.tk.textContent = d.t;- P.co.textContent = d.co + ' · tokenized share';- P.oracle.textContent = fmt(d.oracle);- P.dex.textContent = fmt(d.dex);- const pct = prem*100;- P.prem.textContent = (pct>=0?'+':'') + pct.toFixed(2) + '%';- const disc = pct<0;- P.prembox.classList.toggle('disc', disc);- P.tag.textContent = disc ? 'discount' : 'premium';- P.mult.textContent = 'uiMultiplier 1.000000';- P.liq.textContent = 'liq $' + d.liq;- if(animate){ P.prem.style.transform='scale(1.09)'; setTimeout(()=>P.prem.style.transform='',190); }-}--/* ---------- the tuner dial ---------- */-const STOP_W = 96;-const strip = document.getElementById('strip');-const dialwrap = document.getElementById('dialwrap');-TOKENS.forEach((d,i)=>{- const el=document.createElement('div'); el.className='stop'; el.dataset.i=i;- const prem=((d.dex-d.oracle)/d.oracle*100);- el.innerHTML = `<div class="t">${d.t}</div><div class="p">${prem>=0?'+':''}${prem.toFixed(1)}%</div>`;- el.addEventListener('click', ()=>{ if(!moved) select(i,true); });- strip.appendChild(el);-});-const stops=[...strip.children];+<footer class="wrap">+ © 2026 nirholas · Built by <a href="https://x.com/nichxbt">nirholas</a> ·+ <a href="https://three.ws">three.ws</a> ·+ <a href="https://www.npmjs.com/package/hood-mcp">npm</a>+</footer>-let offset=0, dragging=false, startX=0, startOffset=0, moved=false;--function centerOffsetFor(i){ return dialwrap.clientWidth/2 - (i*STOP_W + STOP_W/2); }-function applyOffset(px, withTransition){- strip.style.transition = withTransition ? 'transform .55s var(--ease)' : 'none';- strip.style.transform = `translateX(${px}px)`;- offset = px;-}-function markActive(i){ stops.forEach((s,k)=>s.classList.toggle('on', k===i)); }-function nearestIndex(){ return Math.round((dialwrap.clientWidth/2 - offset - STOP_W/2)/STOP_W); }-function clampIdx(i){ return Math.max(0, Math.min(TOKENS.length-1, i)); }--function select(i, animate){- i = clampIdx(i);- applyOffset(centerOffsetFor(i), true);- markActive(i);- render(i, animate);- dialwrap.setAttribute('aria-valuenow', i);- dialwrap.setAttribute('aria-valuetext', TOKENS[i].t);-}--dialwrap.addEventListener('pointerdown', e=>{- dragging=true; moved=false; startX=e.clientX; startOffset=offset;- strip.style.transition='none'; dialwrap.setPointerCapture(e.pointerId);-});-dialwrap.addEventListener('pointermove', e=>{- if(!dragging) return;- const dx=e.clientX-startX; if(Math.abs(dx)>3) moved=true;- applyOffset(startOffset+dx, false);- const i=clampIdx(nearestIndex());- if(i!==current){ markActive(i); render(i,false); }-});-function endDrag(e){- if(!dragging) return; dragging=false;- try{ dialwrap.releasePointerCapture(e.pointerId); }catch(_){}- if(moved){ select(nearestIndex(), true); setTimeout(()=>{moved=false;},0); }-}-dialwrap.addEventListener('pointerup', endDrag);-dialwrap.addEventListener('pointercancel', endDrag);-dialwrap.addEventListener('keydown', e=>{- if(e.key==='ArrowRight'||e.key==='ArrowDown'){ e.preventDefault(); select(current+1,true); }- else if(e.key==='ArrowLeft'||e.key==='ArrowUp'){ e.preventDefault(); select(current-1,true); }- else if(e.key==='Home'){ e.preventDefault(); select(0,true); }- else if(e.key==='End'){ e.preventDefault(); select(TOKENS.length-1,true); }-});-addEventListener('resize', ()=>{ applyOffset(centerOffsetFor(current), false); });--/* first paint */-render(0,false);-markActive(0);-requestAnimationFrame(()=>{ applyOffset(centerOffsetFor(0), false); setTimeout(()=>render(0,true), 480); });--/* ---------- boot line ---------- */-(function boot(){- const el=document.getElementById('boot');- const line='● hoodchain connected · chain 4663 · 95 stock tokens · public rpc · ready';- [...line].forEach((ch,i)=>{ const s=document.createElement('span'); s.textContent=ch; s.style.animationDelay=(i*12+120)+'ms'; el.appendChild(s); });-})();--/* ---------- tools table ---------- */-const TOOLS = [- ['get_stock_quote','Chainlink price + Uniswap DEX price + premium/discount + share price for a ticker. <b>The instrument above.</b>'],- ['get_portfolio','Multiplier-correct Stock Token portfolio + USDG balance for any address, valued in real shares, not raw units.'],- ['list_stock_tokens','The full 95-token Stock Token registry: ticker, name, contract, Chainlink feed.'],- ['get_chain_stats','Latest block, gas price, TVL, and network totals for chain 4663.'],- ['get_coin','Price, volume, liquidity, and holders for any token by address (memecoin or Stock Token).'],- ['list_trending_coins',"The chain's trending pools right now, ranked."],- ['get_recent_launches','Recent NOXA + The Odyssey launches, scanned straight from on-chain logs.'],- ['watch_launches','Watch live for new launches for up to 120 seconds: a streaming tool call.'],- ['search_token','Find a token by ticker, name, or address across the whole chain.'],-];-const tbody=document.getElementById('tools-list');-TOOLS.forEach(t=>{- const r=document.createElement('div'); r.className='tr rise';- r.innerHTML=`<div class="nm">${t[0]}</div><div class="ds">${t[1]}</div>`;- tbody.appendChild(r);-});--/* ---------- copy buttons ---------- */-document.querySelectorAll('.copy').forEach(btn=>{- btn.addEventListener('click', ()=>{- navigator.clipboard.writeText('claude mcp add hood-mcp -- npx -y hood-mcp').then(()=>{- const t=btn.textContent; btn.textContent='COPIED'; setTimeout(()=>btn.textContent=t,1200);- }).catch(()=>{});- });-});--/* ---------- reveal on scroll ---------- */-const io=new IntersectionObserver(es=>{ es.forEach(e=>{ if(e.isIntersecting){ e.target.classList.add('in'); io.unobserve(e.target);} }); },{threshold:.12});-document.querySelectorAll('.rise').forEach((el,i)=>{ el.style.transitionDelay=(i%3*70)+'ms'; io.observe(el); });--/* ---------- rail ---------- */-const stations=[...document.querySelectorAll('.rail .stn')];-const secs=stations.map(a=>document.querySelector(a.getAttribute('href')));-const carriage=document.getElementById('carriage');-function updateRail(){- let idx=0, mid=innerHeight*0.4;- secs.forEach((sec,i)=>{ const r=sec.getBoundingClientRect(); if(r.top<=mid) idx=i; });- stations.forEach((s,i)=>s.setAttribute('aria-current', i===idx));- const active=stations[idx];- const railRect=document.querySelector('.rail').getBoundingClientRect();- const r=active.getBoundingClientRect();- carriage.style.height=r.height+'px';- carriage.style.transform=`translateY(${r.top-railRect.top}px)`;-}-stations.forEach(a=>a.addEventListener('click',e=>{ e.preventDefault(); document.querySelector(a.getAttribute('href')).scrollIntoView({behavior:'smooth'}); }));-addEventListener('scroll',()=>requestAnimationFrame(updateRail),{passive:true});-addEventListener('resize',updateRail); updateRail();-</script></body></html>diff --git a/robinhood/hood-mcp/docs/session.json b/robinhood/hood-mcp/docs/session.jsonnew file mode 100644index 000000000..58d405328--- /dev/null+++ b/robinhood/hood-mcp/docs/session.json@@ -0,0 +1,1741 @@+{+ "capturedAt": "2026-07-29T05:55:03.922Z",+ "sessions": [+ {+ "network": "mainnet",+ "capturedAt": "2026-07-29T05:54:55.861Z",+ "totalMs": 11225,+ "serverInfo": {+ "name": "hood-mcp",+ "version": "0.1.0"+ },+ "instructions": "Read-only market data for Robinhood Chain (chain ID 4663), the permissionless\nArbitrum Orbit L2 with tokenized-equity \"Stock Tokens\", the USDG stablecoin, and the NOXA / The\nOdyssey memecoin launchpads. Use get_stock_quote for a ticker's oracle+DEX price and premium,\nget_portfolio for a wallet's holdings, list_trending_coins / get_coin for memecoins,\nget_recent_launches / watch_launches for launchpad activity, and get_chain_stats for the chain.\nAll data is public and read-only. To place trades, use the separate hood-mcp-trading server.",+ "tools": [+ {+ "name": "get_chain_stats",+ "title": "Robinhood Chain stats",+ "description": "Live Robinhood Chain overview: latest block, gas price, TVL, and network totals (blocks, addresses, transactions, block time). No inputs.",+ "inputSchema": {+ "type": "object",+ "properties": {},+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "list_stock_tokens",+ "title": "List Stock Tokens",+ "description": "The registry of tokenized-equity Stock Tokens on Robinhood Chain (ticker, name, contract, Chainlink feed). Set pricedOnly to return only tokens with a live feed.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "pricedOnly": {+ "type": "boolean",+ "description": "Only tokens with a Chainlink price feed."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 200,+ "description": "Max entries (default all)."+ },+ "offset": {+ "type": "integer",+ "minimum": 0,+ "description": "Skip this many (pagination)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "get_stock_quote",+ "title": "Get Stock Token quote",+ "description": "Price a Stock Token by ticker: the Chainlink oracle price, the on-chain Uniswap DEX mid price, the premium/discount between them, and the ERC-8056 multiplier (so you also get the underlying share price).",+ "inputSchema": {+ "type": "object",+ "properties": {+ "symbol": {+ "type": "string",+ "minLength": 1,+ "description": "Ticker, e.g. \"AAPL\" or \"TSLA\" (case-insensitive)."+ },+ "maxAgeSeconds": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "description": "Reject the Chainlink answer if older than this (default 3 days; 24/5 feeds)."+ }+ },+ "required": [+ "symbol"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "get_portfolio",+ "title": "Get Stock Token portfolio",+ "description": "Multiplier-correct Stock Token portfolio for any address: per-position token balance, ERC-8056 share-equivalent, USD value, plus the USDG cash balance. Read-only.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "address": {+ "type": "string",+ "description": "Wallet address (0x…40 hex) to value."+ }+ },+ "required": [+ "address"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "get_coin",+ "title": "Get token / memecoin detail",+ "description": "Detail for any Robinhood Chain token by contract address: price, 24h volume, liquidity, FDV, holder count, and whether it is a registered Stock Token.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "address": {+ "type": "string",+ "description": "Token contract address (0x…40 hex)."+ }+ },+ "required": [+ "address"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "list_trending_coins",+ "title": "List trending coins",+ "description": "The trending pools on Robinhood Chain right now (memecoins and stocks) with price, 24h volume, price change, and liquidity — the pulse of the chain.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 30,+ "description": "How many (default 10, max 30)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "get_recent_launches",+ "title": "Recent launchpad launches",+ "description": "Recently launched tokens on Robinhood Chain launchpads (NOXA and The Odyssey), newest first, scanned from on-chain logs.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "lookbackBlocks": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 500000,+ "description": "Blocks to scan back (~30k ≈ 1h; default 30000)."+ },+ "launchpad": {+ "type": "string",+ "enum": [+ "noxa",+ "odyssey"+ ],+ "description": "Restrict to one launchpad."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 100,+ "description": "Max launches to return (default 25)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "watch_launches",+ "title": "Watch for live launches",+ "description": "Watch NOXA + The Odyssey live for new token launches, blocking up to waitSeconds (or until limit launches are seen), then returns what appeared. Falls back to the most recent launch if none fire in the window.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "waitSeconds": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 120,+ "description": "How long to watch (default 20, max 120)."+ },+ "launchpad": {+ "type": "string",+ "enum": [+ "noxa",+ "odyssey"+ ],+ "description": "Restrict to one launchpad."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 50,+ "description": "Stop early after this many (default 20)."+ },+ "includeRecentIfEmpty": {+ "type": "boolean",+ "description": "If nothing launches in the window, return the latest recent launch (default true)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "search_token",+ "title": "Search tokens",+ "description": "Find tokens on Robinhood Chain by ticker, name, or contract address — searches the Stock Token registry and the Blockscout index together.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "minLength": 1,+ "description": "Ticker, name fragment, or 0x address."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 50,+ "description": "Max results (default 20)."+ }+ },+ "required": [+ "query"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ }+ ],+ "calls": [+ {+ "name": "get_chain_stats",+ "arguments": {},+ "ms": 799,+ "isError": false,+ "text": "{\n \"network\": \"mainnet\",\n \"chainId\": 4663,\n \"latestBlock\": \"22218404\",\n \"gasPriceWei\": \"25952000\",\n \"gasPriceGwei\": 0.026,\n \"tvlUsd\": 338136167.5648021,\n \"blockscout\": {\n \"averageBlockTimeMs\": 101,\n \"totalBlocks\": \"22217047\",\n \"totalAddresses\": \"4797848\",\n \"totalTransactions\": \"187224382\",\n \"transactionsToday\": \"9205189\",\n \"gasPrices\": {\n \"slow\": 0.03,\n \"average\": 0.08,\n \"fast\": 0.15\n },\n \"ethPriceUsd\": 1910.1\n },\n \"sources\": [\n \"robinhood-chain-rpc\",\n \"defillama\",\n \"blockscout\"\n ],\n \"asOf\": \"2026-07-29T05:54:53.465Z\"\n}",+ "parsed": {+ "network": "mainnet",+ "chainId": 4663,+ "latestBlock": "22218404",+ "gasPriceWei": "25952000",+ "gasPriceGwei": 0.026,+ "tvlUsd": 338136167.5648021,+ "blockscout": {+ "averageBlockTimeMs": 101,+ "totalBlocks": "22217047",+ "totalAddresses": "4797848",+ "totalTransactions": "187224382",+ "transactionsToday": "9205189",+ "gasPrices": {+ "slow": 0.03,+ "average": 0.08,+ "fast": 0.15+ },+ "ethPriceUsd": 1910.1+ },+ "sources": [+ "robinhood-chain-rpc",+ "defillama",+ "blockscout"+ ],+ "asOf": "2026-07-29T05:54:53.465Z"+ }+ },+ {+ "name": "get_stock_quote",+ "arguments": {+ "symbol": "AAPL"+ },+ "ms": 838,+ "isError": false,+ "text": "{\n \"symbol\": \"AAPL\",\n \"name\": \"Apple • Robinhood Token\",\n \"address\": \"0xaF3D76f1834A1d425780943C99Ea8A608f8a93f9\",\n \"network\": \"mainnet\",\n \"chainlink\": {\n \"priceUsd\": 341.26,\n \"feed\": \"0x6B22A786bAa607d76728168703a39Ea9C99f2cD0\",\n \"roundId\": \"18446744073709551925\",\n \"updatedAt\": 1785302684,\n \"ageSeconds\": 1809\n },\n \"chainlinkError\": null,\n \"dexPriceUsd\": 340.399395,\n \"dexError\": null,\n \"premiumPct\": -0.2522,\n \"premiumNote\": \"positive = DEX trades above oracle\",\n \"uiMultiplier\": \"1000000000000000000\",\n \"underlyingSharePriceUsd\": 341.26,\n \"explorer\": \"https://robinhoodchain.blockscout.com/address/0xaF3D76f1834A1d425780943C99Ea8A608f8a93f9\",\n \"sources\": [\n \"chainlink\",\n \"uniswap-v3\",\n \"robinhood-chain-rpc\"\n ],\n \"asOf\": \"2026-07-29T05:54:54.324Z\",\n \"disclosure\": \"Stock Tokens are tokenized debt securities (Robinhood Assets (Jersey) Ltd) and may not be offered, sold, or delivered to US persons. This tool is read-only data.\"\n}",+ "parsed": {+ "symbol": "AAPL",+ "name": "Apple • Robinhood Token",+ "address": "0xaF3D76f1834A1d425780943C99Ea8A608f8a93f9",+ "network": "mainnet",+ "chainlink": {+ "priceUsd": 341.26,+ "feed": "0x6B22A786bAa607d76728168703a39Ea9C99f2cD0",+ "roundId": "18446744073709551925",+ "updatedAt": 1785302684,+ "ageSeconds": 1809+ },+ "chainlinkError": null,+ "dexPriceUsd": 340.399395,+ "dexError": null,+ "premiumPct": -0.2522,+ "premiumNote": "positive = DEX trades above oracle",+ "uiMultiplier": "1000000000000000000",+ "underlyingSharePriceUsd": 341.26,+ "explorer": "https://robinhoodchain.blockscout.com/address/0xaF3D76f1834A1d425780943C99Ea8A608f8a93f9",+ "sources": [+ "chainlink",+ "uniswap-v3",+ "robinhood-chain-rpc"+ ],+ "asOf": "2026-07-29T05:54:54.324Z",+ "disclosure": "Stock Tokens are tokenized debt securities (Robinhood Assets (Jersey) Ltd) and may not be offered, sold, or delivered to US persons. This tool is read-only data."+ }+ },+ {+ "name": "list_trending_coins",+ "arguments": {+ "limit": 5+ },+ "ms": 301,+ "isError": false,+ "text": "{\n \"network\": \"mainnet\",\n \"count\": 5,\n \"coins\": [\n {\n \"poolName\": \"ASTEROID / WETH\",\n \"poolAddress\": \"0x5d0808de5c01fef74b1c81ecb4f1baa3974f28f1\",\n \"baseTokenAddress\": \"0x38aaf33082b20aff2e33433138de920f131b7777\",\n \"quoteTokenAddress\": \"0x0bd7d308f8e1639fab988df18a8011f41eacad73\",\n \"priceUsd\": 0.000546565206650149,\n \"priceChange24hPct\": 142.964,\n \"volume24hUsd\": 1063951.86724201,\n \"liquidityUsd\": 80518.5464,\n \"fdvUsd\": 546565.2067,\n \"buys24h\": 3621,\n \"sells24h\": 2754,\n \"createdAt\": \"2026-07-21T09:49:58Z\"\n },\n {\n \"poolName\": \"FROGE / WETH 1%\",\n \"poolAddress\": \"0x8236b1bc2e58411bd7be1fe62b512a2f47f7b8f6\",\n \"baseTokenAddress\": \"0x530237d8347e0dc4137d5f04ab7a952ff71df20d\",\n \"quoteTokenAddress\": \"0x0bd7d308f8e1639fab988df18a8011f41eacad73\",\n \"priceUsd\": 0.0000035167325314918,\n \"priceChange24hPct\": 28.723,\n \"volume24hUsd\": 55744.8178726283,\n \"liquidityUsd\": 3545.8034,\n \"fdvUsd\": 3516.732531,\n \"buys24h\": 1612,\n \"sells24h\": 1015,\n \"createdAt\": \"2026-07-28T17:33:37Z\"\n },\n {\n \"poolName\": \"PLTS / WETH\",\n \"poolAddress\": \"0xdbbe5af0e5563fa3a67c7fac601a57dce6e450ff\",\n \"baseTokenAddress\": \"0xbcca8c2dd0ffb6ca5210dba327e027756c047777\",\n \"quoteTokenAddress\": \"0x0bd7d308f8e1639fab988df18a8011f41eacad73\",\n \"priceUsd\": 1.94102655402234e-9,\n \"priceChange24hPct\": -99.901,\n \"volume24hUsd\": 15902225.2135792,\n \"liquidityUsd\": 0.191,\n \"fdvUsd\": 1.941026554,\n \"buys24h\": 6872,\n \"sells24h\": 1056,\n \"createdAt\": \"2026-07-28T17:24:09Z\"\n },\n {\n \"poolName\": \"PIPEDOG / WETH 1%\",\n \"poolAddress\": \"0xb7f10f74b39291b9290b779978e19a7637c742d6\",\n \"baseTokenAddress\": \"0x5cb6f181081301b44905f3ae15419112ecabd8a6\",\n \"quoteTokenAddress\": \"0x0bd7d308f8e1639fab988df18a8011f41eacad73\",\n \"priceUsd\": 0.00330896516329277,\n \"priceChange24hPct\": 7793.242,\n \"volume24hUsd\": 60274246.5498963,\n \"liquidityUsd\": 10090826.0318,\n \"fdvUsd\": 40234140.4877809,\n \"buys24h\": 27262,\n \"sells24h\": 17355,\n \"createdAt\": \"2026-07-28T20:31:52Z\"\n },\n {\n \"poolName\": \"CASHCAT / WETH 1%\",\n \"poolAddress\": \"0xa70fc67c9f69da90b63a0e4c05d229954574e313\",\n \"baseTokenAddress\": \"0x020bfc650a365f8bb26819deaabf3e21291018b4\",\n \"quoteTokenAddress\": \"0x0bd7d308f8e1639fab988df18a8011f41eacad73\",\n \"priceUsd\": 0.040571997442232,\n \"priceChange24hPct\": 0.57,\n \"volume24hUsd\": 7870242.51179214,\n \"liquidityUsd\": 2923977.0396,\n \"fdvUsd\": 40156036.1427855,\n \"buys24h\": 5203,\n \"sells24h\": 4125,\n \"createdAt\": \"2026-06-29T07:00:49Z\"\n }\n ],\n \"source\": \"geckoterminal\",\n \"asOf\": \"2026-07-29T05:54:54.633Z\"\n}",+ "parsed": {+ "network": "mainnet",+ "count": 5,+ "coins": [+ {+ "poolName": "ASTEROID / WETH",+ "poolAddress": "0x5d0808de5c01fef74b1c81ecb4f1baa3974f28f1",+ "baseTokenAddress": "0x38aaf33082b20aff2e33433138de920f131b7777",+ "quoteTokenAddress": "0x0bd7d308f8e1639fab988df18a8011f41eacad73",+ "priceUsd": 0.000546565206650149,+ "priceChange24hPct": 142.964,+ "volume24hUsd": 1063951.86724201,+ "liquidityUsd": 80518.5464,+ "fdvUsd": 546565.2067,+ "buys24h": 3621,+ "sells24h": 2754,+ "createdAt": "2026-07-21T09:49:58Z"+ },+ {+ "poolName": "FROGE / WETH 1%",+ "poolAddress": "0x8236b1bc2e58411bd7be1fe62b512a2f47f7b8f6",+ "baseTokenAddress": "0x530237d8347e0dc4137d5f04ab7a952ff71df20d",+ "quoteTokenAddress": "0x0bd7d308f8e1639fab988df18a8011f41eacad73",+ "priceUsd": 0.0000035167325314918,+ "priceChange24hPct": 28.723,+ "volume24hUsd": 55744.8178726283,+ "liquidityUsd": 3545.8034,+ "fdvUsd": 3516.732531,+ "buys24h": 1612,+ "sells24h": 1015,+ "createdAt": "2026-07-28T17:33:37Z"+ },+ {+ "poolName": "PLTS / WETH",+ "poolAddress": "0xdbbe5af0e5563fa3a67c7fac601a57dce6e450ff",+ "baseTokenAddress": "0xbcca8c2dd0ffb6ca5210dba327e027756c047777",+ "quoteTokenAddress": "0x0bd7d308f8e1639fab988df18a8011f41eacad73",+ "priceUsd": 1.94102655402234e-9,+ "priceChange24hPct": -99.901,+ "volume24hUsd": 15902225.2135792,+ "liquidityUsd": 0.191,+ "fdvUsd": 1.941026554,+ "buys24h": 6872,+ "sells24h": 1056,+ "createdAt": "2026-07-28T17:24:09Z"+ },+ {+ "poolName": "PIPEDOG / WETH 1%",+ "poolAddress": "0xb7f10f74b39291b9290b779978e19a7637c742d6",+ "baseTokenAddress": "0x5cb6f181081301b44905f3ae15419112ecabd8a6",+ "quoteTokenAddress": "0x0bd7d308f8e1639fab988df18a8011f41eacad73",+ "priceUsd": 0.00330896516329277,+ "priceChange24hPct": 7793.242,+ "volume24hUsd": 60274246.5498963,+ "liquidityUsd": 10090826.0318,+ "fdvUsd": 40234140.4877809,+ "buys24h": 27262,+ "sells24h": 17355,+ "createdAt": "2026-07-28T20:31:52Z"+ },+ {+ "poolName": "CASHCAT / WETH 1%",+ "poolAddress": "0xa70fc67c9f69da90b63a0e4c05d229954574e313",+ "baseTokenAddress": "0x020bfc650a365f8bb26819deaabf3e21291018b4",+ "quoteTokenAddress": "0x0bd7d308f8e1639fab988df18a8011f41eacad73",+ "priceUsd": 0.040571997442232,+ "priceChange24hPct": 0.57,+ "volume24hUsd": 7870242.51179214,+ "liquidityUsd": 2923977.0396,+ "fdvUsd": 40156036.1427855,+ "buys24h": 5203,+ "sells24h": 4125,+ "createdAt": "2026-06-29T07:00:49Z"+ }+ ],+ "source": "geckoterminal",+ "asOf": "2026-07-29T05:54:54.633Z"+ }+ },+ {+ "name": "search_token",+ "arguments": {+ "query": "NVDA",+ "limit": 3+ },+ "ms": 760,+ "isError": false,+ "text": "{\n \"network\": \"mainnet\",\n \"query\": \"NVDA\",\n \"count\": 3,\n \"results\": [\n {\n \"address\": \"0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC\",\n \"symbol\": \"NVDA\",\n \"name\": \"NVIDIA • Robinhood Token\",\n \"type\": \"stock-token\",\n \"isStockToken\": true,\n \"verified\": true,\n \"explorer\": \"https://robinhoodchain.blockscout.com/address/0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC\"\n },\n {\n \"address\": \"0xDeCF74e4AA6fF30b1612e65665AAF650BEdecbA3\",\n \"symbol\": \"NVDA\",\n \"name\": \"NVDA\",\n \"type\": \"token\",\n \"isStockToken\": false,\n \"verified\": false,\n \"marketCapUsd\": null,\n \"explorer\": \"https://robinhoodchain.blockscout.com/address/0xDeCF74e4AA6fF30b1612e65665AAF650BEdecbA3\"\n },\n {\n \"address\": \"0xf94217F3bf7804e6cd080aEbB40271aCbc0D6a09\",\n \"symbol\": \"NVDACAT\",\n \"name\": \"NVIDIA CAT\",\n \"type\": \"token\",\n \"isStockToken\": false,\n \"verified\": true,\n \"marketCapUsd\": null,\n \"explorer\": \"https://robinhoodchain.blockscout.com/address/0xf94217F3bf7804e6cd080aEbB40271aCbc0D6a09\"\n }\n ],\n \"sources\": [\n \"hoodchain-registry\",\n \"blockscout\"\n ],\n \"asOf\": \"2026-07-29T05:54:55.395Z\"\n}",+ "parsed": {+ "network": "mainnet",+ "query": "NVDA",+ "count": 3,+ "results": [+ {+ "address": "0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC",+ "symbol": "NVDA",+ "name": "NVIDIA • Robinhood Token",+ "type": "stock-token",+ "isStockToken": true,+ "verified": true,+ "explorer": "https://robinhoodchain.blockscout.com/address/0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC"+ },+ {+ "address": "0xDeCF74e4AA6fF30b1612e65665AAF650BEdecbA3",+ "symbol": "NVDA",+ "name": "NVDA",+ "type": "token",+ "isStockToken": false,+ "verified": false,+ "marketCapUsd": null,+ "explorer": "https://robinhoodchain.blockscout.com/address/0xDeCF74e4AA6fF30b1612e65665AAF650BEdecbA3"+ },+ {+ "address": "0xf94217F3bf7804e6cd080aEbB40271aCbc0D6a09",+ "symbol": "NVDACAT",+ "name": "NVIDIA CAT",+ "type": "token",+ "isStockToken": false,+ "verified": true,+ "marketCapUsd": null,+ "explorer": "https://robinhoodchain.blockscout.com/address/0xf94217F3bf7804e6cd080aEbB40271aCbc0D6a09"+ }+ ],+ "sources": [+ "hoodchain-registry",+ "blockscout"+ ],+ "asOf": "2026-07-29T05:54:55.395Z"+ }+ }+ ],+ "frames": [+ {+ "dir": "out",+ "at": "2026-07-29T05:54:44.703Z",+ "message": {+ "method": "initialize",+ "params": {+ "protocolVersion": "2025-11-25",+ "capabilities": {},+ "clientInfo": {+ "name": "hood-mcp-session-capture",+ "version": "1.0.0"+ }+ },+ "jsonrpc": "2.0",+ "id": 0+ }+ },+ {+ "dir": "in",+ "at": "2026-07-29T05:54:52.611Z",+ "message": {+ "jsonrpc": "2.0",+ "id": 0,+ "result": {+ "protocolVersion": "2025-11-25",+ "capabilities": {+ "tools": {+ "listChanged": true+ }+ },+ "serverInfo": {+ "name": "hood-mcp",+ "version": "0.1.0"+ },+ "instructions": "Read-only market data for Robinhood Chain (chain ID 4663), the permissionless\nArbitrum Orbit L2 with tokenized-equity \"Stock Tokens\", the USDG stablecoin, and the NOXA / The\nOdyssey memecoin launchpads. Use get_stock_quote for a ticker's oracle+DEX price and premium,\nget_portfolio for a wallet's holdings, list_trending_coins / get_coin for memecoins,\nget_recent_launches / watch_launches for launchpad activity, and get_chain_stats for the chain.\nAll data is public and read-only. To place trades, use the separate hood-mcp-trading server."+ }+ }+ },+ {+ "dir": "out",+ "at": "2026-07-29T05:54:52.626Z",+ "message": {+ "method": "notifications/initialized",+ "jsonrpc": "2.0"+ }+ },+ {+ "dir": "out",+ "at": "2026-07-29T05:54:52.626Z",+ "message": {+ "method": "tools/list",+ "jsonrpc": "2.0",+ "id": 1+ }+ },+ {+ "dir": "in",+ "at": "2026-07-29T05:54:52.681Z",+ "message": {+ "jsonrpc": "2.0",+ "id": 1,+ "result": {+ "tools": [+ {+ "name": "get_chain_stats",+ "title": "Robinhood Chain stats",+ "description": "Live Robinhood Chain overview: latest block, gas price, TVL, and network totals (blocks, addresses, transactions, block time). No inputs.",+ "inputSchema": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "type": "object",+ "properties": {}+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "list_stock_tokens",+ "title": "List Stock Tokens",+ "description": "The registry of tokenized-equity Stock Tokens on Robinhood Chain (ticker, name, contract, Chainlink feed). Set pricedOnly to return only tokens with a live feed.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "pricedOnly": {+ "type": "boolean",+ "description": "Only tokens with a Chainlink price feed."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 200,+ "description": "Max entries (default all)."+ },+ "offset": {+ "type": "integer",+ "minimum": 0,+ "description": "Skip this many (pagination)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": false+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "get_stock_quote",+ "title": "Get Stock Token quote",+ "description": "Price a Stock Token by ticker: the Chainlink oracle price, the on-chain Uniswap DEX mid price, the premium/discount between them, and the ERC-8056 multiplier (so you also get the underlying share price).",+ "inputSchema": {+ "type": "object",+ "properties": {+ "symbol": {+ "type": "string",+ "minLength": 1,+ "description": "Ticker, e.g. \"AAPL\" or \"TSLA\" (case-insensitive)."+ },+ "maxAgeSeconds": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "description": "Reject the Chainlink answer if older than this (default 3 days; 24/5 feeds)."+ }+ },+ "required": [+ "symbol"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "get_portfolio",+ "title": "Get Stock Token portfolio",+ "description": "Multiplier-correct Stock Token portfolio for any address: per-position token balance, ERC-8056 share-equivalent, USD value, plus the USDG cash balance. Read-only.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "address": {+ "type": "string",+ "description": "Wallet address (0x…40 hex) to value."+ }+ },+ "required": [+ "address"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "get_coin",+ "title": "Get token / memecoin detail",+ "description": "Detail for any Robinhood Chain token by contract address: price, 24h volume, liquidity, FDV, holder count, and whether it is a registered Stock Token.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "address": {+ "type": "string",+ "description": "Token contract address (0x…40 hex)."+ }+ },+ "required": [+ "address"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "list_trending_coins",+ "title": "List trending coins",+ "description": "The trending pools on Robinhood Chain right now (memecoins and stocks) with price, 24h volume, price change, and liquidity — the pulse of the chain.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 30,+ "description": "How many (default 10, max 30)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "get_recent_launches",+ "title": "Recent launchpad launches",+ "description": "Recently launched tokens on Robinhood Chain launchpads (NOXA and The Odyssey), newest first, scanned from on-chain logs.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "lookbackBlocks": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 500000,+ "description": "Blocks to scan back (~30k ≈ 1h; default 30000)."+ },+ "launchpad": {+ "type": "string",+ "enum": [+ "noxa",+ "odyssey"+ ],+ "description": "Restrict to one launchpad."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 100,+ "description": "Max launches to return (default 25)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "watch_launches",+ "title": "Watch for live launches",+ "description": "Watch NOXA + The Odyssey live for new token launches, blocking up to waitSeconds (or until limit launches are seen), then returns what appeared. Falls back to the most recent launch if none fire in the window.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "waitSeconds": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 120,+ "description": "How long to watch (default 20, max 120)."+ },+ "launchpad": {+ "type": "string",+ "enum": [+ "noxa",+ "odyssey"+ ],+ "description": "Restrict to one launchpad."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 50,+ "description": "Stop early after this many (default 20)."+ },+ "includeRecentIfEmpty": {+ "type": "boolean",+ "description": "If nothing launches in the window, return the latest recent launch (default true)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "search_token",+ "title": "Search tokens",+ "description": "Find tokens on Robinhood Chain by ticker, name, or contract address — searches the Stock Token registry and the Blockscout index together.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "minLength": 1,+ "description": "Ticker, name fragment, or 0x address."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 50,+ "description": "Max results (default 20)."+ }+ },+ "required": [+ "query"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ }+ ]+ }+ }+ },+ {+ "dir": "out",+ "at": "2026-07-29T05:54:52.703Z",+ "message": {+ "method": "tools/call",+ "params": {+ "name": "get_chain_stats",+ "arguments": {}+ },+ "jsonrpc": "2.0",+ "id": 2+ }+ },+ {+ "dir": "in",+ "at": "2026-07-29T05:54:53.500Z",+ "message": {+ "jsonrpc": "2.0",+ "id": 2,+ "result": {+ "content": [+ {+ "type": "text",+ "text": "{\n \"network\": \"mainnet\",\n \"chainId\": 4663,\n \"latestBlock\": \"22218404\",\n \"gasPriceWei\": \"25952000\",\n \"gasPriceGwei\": 0.026,\n \"tvlUsd\": 338136167.5648021,\n \"blockscout\": {\n \"averageBlockTimeMs\": 101,\n \"totalBlocks\": \"22217047\",\n \"totalAddresses\": \"4797848\",\n \"totalTransactions\": \"187224382\",\n \"transactionsToday\": \"9205189\",\n \"gasPrices\": {\n \"slow\": 0.03,\n \"average\": 0.08,\n \"fast\": 0.15\n },\n \"ethPriceUsd\": 1910.1\n },\n \"sources\": [\n \"robinhood-chain-rpc\",\n \"defillama\",\n \"blockscout\"\n ],\n \"asOf\": \"2026-07-29T05:54:53.465Z\"\n}"+ }+ ],+ "structuredContent": {+ "network": "mainnet",+ "chainId": 4663,+ "latestBlock": "22218404",+ "gasPriceWei": "25952000",+ "gasPriceGwei": 0.026,+ "tvlUsd": 338136167.5648021,+ "blockscout": {+ "averageBlockTimeMs": 101,+ "totalBlocks": "22217047",+ "totalAddresses": "4797848",+ "totalTransactions": "187224382",+ "transactionsToday": "9205189",+ "gasPrices": {+ "slow": 0.03,+ "average": 0.08,+ "fast": 0.15+ },+ "ethPriceUsd": 1910.1+ },+ "sources": [+ "robinhood-chain-rpc",+ "defillama",+ "blockscout"+ ],+ "asOf": "2026-07-29T05:54:53.465Z"+ }+ }+ }+ },+ {+ "dir": "out",+ "at": "2026-07-29T05:54:53.501Z",+ "message": {+ "method": "tools/call",+ "params": {+ "name": "get_stock_quote",+ "arguments": {+ "symbol": "AAPL"+ }+ },+ "jsonrpc": "2.0",+ "id": 3+ }+ },+ {+ "dir": "in",+ "at": "2026-07-29T05:54:54.339Z",+ "message": {+ "jsonrpc": "2.0",+ "id": 3,+ "result": {+ "content": [+ {+ "type": "text",+ "text": "{\n \"symbol\": \"AAPL\",\n \"name\": \"Apple • Robinhood Token\",\n \"address\": \"0xaF3D76f1834A1d425780943C99Ea8A608f8a93f9\",\n \"network\": \"mainnet\",\n \"chainlink\": {\n \"priceUsd\": 341.26,\n \"feed\": \"0x6B22A786bAa607d76728168703a39Ea9C99f2cD0\",\n \"roundId\": \"18446744073709551925\",\n \"updatedAt\": 1785302684,\n \"ageSeconds\": 1809\n },\n \"chainlinkError\": null,\n \"dexPriceUsd\": 340.399395,\n \"dexError\": null,\n \"premiumPct\": -0.2522,\n \"premiumNote\": \"positive = DEX trades above oracle\",\n \"uiMultiplier\": \"1000000000000000000\",\n \"underlyingSharePriceUsd\": 341.26,\n \"explorer\": \"https://robinhoodchain.blockscout.com/address/0xaF3D76f1834A1d425780943C99Ea8A608f8a93f9\",\n \"sources\": [\n \"chainlink\",\n \"uniswap-v3\",\n \"robinhood-chain-rpc\"\n ],\n \"asOf\": \"2026-07-29T05:54:54.324Z\",\n \"disclosure\": \"Stock Tokens are tokenized debt securities (Robinhood Assets (Jersey) Ltd) and may not be offered, sold, or delivered to US persons. This tool is read-only data.\"\n}"+ }+ ],+ "structuredContent": {+ "symbol": "AAPL",+ "name": "Apple • Robinhood Token",+ "address": "0xaF3D76f1834A1d425780943C99Ea8A608f8a93f9",+ "network": "mainnet",+ "chainlink": {+ "priceUsd": 341.26,+ "feed": "0x6B22A786bAa607d76728168703a39Ea9C99f2cD0",+ "roundId": "18446744073709551925",+ "updatedAt": 1785302684,+ "ageSeconds": 1809+ },+ "chainlinkError": null,+ "dexPriceUsd": 340.399395,+ "dexError": null,+ "premiumPct": -0.2522,+ "premiumNote": "positive = DEX trades above oracle",+ "uiMultiplier": "1000000000000000000",+ "underlyingSharePriceUsd": 341.26,+ "explorer": "https://robinhoodchain.blockscout.com/address/0xaF3D76f1834A1d425780943C99Ea8A608f8a93f9",+ "sources": [+ "chainlink",+ "uniswap-v3",+ "robinhood-chain-rpc"+ ],+ "asOf": "2026-07-29T05:54:54.324Z",+ "disclosure": "Stock Tokens are tokenized debt securities (Robinhood Assets (Jersey) Ltd) and may not be offered, sold, or delivered to US persons. This tool is read-only data."+ }+ }+ }+ },+ {+ "dir": "out",+ "at": "2026-07-29T05:54:54.339Z",+ "message": {+ "method": "tools/call",+ "params": {+ "name": "list_trending_coins",+ "arguments": {+ "limit": 5+ }+ },+ "jsonrpc": "2.0",+ "id": 4+ }+ },+ {+ "dir": "in",+ "at": "2026-07-29T05:54:54.635Z",+ "message": {+ "jsonrpc": "2.0",+ "id": 4,+ "result": {+ "content": [+ {+ "type": "text",+ "text": "{\n \"network\": \"mainnet\",\n \"count\": 5,\n \"coins\": [\n {\n \"poolName\": \"ASTEROID / WETH\",\n \"poolAddress\": \"0x5d0808de5c01fef74b1c81ecb4f1baa3974f28f1\",\n \"baseTokenAddress\": \"0x38aaf33082b20aff2e33433138de920f131b7777\",\n \"quoteTokenAddress\": \"0x0bd7d308f8e1639fab988df18a8011f41eacad73\",\n \"priceUsd\": 0.000546565206650149,\n \"priceChange24hPct\": 142.964,\n \"volume24hUsd\": 1063951.86724201,\n \"liquidityUsd\": 80518.5464,\n \"fdvUsd\": 546565.2067,\n \"buys24h\": 3621,\n \"sells24h\": 2754,\n \"createdAt\": \"2026-07-21T09:49:58Z\"\n },\n {\n \"poolName\": \"FROGE / WETH 1%\",\n \"poolAddress\": \"0x8236b1bc2e58411bd7be1fe62b512a2f47f7b8f6\",\n \"baseTokenAddress\": \"0x530237d8347e0dc4137d5f04ab7a952ff71df20d\",\n \"quoteTokenAddress\": \"0x0bd7d308f8e1639fab988df18a8011f41eacad73\",\n \"priceUsd\": 0.0000035167325314918,\n \"priceChange24hPct\": 28.723,\n \"volume24hUsd\": 55744.8178726283,\n \"liquidityUsd\": 3545.8034,\n \"fdvUsd\": 3516.732531,\n \"buys24h\": 1612,\n \"sells24h\": 1015,\n \"createdAt\": \"2026-07-28T17:33:37Z\"\n },\n {\n \"poolName\": \"PLTS / WETH\",\n \"poolAddress\": \"0xdbbe5af0e5563fa3a67c7fac601a57dce6e450ff\",\n \"baseTokenAddress\": \"0xbcca8c2dd0ffb6ca5210dba327e027756c047777\",\n \"quoteTokenAddress\": \"0x0bd7d308f8e1639fab988df18a8011f41eacad73\",\n \"priceUsd\": 1.94102655402234e-9,\n \"priceChange24hPct\": -99.901,\n \"volume24hUsd\": 15902225.2135792,\n \"liquidityUsd\": 0.191,\n \"fdvUsd\": 1.941026554,\n \"buys24h\": 6872,\n \"sells24h\": 1056,\n \"createdAt\": \"2026-07-28T17:24:09Z\"\n },\n {\n \"poolName\": \"PIPEDOG / WETH 1%\",\n \"poolAddress\": \"0xb7f10f74b39291b9290b779978e19a7637c742d6\",\n \"baseTokenAddress\": \"0x5cb6f181081301b44905f3ae15419112ecabd8a6\",\n \"quoteTokenAddress\": \"0x0bd7d308f8e1639fab988df18a8011f41eacad73\",\n \"priceUsd\": 0.00330896516329277,\n \"priceChange24hPct\": 7793.242,\n \"volume24hUsd\": 60274246.5498963,\n \"liquidityUsd\": 10090826.0318,\n \"fdvUsd\": 40234140.4877809,\n \"buys24h\": 27262,\n \"sells24h\": 17355,\n \"createdAt\": \"2026-07-28T20:31:52Z\"\n },\n {\n \"poolName\": \"CASHCAT / WETH 1%\",\n \"poolAddress\": \"0xa70fc67c9f69da90b63a0e4c05d229954574e313\",\n \"baseTokenAddress\": \"0x020bfc650a365f8bb26819deaabf3e21291018b4\",\n \"quoteTokenAddress\": \"0x0bd7d308f8e1639fab988df18a8011f41eacad73\",\n \"priceUsd\": 0.040571997442232,\n \"priceChange24hPct\": 0.57,\n \"volume24hUsd\": 7870242.51179214,\n \"liquidityUsd\": 2923977.0396,\n \"fdvUsd\": 40156036.1427855,\n \"buys24h\": 5203,\n \"sells24h\": 4125,\n \"createdAt\": \"2026-06-29T07:00:49Z\"\n }\n ],\n \"source\": \"geckoterminal\",\n \"asOf\": \"2026-07-29T05:54:54.633Z\"\n}"+ }+ ],+ "structuredContent": {+ "network": "mainnet",+ "count": 5,+ "coins": [+ {+ "poolName": "ASTEROID / WETH",+ "poolAddress": "0x5d0808de5c01fef74b1c81ecb4f1baa3974f28f1",+ "baseTokenAddress": "0x38aaf33082b20aff2e33433138de920f131b7777",+ "quoteTokenAddress": "0x0bd7d308f8e1639fab988df18a8011f41eacad73",+ "priceUsd": 0.000546565206650149,+ "priceChange24hPct": 142.964,+ "volume24hUsd": 1063951.86724201,+ "liquidityUsd": 80518.5464,+ "fdvUsd": 546565.2067,+ "buys24h": 3621,+ "sells24h": 2754,+ "createdAt": "2026-07-21T09:49:58Z"+ },+ {+ "poolName": "FROGE / WETH 1%",+ "poolAddress": "0x8236b1bc2e58411bd7be1fe62b512a2f47f7b8f6",+ "baseTokenAddress": "0x530237d8347e0dc4137d5f04ab7a952ff71df20d",+ "quoteTokenAddress": "0x0bd7d308f8e1639fab988df18a8011f41eacad73",+ "priceUsd": 0.0000035167325314918,+ "priceChange24hPct": 28.723,+ "volume24hUsd": 55744.8178726283,+ "liquidityUsd": 3545.8034,+ "fdvUsd": 3516.732531,+ "buys24h": 1612,+ "sells24h": 1015,+ "createdAt": "2026-07-28T17:33:37Z"+ },+ {+ "poolName": "PLTS / WETH",+ "poolAddress": "0xdbbe5af0e5563fa3a67c7fac601a57dce6e450ff",+ "baseTokenAddress": "0xbcca8c2dd0ffb6ca5210dba327e027756c047777",+ "quoteTokenAddress": "0x0bd7d308f8e1639fab988df18a8011f41eacad73",+ "priceUsd": 1.94102655402234e-9,+ "priceChange24hPct": -99.901,+ "volume24hUsd": 15902225.2135792,+ "liquidityUsd": 0.191,+ "fdvUsd": 1.941026554,+ "buys24h": 6872,+ "sells24h": 1056,+ "createdAt": "2026-07-28T17:24:09Z"+ },+ {+ "poolName": "PIPEDOG / WETH 1%",+ "poolAddress": "0xb7f10f74b39291b9290b779978e19a7637c742d6",+ "baseTokenAddress": "0x5cb6f181081301b44905f3ae15419112ecabd8a6",+ "quoteTokenAddress": "0x0bd7d308f8e1639fab988df18a8011f41eacad73",+ "priceUsd": 0.00330896516329277,+ "priceChange24hPct": 7793.242,+ "volume24hUsd": 60274246.5498963,+ "liquidityUsd": 10090826.0318,+ "fdvUsd": 40234140.4877809,+ "buys24h": 27262,+ "sells24h": 17355,+ "createdAt": "2026-07-28T20:31:52Z"+ },+ {+ "poolName": "CASHCAT / WETH 1%",+ "poolAddress": "0xa70fc67c9f69da90b63a0e4c05d229954574e313",+ "baseTokenAddress": "0x020bfc650a365f8bb26819deaabf3e21291018b4",+ "quoteTokenAddress": "0x0bd7d308f8e1639fab988df18a8011f41eacad73",+ "priceUsd": 0.040571997442232,+ "priceChange24hPct": 0.57,+ "volume24hUsd": 7870242.51179214,+ "liquidityUsd": 2923977.0396,+ "fdvUsd": 40156036.1427855,+ "buys24h": 5203,+ "sells24h": 4125,+ "createdAt": "2026-06-29T07:00:49Z"+ }+ ],+ "source": "geckoterminal",+ "asOf": "2026-07-29T05:54:54.633Z"+ }+ }+ }+ },+ {+ "dir": "out",+ "at": "2026-07-29T05:54:54.642Z",+ "message": {+ "method": "tools/call",+ "params": {+ "name": "search_token",+ "arguments": {+ "query": "NVDA",+ "limit": 3+ }+ },+ "jsonrpc": "2.0",+ "id": 5+ }+ },+ {+ "dir": "in",+ "at": "2026-07-29T05:54:55.402Z",+ "message": {+ "jsonrpc": "2.0",+ "id": 5,+ "result": {+ "content": [+ {+ "type": "text",+ "text": "{\n \"network\": \"mainnet\",\n \"query\": \"NVDA\",\n \"count\": 3,\n \"results\": [\n {\n \"address\": \"0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC\",\n \"symbol\": \"NVDA\",\n \"name\": \"NVIDIA • Robinhood Token\",\n \"type\": \"stock-token\",\n \"isStockToken\": true,\n \"verified\": true,\n \"explorer\": \"https://robinhoodchain.blockscout.com/address/0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC\"\n },\n {\n \"address\": \"0xDeCF74e4AA6fF30b1612e65665AAF650BEdecbA3\",\n \"symbol\": \"NVDA\",\n \"name\": \"NVDA\",\n \"type\": \"token\",\n \"isStockToken\": false,\n \"verified\": false,\n \"marketCapUsd\": null,\n \"explorer\": \"https://robinhoodchain.blockscout.com/address/0xDeCF74e4AA6fF30b1612e65665AAF650BEdecbA3\"\n },\n {\n \"address\": \"0xf94217F3bf7804e6cd080aEbB40271aCbc0D6a09\",\n \"symbol\": \"NVDACAT\",\n \"name\": \"NVIDIA CAT\",\n \"type\": \"token\",\n \"isStockToken\": false,\n \"verified\": true,\n \"marketCapUsd\": null,\n \"explorer\": \"https://robinhoodchain.blockscout.com/address/0xf94217F3bf7804e6cd080aEbB40271aCbc0D6a09\"\n }\n ],\n \"sources\": [\n \"hoodchain-registry\",\n \"blockscout\"\n ],\n \"asOf\": \"2026-07-29T05:54:55.395Z\"\n}"+ }+ ],+ "structuredContent": {+ "network": "mainnet",+ "query": "NVDA",+ "count": 3,+ "results": [+ {+ "address": "0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC",+ "symbol": "NVDA",+ "name": "NVIDIA • Robinhood Token",+ "type": "stock-token",+ "isStockToken": true,+ "verified": true,+ "explorer": "https://robinhoodchain.blockscout.com/address/0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC"+ },+ {+ "address": "0xDeCF74e4AA6fF30b1612e65665AAF650BEdecbA3",+ "symbol": "NVDA",+ "name": "NVDA",+ "type": "token",+ "isStockToken": false,+ "verified": false,+ "marketCapUsd": null,+ "explorer": "https://robinhoodchain.blockscout.com/address/0xDeCF74e4AA6fF30b1612e65665AAF650BEdecbA3"+ },+ {+ "address": "0xf94217F3bf7804e6cd080aEbB40271aCbc0D6a09",+ "symbol": "NVDACAT",+ "name": "NVIDIA CAT",+ "type": "token",+ "isStockToken": false,+ "verified": true,+ "marketCapUsd": null,+ "explorer": "https://robinhoodchain.blockscout.com/address/0xf94217F3bf7804e6cd080aEbB40271aCbc0D6a09"+ }+ ],+ "sources": [+ "hoodchain-registry",+ "blockscout"+ ],+ "asOf": "2026-07-29T05:54:55.395Z"+ }+ }+ }+ }+ ]+ },+ {+ "network": "testnet",+ "capturedAt": "2026-07-29T05:55:03.922Z",+ "totalMs": 8024,+ "serverInfo": {+ "name": "hood-mcp",+ "version": "0.1.0"+ },+ "instructions": "Read-only market data for Robinhood Chain (chain ID 4663), the permissionless\nArbitrum Orbit L2 with tokenized-equity \"Stock Tokens\", the USDG stablecoin, and the NOXA / The\nOdyssey memecoin launchpads. Use get_stock_quote for a ticker's oracle+DEX price and premium,\nget_portfolio for a wallet's holdings, list_trending_coins / get_coin for memecoins,\nget_recent_launches / watch_launches for launchpad activity, and get_chain_stats for the chain.\nAll data is public and read-only. To place trades, use the separate hood-mcp-trading server.",+ "tools": [+ {+ "name": "get_chain_stats",+ "title": "Robinhood Chain stats",+ "description": "Live Robinhood Chain overview: latest block, gas price, TVL, and network totals (blocks, addresses, transactions, block time). No inputs.",+ "inputSchema": {+ "type": "object",+ "properties": {},+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "list_stock_tokens",+ "title": "List Stock Tokens",+ "description": "The registry of tokenized-equity Stock Tokens on Robinhood Chain (ticker, name, contract, Chainlink feed). Set pricedOnly to return only tokens with a live feed.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "pricedOnly": {+ "type": "boolean",+ "description": "Only tokens with a Chainlink price feed."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 200,+ "description": "Max entries (default all)."+ },+ "offset": {+ "type": "integer",+ "minimum": 0,+ "description": "Skip this many (pagination)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "get_stock_quote",+ "title": "Get Stock Token quote",+ "description": "Price a Stock Token by ticker: the Chainlink oracle price, the on-chain Uniswap DEX mid price, the premium/discount between them, and the ERC-8056 multiplier (so you also get the underlying share price).",+ "inputSchema": {+ "type": "object",+ "properties": {+ "symbol": {+ "type": "string",+ "minLength": 1,+ "description": "Ticker, e.g. \"AAPL\" or \"TSLA\" (case-insensitive)."+ },+ "maxAgeSeconds": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "description": "Reject the Chainlink answer if older than this (default 3 days; 24/5 feeds)."+ }+ },+ "required": [+ "symbol"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "get_portfolio",+ "title": "Get Stock Token portfolio",+ "description": "Multiplier-correct Stock Token portfolio for any address: per-position token balance, ERC-8056 share-equivalent, USD value, plus the USDG cash balance. Read-only.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "address": {+ "type": "string",+ "description": "Wallet address (0x…40 hex) to value."+ }+ },+ "required": [+ "address"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "get_coin",+ "title": "Get token / memecoin detail",+ "description": "Detail for any Robinhood Chain token by contract address: price, 24h volume, liquidity, FDV, holder count, and whether it is a registered Stock Token.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "address": {+ "type": "string",+ "description": "Token contract address (0x…40 hex)."+ }+ },+ "required": [+ "address"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "list_trending_coins",+ "title": "List trending coins",+ "description": "The trending pools on Robinhood Chain right now (memecoins and stocks) with price, 24h volume, price change, and liquidity — the pulse of the chain.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 30,+ "description": "How many (default 10, max 30)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "get_recent_launches",+ "title": "Recent launchpad launches",+ "description": "Recently launched tokens on Robinhood Chain launchpads (NOXA and The Odyssey), newest first, scanned from on-chain logs.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "lookbackBlocks": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 500000,+ "description": "Blocks to scan back (~30k ≈ 1h; default 30000)."+ },+ "launchpad": {+ "type": "string",+ "enum": [+ "noxa",+ "odyssey"+ ],+ "description": "Restrict to one launchpad."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 100,+ "description": "Max launches to return (default 25)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "watch_launches",+ "title": "Watch for live launches",+ "description": "Watch NOXA + The Odyssey live for new token launches, blocking up to waitSeconds (or until limit launches are seen), then returns what appeared. Falls back to the most recent launch if none fire in the window.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "waitSeconds": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 120,+ "description": "How long to watch (default 20, max 120)."+ },+ "launchpad": {+ "type": "string",+ "enum": [+ "noxa",+ "odyssey"+ ],+ "description": "Restrict to one launchpad."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 50,+ "description": "Stop early after this many (default 20)."+ },+ "includeRecentIfEmpty": {+ "type": "boolean",+ "description": "If nothing launches in the window, return the latest recent launch (default true)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ },+ {+ "name": "search_token",+ "title": "Search tokens",+ "description": "Find tokens on Robinhood Chain by ticker, name, or contract address — searches the Stock Token registry and the Blockscout index together.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "minLength": 1,+ "description": "Ticker, name fragment, or 0x address."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 50,+ "description": "Max results (default 20)."+ }+ },+ "required": [+ "query"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ }+ }+ ],+ "calls": [+ {+ "name": "get_chain_stats",+ "arguments": {},+ "ms": 429,+ "isError": false,+ "text": "{\n \"network\": \"testnet\",\n \"chainId\": 46630,\n \"latestBlock\": \"94828462\",\n \"gasPriceWei\": \"10000000\",\n \"gasPriceGwei\": 0.01,\n \"tvlUsd\": 338136167.5648021,\n \"blockscout\": {\n \"averageBlockTimeMs\": 293,\n \"totalBlocks\": \"94823272\",\n \"totalAddresses\": \"20191230\",\n \"totalTransactions\": \"216329432\",\n \"transactionsToday\": \"1351781\",\n \"gasPrices\": {\n \"slow\": 0.13,\n \"average\": 0.15,\n \"fast\": 0.15\n },\n \"ethPriceUsd\": null\n },\n \"sources\": [\n \"robinhood-chain-rpc\",\n \"defillama\",\n \"blockscout\"\n ],\n \"asOf\": \"2026-07-29T05:55:03.789Z\"\n}",+ "parsed": {+ "network": "testnet",+ "chainId": 46630,+ "latestBlock": "94828462",+ "gasPriceWei": "10000000",+ "gasPriceGwei": 0.01,+ "tvlUsd": 338136167.5648021,+ "blockscout": {+ "averageBlockTimeMs": 293,+ "totalBlocks": "94823272",+ "totalAddresses": "20191230",+ "totalTransactions": "216329432",+ "transactionsToday": "1351781",+ "gasPrices": {+ "slow": 0.13,+ "average": 0.15,+ "fast": 0.15+ },+ "ethPriceUsd": null+ },+ "sources": [+ "robinhood-chain-rpc",+ "defillama",+ "blockscout"+ ],+ "asOf": "2026-07-29T05:55:03.789Z"+ }+ }+ ],+ "frames": [+ {+ "dir": "out",+ "at": "2026-07-29T05:54:55.931Z",+ "message": {+ "method": "initialize",+ "params": {+ "protocolVersion": "2025-11-25",+ "capabilities": {},+ "clientInfo": {+ "name": "hood-mcp-session-capture",+ "version": "1.0.0"+ }+ },+ "jsonrpc": "2.0",+ "id": 0+ }+ },+ {+ "dir": "in",+ "at": "2026-07-29T05:55:03.352Z",+ "message": {+ "jsonrpc": "2.0",+ "id": 0,+ "result": {+ "protocolVersion": "2025-11-25",+ "capabilities": {+ "tools": {+ "listChanged": true+ }+ },+ "serverInfo": {+ "name": "hood-mcp",+ "version": "0.1.0"+ },+ "instructions": "Read-only market data for Robinhood Chain (chain ID 4663), the permissionless\nArbitrum Orbit L2 with tokenized-equity \"Stock Tokens\", the USDG stablecoin, and the NOXA / The\nOdyssey memecoin launchpads. Use get_stock_quote for a ticker's oracle+DEX price and premium,\nget_portfolio for a wallet's holdings, list_trending_coins / get_coin for memecoins,\nget_recent_launches / watch_launches for launchpad activity, and get_chain_stats for the chain.\nAll data is public and read-only. To place trades, use the separate hood-mcp-trading server."+ }+ }+ },+ {+ "dir": "out",+ "at": "2026-07-29T05:55:03.352Z",+ "message": {+ "method": "notifications/initialized",+ "jsonrpc": "2.0"+ }+ },+ {+ "dir": "out",+ "at": "2026-07-29T05:55:03.352Z",+ "message": {+ "method": "tools/list",+ "jsonrpc": "2.0",+ "id": 1+ }+ },+ {+ "dir": "in",+ "at": "2026-07-29T05:55:03.364Z",+ "message": {+ "jsonrpc": "2.0",+ "id": 1,+ "result": {+ "tools": [+ {+ "name": "get_chain_stats",+ "title": "Robinhood Chain stats",+ "description": "Live Robinhood Chain overview: latest block, gas price, TVL, and network totals (blocks, addresses, transactions, block time). No inputs.",+ "inputSchema": {+ "$schema": "http://json-schema.org/draft-07/schema#",+ "type": "object",+ "properties": {}+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "list_stock_tokens",+ "title": "List Stock Tokens",+ "description": "The registry of tokenized-equity Stock Tokens on Robinhood Chain (ticker, name, contract, Chainlink feed). Set pricedOnly to return only tokens with a live feed.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "pricedOnly": {+ "type": "boolean",+ "description": "Only tokens with a Chainlink price feed."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 200,+ "description": "Max entries (default all)."+ },+ "offset": {+ "type": "integer",+ "minimum": 0,+ "description": "Skip this many (pagination)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": false+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "get_stock_quote",+ "title": "Get Stock Token quote",+ "description": "Price a Stock Token by ticker: the Chainlink oracle price, the on-chain Uniswap DEX mid price, the premium/discount between them, and the ERC-8056 multiplier (so you also get the underlying share price).",+ "inputSchema": {+ "type": "object",+ "properties": {+ "symbol": {+ "type": "string",+ "minLength": 1,+ "description": "Ticker, e.g. \"AAPL\" or \"TSLA\" (case-insensitive)."+ },+ "maxAgeSeconds": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "description": "Reject the Chainlink answer if older than this (default 3 days; 24/5 feeds)."+ }+ },+ "required": [+ "symbol"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "get_portfolio",+ "title": "Get Stock Token portfolio",+ "description": "Multiplier-correct Stock Token portfolio for any address: per-position token balance, ERC-8056 share-equivalent, USD value, plus the USDG cash balance. Read-only.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "address": {+ "type": "string",+ "description": "Wallet address (0x…40 hex) to value."+ }+ },+ "required": [+ "address"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "get_coin",+ "title": "Get token / memecoin detail",+ "description": "Detail for any Robinhood Chain token by contract address: price, 24h volume, liquidity, FDV, holder count, and whether it is a registered Stock Token.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "address": {+ "type": "string",+ "description": "Token contract address (0x…40 hex)."+ }+ },+ "required": [+ "address"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "list_trending_coins",+ "title": "List trending coins",+ "description": "The trending pools on Robinhood Chain right now (memecoins and stocks) with price, 24h volume, price change, and liquidity — the pulse of the chain.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 30,+ "description": "How many (default 10, max 30)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "get_recent_launches",+ "title": "Recent launchpad launches",+ "description": "Recently launched tokens on Robinhood Chain launchpads (NOXA and The Odyssey), newest first, scanned from on-chain logs.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "lookbackBlocks": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 500000,+ "description": "Blocks to scan back (~30k ≈ 1h; default 30000)."+ },+ "launchpad": {+ "type": "string",+ "enum": [+ "noxa",+ "odyssey"+ ],+ "description": "Restrict to one launchpad."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 100,+ "description": "Max launches to return (default 25)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "watch_launches",+ "title": "Watch for live launches",+ "description": "Watch NOXA + The Odyssey live for new token launches, blocking up to waitSeconds (or until limit launches are seen), then returns what appeared. Falls back to the most recent launch if none fire in the window.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "waitSeconds": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 120,+ "description": "How long to watch (default 20, max 120)."+ },+ "launchpad": {+ "type": "string",+ "enum": [+ "noxa",+ "odyssey"+ ],+ "description": "Restrict to one launchpad."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 50,+ "description": "Stop early after this many (default 20)."+ },+ "includeRecentIfEmpty": {+ "type": "boolean",+ "description": "If nothing launches in the window, return the latest recent launch (default true)."+ }+ },+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ },+ {+ "name": "search_token",+ "title": "Search tokens",+ "description": "Find tokens on Robinhood Chain by ticker, name, or contract address — searches the Stock Token registry and the Blockscout index together.",+ "inputSchema": {+ "type": "object",+ "properties": {+ "query": {+ "type": "string",+ "minLength": 1,+ "description": "Ticker, name fragment, or 0x address."+ },+ "limit": {+ "type": "integer",+ "exclusiveMinimum": 0,+ "maximum": 50,+ "description": "Max results (default 20)."+ }+ },+ "required": [+ "query"+ ],+ "additionalProperties": false,+ "$schema": "http://json-schema.org/draft-07/schema#"+ },+ "annotations": {+ "readOnlyHint": true,+ "openWorldHint": true+ },+ "execution": {+ "taskSupport": "forbidden"+ }+ }+ ]+ }+ }+ },+ {+ "dir": "out",+ "at": "2026-07-29T05:55:03.365Z",+ "message": {+ "method": "tools/call",+ "params": {+ "name": "get_chain_stats",+ "arguments": {}+ },+ "jsonrpc": "2.0",+ "id": 2+ }+ },+ {+ "dir": "in",+ "at": "2026-07-29T05:55:03.794Z",+ "message": {+ "jsonrpc": "2.0",+ "id": 2,+ "result": {+ "content": [+ {+ "type": "text",+ "text": "{\n \"network\": \"testnet\",\n \"chainId\": 46630,\n \"latestBlock\": \"94828462\",\n \"gasPriceWei\": \"10000000\",\n \"gasPriceGwei\": 0.01,\n \"tvlUsd\": 338136167.5648021,\n \"blockscout\": {\n \"averageBlockTimeMs\": 293,\n \"totalBlocks\": \"94823272\",\n \"totalAddresses\": \"20191230\",\n \"totalTransactions\": \"216329432\",\n \"transactionsToday\": \"1351781\",\n \"gasPrices\": {\n \"slow\": 0.13,\n \"average\": 0.15,\n \"fast\": 0.15\n },\n \"ethPriceUsd\": null\n },\n \"sources\": [\n \"robinhood-chain-rpc\",\n \"defillama\",\n \"blockscout\"\n ],\n \"asOf\": \"2026-07-29T05:55:03.789Z\"\n}"+ }+ ],+ "structuredContent": {+ "network": "testnet",+ "chainId": 46630,+ "latestBlock": "94828462",+ "gasPriceWei": "10000000",+ "gasPriceGwei": 0.01,+ "tvlUsd": 338136167.5648021,+ "blockscout": {+ "averageBlockTimeMs": 293,+ "totalBlocks": "94823272",+ "totalAddresses": "20191230",+ "totalTransactions": "216329432",+ "transactionsToday": "1351781",+ "gasPrices": {+ "slow": 0.13,+ "average": 0.15,+ "fast": 0.15+ },+ "ethPriceUsd": null+ },+ "sources": [+ "robinhood-chain-rpc",+ "defillama",+ "blockscout"+ ],+ "asOf": "2026-07-29T05:55:03.789Z"+ }+ }+ }+ }+ ]+ }+ ]+}diff --git a/robinhood/hood-mcp/docs/tools.html b/robinhood/hood-mcp/docs/tools.htmlnew file mode 100644index 000000000..810e95bf1--- /dev/null+++ b/robinhood/hood-mcp/docs/tools.html@@ -0,0 +1,139 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8" />+<meta name="viewport" content="width=device-width, initial-scale=1" />+<title>Tools — hood-mcp</title>+<meta name="description" content="Full tool reference for hood-mcp, generated from the servers' live registered schemas." />+<link rel="canonical" href="https://nirholas.github.io/hood-mcp/tools.html" />+<meta name="theme-color" content="#0a0d10" />+<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='7' fill='%230a0d10'/><path d='M7 22V10m0 6h8m0-6v12' fill='none' stroke='%2300c805' stroke-width='2.6' stroke-linecap='round'/><circle cx='24' cy='12' r='2.6' fill='%2335e0c0'/></svg>" />+<link rel="stylesheet" href="site.css" />+</head>+<body>++<nav class="top">+ <div class="wrap">+ <div class="brand"><span class="tick">hood</span>-mcp</div>+ <div class="links">+ <a href="index.html">Session</a>+ <a href="install.html">Install</a>+ <a href="tools.html" aria-current="page">Tools</a>+ <a href="safety.html">Safety model</a>+ <a href="https://github.com/nirholas/hood-mcp">GitHub</a>+ </div>+ </div>+</nav>++<main class="wrap">+ <section style="border-top:none; padding-top:48px;">+ <h2 style="font-size:30px;">Tool reference</h2>+ <p class="section-lede">+ Generated directly from each server's live registered tool schemas — this page cannot+ drift from the actual tools. Regenerate with <code>node scripts/generate-tools-doc.mjs</code>.+ </p>+ </section>++ <section>+ <h2>hood-mcp — data server (9 tools)</h2>+ <p class="section-lede">Zero-config, read-only, no wallet required.</p>+ <div class="card" style="margin-bottom:14px;">+ <h3><code>get_chain_stats</code> <span class="pill free">free</span></h3>+ <p>Live Robinhood Chain overview: latest block, gas price, TVL, and network totals (blocks, addresses, transactions, block time). No inputs.</p>+ <p style="color:var(--text-faint);font-size:13px;">No parameters.</p>+</div>+<div class="card" style="margin-bottom:14px;">+ <h3><code>list_stock_tokens</code> <span class="pill free">free</span></h3>+ <p>The registry of tokenized-equity Stock Tokens on Robinhood Chain (ticker, name, contract, Chainlink feed). Set pricedOnly to return only tokens with a live feed.</p>+ <div class="table-scroll"><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>pricedOnly</code></td><td><code>boolean</code></td><td>Only tokens with a Chainlink price feed.</td></tr>+<tr><td><code>limit</code></td><td><code>integer</code></td><td>Max entries (default all).</td></tr>+<tr><td><code>offset</code></td><td><code>integer</code></td><td>Skip this many (pagination).</td></tr></tbody></table></div>+</div>+<div class="card" style="margin-bottom:14px;">+ <h3><code>get_stock_quote</code> <span class="pill free">free</span></h3>+ <p>Price a Stock Token by ticker: the Chainlink oracle price, the on-chain Uniswap DEX mid price, the premium/discount between them, and the ERC-8056 multiplier (so you also get the underlying share price).</p>+ <div class="table-scroll"><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>symbol</code> <span style="color:var(--down);font-size:11px;">required</span></td><td><code>string</code></td><td>Ticker, e.g. "AAPL" or "TSLA" (case-insensitive).</td></tr>+<tr><td><code>maxAgeSeconds</code></td><td><code>integer</code></td><td>Reject the Chainlink answer if older than this (default 3 days; 24/5 feeds).</td></tr></tbody></table></div>+</div>+<div class="card" style="margin-bottom:14px;">+ <h3><code>get_portfolio</code> <span class="pill free">free</span></h3>+ <p>Multiplier-correct Stock Token portfolio for any address: per-position token balance, ERC-8056 share-equivalent, USD value, plus the USDG cash balance. Read-only.</p>+ <div class="table-scroll"><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>address</code> <span style="color:var(--down);font-size:11px;">required</span></td><td><code>string</code></td><td>Wallet address (0x…40 hex) to value.</td></tr></tbody></table></div>+</div>+<div class="card" style="margin-bottom:14px;">+ <h3><code>get_coin</code> <span class="pill free">free</span></h3>+ <p>Detail for any Robinhood Chain token by contract address: price, 24h volume, liquidity, FDV, holder count, and whether it is a registered Stock Token.</p>+ <div class="table-scroll"><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>address</code> <span style="color:var(--down);font-size:11px;">required</span></td><td><code>string</code></td><td>Token contract address (0x…40 hex).</td></tr></tbody></table></div>+</div>+<div class="card" style="margin-bottom:14px;">+ <h3><code>list_trending_coins</code> <span class="pill free">free</span></h3>+ <p>The trending pools on Robinhood Chain right now (memecoins and stocks) with price, 24h volume, price change, and liquidity — the pulse of the chain.</p>+ <div class="table-scroll"><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>limit</code></td><td><code>integer</code></td><td>How many (default 10, max 30).</td></tr></tbody></table></div>+</div>+<div class="card" style="margin-bottom:14px;">+ <h3><code>get_recent_launches</code> <span class="pill free">free</span></h3>+ <p>Recently launched tokens on Robinhood Chain launchpads (NOXA and The Odyssey), newest first, scanned from on-chain logs.</p>+ <div class="table-scroll"><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>lookbackBlocks</code></td><td><code>integer</code></td><td>Blocks to scan back (~30k ≈ 1h; default 30000).</td></tr>+<tr><td><code>launchpad</code></td><td><code>string</code></td><td>Restrict to one launchpad.</td></tr>+<tr><td><code>limit</code></td><td><code>integer</code></td><td>Max launches to return (default 25).</td></tr></tbody></table></div>+</div>+<div class="card" style="margin-bottom:14px;">+ <h3><code>watch_launches</code> <span class="pill free">free</span></h3>+ <p>Watch NOXA + The Odyssey live for new token launches, blocking up to waitSeconds (or until limit launches are seen), then returns what appeared. Falls back to the most recent launch if none fire in the window.</p>+ <div class="table-scroll"><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>waitSeconds</code></td><td><code>integer</code></td><td>How long to watch (default 20, max 120).</td></tr>+<tr><td><code>launchpad</code></td><td><code>string</code></td><td>Restrict to one launchpad.</td></tr>+<tr><td><code>limit</code></td><td><code>integer</code></td><td>Stop early after this many (default 20).</td></tr>+<tr><td><code>includeRecentIfEmpty</code></td><td><code>boolean</code></td><td>If nothing launches in the window, return the latest recent launch (default true).</td></tr></tbody></table></div>+</div>+<div class="card" style="margin-bottom:14px;">+ <h3><code>search_token</code> <span class="pill free">free</span></h3>+ <p>Find tokens on Robinhood Chain by ticker, name, or contract address — searches the Stock Token registry and the Blockscout index together.</p>+ <div class="table-scroll"><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>query</code> <span style="color:var(--down);font-size:11px;">required</span></td><td><code>string</code></td><td>Ticker, name fragment, or 0x address.</td></tr>+<tr><td><code>limit</code></td><td><code>integer</code></td><td>Max results (default 20).</td></tr></tbody></table></div>+</div>+ </section>++ <section>+ <h2>hood-mcp-trading — wallet server (4 tools)</h2>+ <p class="section-lede">Requires <code>HOOD_MCP_ENABLE_TRADING=1</code> + a wallet key. See the <a href="safety.html">safety model</a>.</p>+ <div class="card" style="margin-bottom:14px;">+ <h3><code>get_my_portfolio</code> <span class="pill free">read-only</span></h3>+ <p>This wallet's holdings on Robinhood Chain: native ETH (gas), USDG cash, and every Stock Token position with multiplier-correct USD value. Read-only.</p>+ <p style="color:var(--text-faint);font-size:13px;">No parameters.</p>+</div>+<div class="card" style="margin-bottom:14px;">+ <h3><code>get_swap_quote</code> <span class="pill free">read-only</span></h3>+ <p>Quote a Uniswap swap on Robinhood Chain without signing: best route, expected output, minimum received at your slippage, and the USD value of the input. Tokens are addresses, Stock Token tickers, or USDG/WETH.</p>+ <div class="table-scroll"><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>tokenIn</code> <span style="color:var(--down);font-size:11px;">required</span></td><td><code>string</code></td><td>Input token: address, ticker (e.g. TSLA), or USDG/WETH.</td></tr>+<tr><td><code>tokenOut</code> <span style="color:var(--down);font-size:11px;">required</span></td><td><code>string</code></td><td>Output token: address, ticker, or USDG/WETH.</td></tr>+<tr><td><code>amountIn</code> <span style="color:var(--down);font-size:11px;">required</span></td><td><code>string</code></td><td>Human amount of tokenIn, e.g. "100" or "0.05".</td></tr>+<tr><td><code>slippageBps</code></td><td><code>integer</code></td><td>Slippage tolerance in bps (default 50 = 0.5%).</td></tr></tbody></table></div>+</div>+<div class="card" style="margin-bottom:14px;">+ <h3><code>execute_swap</code> <span class="pill guarded">guarded</span></h3>+ <p>Swap tokens on Robinhood Chain. First call returns a SIMULATION and requires confirm=true to broadcast. Spend is hard-capped in USD; Stock Token BUYS require eligibility. Approves the router automatically if needed.</p>+ <div class="table-scroll"><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>tokenIn</code> <span style="color:var(--down);font-size:11px;">required</span></td><td><code>string</code></td><td>Input token: address, ticker, or USDG/WETH.</td></tr>+<tr><td><code>tokenOut</code> <span style="color:var(--down);font-size:11px;">required</span></td><td><code>string</code></td><td>Output token: address, ticker, or USDG/WETH.</td></tr>+<tr><td><code>amountIn</code> <span style="color:var(--down);font-size:11px;">required</span></td><td><code>string</code></td><td>Human amount of tokenIn to spend, e.g. "10".</td></tr>+<tr><td><code>slippageBps</code></td><td><code>integer</code></td><td>Slippage tolerance in bps (default 50).</td></tr>+<tr><td><code>confirm</code></td><td><code>boolean</code></td><td>Must be true to actually broadcast. Omit/false to preview.</td></tr></tbody></table></div>+</div>+<div class="card" style="margin-bottom:14px;">+ <h3><code>transfer_usdg</code> <span class="pill guarded">guarded</span></h3>+ <p>Send USDG to an address. First call returns a preview and requires confirm=true to broadcast. The amount is hard-capped in USD by the same spend limits.</p>+ <div class="table-scroll"><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>to</code> <span style="color:var(--down);font-size:11px;">required</span></td><td><code>string</code></td><td>Recipient address (0x…40 hex).</td></tr>+<tr><td><code>amount</code> <span style="color:var(--down);font-size:11px;">required</span></td><td><code>string</code></td><td>Human USDG amount, e.g. "5.00".</td></tr>+<tr><td><code>confirm</code></td><td><code>boolean</code></td><td>Must be true to actually broadcast. Omit/false to preview.</td></tr></tbody></table></div>+</div>+ </section>++</main>++<footer class="wrap">+ © 2026 nirholas · Built by <a href="https://x.com/nichxbt">nirholas</a> ·+ <a href="https://three.ws">three.ws</a> ·+ <a href="https://www.npmjs.com/package/hood-mcp">npm</a>+</footer>++</body>+</html>diff --git a/robinhood/hood-mcp/package.json b/robinhood/hood-mcp/package.jsonindex 28bf10624..2dffa8937 100644--- a/robinhood/hood-mcp/package.json+++ b/robinhood/hood-mcp/package.json@@ -58,7 +58,10 @@"dev:data": "tsx src/data-server.ts","dev:trading": "tsx src/trading-server.ts","start": "node dist/data-server.js",+ "docs": "npm run docs:tools && npm run docs:session && npm run docs:site","docs:tools": "tsx scripts/generate-tools-doc.mjs",+ "docs:session": "node scripts/capture-session.mjs",+ "docs:site": "node scripts/build-docs.mjs","test": "vitest run tests/schema.test.ts tests/trading-guards.test.ts","test:live": "vitest run -c vitest.live.config.ts tests/data-client.live.test.ts --testTimeout 120000","test:swap": "vitest run -c vitest.live.config.ts tests/trading-swap.live.test.ts --testTimeout 180000",diff --git a/robinhood/hood-mcp/scripts/build-docs.mjs b/robinhood/hood-mcp/scripts/build-docs.mjsnew file mode 100644index 000000000..bfe40306b--- /dev/null+++ b/robinhood/hood-mcp/scripts/build-docs.mjs@@ -0,0 +1,303 @@+#!/usr/bin/env node+/**+ * Render `docs/index.html` from the captured MCP session in+ * `docs/session.json`. Everything on the landing page is build-time rendered:+ * no client-side JS, no fetching, no template placeholders. If the transcript+ * is missing, this fails loudly rather than shipping a page with invented+ * numbers.+ *+ * npm run build && node scripts/capture-session.mjs && node scripts/build-docs.mjs+ *+ * (or just `npm run docs`, which chains all three).+ */+import { readFileSync, writeFileSync, existsSync } from 'node:fs'+import { fileURLToPath } from 'node:url'+import path from 'node:path'++const __dirname = path.dirname(fileURLToPath(import.meta.url))+const DOCS = path.join(__dirname, '..', 'docs')+const SESSION = path.join(DOCS, 'session.json')++function esc(s) {+ return String(s).replace(+ /[&<>"']/g,+ (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c],+ )+}++/** Tint an escaped JSON string at build time. No client JS involved. */+function highlightJson(value) {+ const json = typeof value === 'string' ? value : JSON.stringify(value, null, 2)+ return esc(json).replace(+ /("(?:\\.|[^"\\])*")(\s*:)?|\b(true|false)\b|\bnull\b|(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g,+ (match, str, colon, bool, num) => {+ if (str) return colon ? `<span class="j-key">${str}</span>${colon}` : `<span class="j-str">${str}</span>`+ if (bool) return `<span class="j-bool">${match}</span>`+ if (num) return `<span class="j-num">${match}</span>`+ return `<span class="j-null">${match}</span>`+ },+ )+}++function fmtUsd(n) {+ if (n === null || n === undefined) return '—'+ return `$${Number(n).toLocaleString('en-US', { maximumFractionDigits: 2 })}`+}++function fmtInt(n) {+ if (n === null || n === undefined) return '—'+ return Number(n).toLocaleString('en-US')+}++/** One request/response pair in the transcript. */+function turn(label, kind, body, meta) {+ return `<div class="turn ${kind}">+ <div class="turn-label">${esc(label)}${meta ? `<span class="ms">${esc(meta)}</span>` : ''}</div>+ <pre><code>${highlightJson(body)}</code></pre>+ </div>`+}++function main() {+ if (!existsSync(SESSION)) {+ console.error(`Missing ${SESSION}. Run \`node scripts/capture-session.mjs\` first.`)+ process.exit(1)+ }+ const data = JSON.parse(readFileSync(SESSION, 'utf8'))+ const mainnet = data.sessions.find((s) => s.network === 'mainnet')+ const testnet = data.sessions.find((s) => s.network === 'testnet')+ if (!mainnet) {+ console.error('session.json has no mainnet session — recapture.')+ process.exit(1)+ }++ const stats = mainnet.calls.find((c) => c.name === 'get_chain_stats')?.parsed+ const quote = mainnet.calls.find((c) => c.name === 'get_stock_quote')?.parsed+ if (!stats || !quote) {+ console.error('session.json is missing get_chain_stats / get_stock_quote results — recapture.')+ process.exit(1)+ }++ const initReq = mainnet.frames.find((f) => f.dir === 'out' && f.message.method === 'initialize')+ const initRes = mainnet.frames.find((f) => f.dir === 'in' && f.message.result?.protocolVersion)+ const listReq = mainnet.frames.find((f) => f.dir === 'out' && f.message.method === 'tools/list')++ const premium = quote.premiumPct+ const premiumClass = premium >= 0 ? 'pos' : 'neg'+ const capturedDate = new Date(mainnet.capturedAt).toISOString().replace('T', ' ').slice(0, 19)++ const toolCallTurns = mainnet.calls+ .map((call) => {+ const req = {+ jsonrpc: '2.0',+ id: call.name,+ method: 'tools/call',+ params: { name: call.name, arguments: call.arguments },+ }+ return `${turn(`→ tools/call ${call.name}`, 'req', req)}+ ${turn('← result', 'res', call.text, `${call.ms} ms · live`)}`+ })+ .join('\n ')++ const testnetTurns = testnet+ ? testnet.calls+ .map((call) => {+ const req = {+ jsonrpc: '2.0',+ id: call.name,+ method: 'tools/call',+ params: { name: call.name, arguments: call.arguments },+ }+ return `${turn(`→ tools/call ${call.name}`, 'req', req)}+ ${turn('← result', 'res', call.text, `${call.ms} ms · live`)}`+ })+ .join('\n ')+ : ''++ const toolList = mainnet.tools+ .map((t) => `<tr><td><code>${esc(t.name)}</code></td><td>${esc(t.description)}</td></tr>`)+ .join('\n ')++ const html = `<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8" />+<meta name="viewport" content="width=device-width, initial-scale=1" />+<title>hood-mcp: a real Robinhood Chain agent session</title>+<meta name="description" content="A verbatim MCP session transcript: a real client spawns hood-mcp over stdio, initializes, lists 9 tools, and asks what AAPL is trading at on-chain and what the premium is. Live chain-4663 numbers, captured, not written." />+<link rel="canonical" href="https://nirholas.github.io/hood-mcp/" />+<meta name="theme-color" content="#0a0d10" />+<meta property="og:type" content="website" />+<meta property="og:title" content="hood-mcp: a real Robinhood Chain agent session" />+<meta property="og:description" content="Verbatim MCP wire transcript against Robinhood Chain 4663: AAPL oracle vs DEX price, the premium, trending coins, token search. Every number captured from a live run." />+<meta property="og:url" content="https://nirholas.github.io/hood-mcp/" />+<meta name="twitter:card" content="summary_large_image" />+<meta name="twitter:title" content="hood-mcp: a real Robinhood Chain agent session" />+<meta name="twitter:description" content="A real MCP client, the real server, live chain 4663 data. The transcript is the documentation." />+<meta name="twitter:creator" content="@nichxbt" />+<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='7' fill='%230a0d10'/><path d='M7 22V10m0 6h8m0-6v12' fill='none' stroke='%2300c805' stroke-width='2.6' stroke-linecap='round'/><circle cx='24' cy='12' r='2.6' fill='%2335e0c0'/></svg>" />+<link rel="stylesheet" href="site.css" />+<script type="application/ld+json">+{"@context":"https://schema.org","@type":"SoftwareApplication","name":"hood-mcp","applicationCategory":"DeveloperApplication","operatingSystem":"Node.js >= 20","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"Model Context Protocol servers for Robinhood Chain (chain ID 4663): a zero-config read-only data server and an explicitly opt-in trading server with hard spend caps and a confirm gate.","softwareVersion":"${esc(mainnet.serverInfo?.version ?? '0.1.0')}","author":{"@type":"Person","name":"nirholas","url":"https://x.com/nichxbt"},"downloadUrl":"https://www.npmjs.com/package/hood-mcp","codeRepository":"https://github.com/nirholas/hood-mcp"}+</script>+</head>+<body>++<nav class="top">+ <div class="wrap">+ <div class="brand"><span class="tick">hood</span>-mcp</div>+ <div class="links">+ <a href="index.html" aria-current="page">Session</a>+ <a href="install.html">Install</a>+ <a href="tools.html">Tools</a>+ <a href="safety.html">Safety model</a>+ <a href="https://github.com/nirholas/hood-mcp">GitHub</a>+ </div>+ </div>+</nav>++<main class="wrap">++ <section style="border-top:none; padding-top:56px;">+ <p class="eyebrow">Captured session · ${esc(capturedDate)} UTC</p>+ <h1>“What is AAPL trading at on-chain,<br />and what is the premium?”</h1>+ <p class="section-lede">+ Below is the answer, and then the entire wire transcript that produced it: a real+ <a href="https://modelcontextprotocol.io">Model Context Protocol</a> client spawning+ <code>hood-mcp</code> over stdio, initializing, listing its ${mainnet.tools.length} tools, and+ calling ${mainnet.calls.length} of them against live Robinhood Chain mainnet (4663). Nothing on this page+ is written by hand. It is generated from+ <a href="session.json">session.json</a>, the recorded frames of one run.+ </p>++ <dl class="figures">+ <div>+ <dt>${esc(quote.symbol)} · Chainlink oracle</dt>+ <dd>${fmtUsd(quote.chainlink?.priceUsd)}<small>feed answer, ${fmtInt(quote.chainlink?.ageSeconds)}s old</small></dd>+ </div>+ <div>+ <dt>${esc(quote.symbol)} · Uniswap DEX</dt>+ <dd>${fmtUsd(quote.dexPriceUsd)}<small>on-chain v3 mid price</small></dd>+ </div>+ <div>+ <dt>Premium</dt>+ <dd class="${premiumClass}">${premium >= 0 ? '+' : ''}${esc(premium)}%<small>DEX vs oracle</small></dd>+ </div>+ <div>+ <dt>Chain 4663</dt>+ <dd>#${fmtInt(stats.latestBlock)}<small>${esc(stats.blockscout?.averageBlockTimeMs ?? '—')} ms blocks · ${fmtUsd(stats.tvlUsd)} TVL</small></dd>+ </div>+ </dl>++ <p class="section-lede">+ That premium is the whole trade: a Stock Token can drift from its oracle, and an agent that can+ read both sides in one tool call can act on the gap. <code>get_stock_quote</code> returns the+ oracle price, the DEX price, the spread, and the ERC-8056 <code>uiMultiplier</code> so the+ underlying share price is never misstated after a split.+ </p>++ <p class="note">+ <strong>Reproduce it.</strong> <code>npm install && npm run build && npm run docs</code> re-runs the+ capture against the chain as it is right now and re-renders this page. The numbers above will+ differ from yours, because they are real.+ </p>+ </section>++ <section id="transcript">+ <h2>The transcript</h2>+ <p class="section-lede">+ Every frame below was recorded off the stdio transport in both directions during a single run+ of <code>scripts/capture-session.mjs</code>. Request frames are the client speaking; result+ frames are the server's, verbatim.+ </p>++ <div class="transcript">+ <div class="transcript-head">+ <span class="dots" aria-hidden="true"><i></i><i></i><i></i></span>+ <span>node dist/data-server.js · stdio · HOOD_MCP_NETWORK=mainnet</span>+ <span style="margin-left:auto">${esc(mainnet.frames.length)} frames · ${esc(mainnet.totalMs)} ms total</span>+ </div>++ ${turn('→ initialize', 'req', initReq?.message ?? {}, 'handshake')}+ ${turn('← initialize result', 'res', initRes?.message ?? {}, 'server capabilities')}+ ${turn('→ tools/list', 'req', listReq?.message ?? {})}+ <div class="turn res">+ <div class="turn-label">← ${mainnet.tools.length} tools<span class="ms">schemas in <a href="tools.html">the reference</a></span></div>+ <div class="table-scroll"><table>+ <thead><tr><th>Tool</th><th>Description the model routes on</th></tr></thead>+ <tbody>+ ${toolList}+ </tbody>+ </table></div>+ </div>+ ${toolCallTurns}+ </div>++ <p class="section-lede" style="margin-top:18px;">+ The server's <code>instructions</code> string (returned in the handshake and shown to the model+ before any tool is picked) is what keeps routing sane on a chain with both tokenized equities+ and memecoins:+ </p>+ <pre><code>${esc(mainnet.instructions ?? '')}</code></pre>+ </section>++ ${+ testnet+ ? `<section id="testnet">+ <h2>Same server, testnet 46630</h2>+ <p class="section-lede">+ One env var switches networks. Captured in the same run against the live testnet, which is a+ different chain with its own block height, gas market, and Blockscout index.+ </p>+ <div class="transcript">+ <div class="transcript-head">+ <span class="dots" aria-hidden="true"><i></i><i></i><i></i></span>+ <span>node dist/data-server.js · stdio · HOOD_MCP_NETWORK=testnet</span>+ <span style="margin-left:auto">${esc(testnet.frames.length)} frames · ${esc(testnet.totalMs)} ms total</span>+ </div>+ ${testnetTurns}+ </div>+ </section>`+ : ''+ }++ <section id="install">+ <h2>Add it to your client</h2>+ <p class="section-lede">+ The data server is zero-config and read-only: no API key, no wallet, no account. The full+ matrix (Claude Desktop, Cursor, Smithery, raw stdio, Streamable HTTP) is on the+ <a href="install.html">install page</a>.+ </p>+ <pre><code>claude mcp add hood-mcp -- npx -y hood-mcp</code></pre>+ <div class="grid">+ <div class="card">+ <h3>Data server <span class="pill free">free</span></h3>+ <p>${mainnet.tools.length} read-only tools: quotes with the oracle/DEX premium, multiplier-correct portfolios, launches, trending coins, chain stats, token search.</p>+ <p style="margin:0"><a href="tools.html">Tool reference →</a></p>+ </div>+ <div class="card">+ <h3>Trading server <span class="pill guarded">opt-in</span></h3>+ <p>A separate binary that never starts unless you set <code>HOOD_MCP_ENABLE_TRADING=1</code> and a wallet key. Hard USD spend caps per call and per session, plus a simulate-then-confirm round trip on every mutating tool.</p>+ <p style="margin:0"><a href="safety.html">Safety model →</a></p>+ </div>+ </div>+ </section>++</main>++<footer class="wrap">+ © 2026 nirholas · Built by <a href="https://x.com/nichxbt">nirholas</a> ·+ <a href="https://three.ws">three.ws</a> ·+ <a href="https://www.npmjs.com/package/hood-mcp">npm</a>+</footer>++</body>+</html>+`++ writeFileSync(path.join(DOCS, 'index.html'), html)+ console.log(+ `Wrote docs/index.html — ${mainnet.calls.length} mainnet tool calls, ${mainnet.frames.length} frames, captured ${mainnet.capturedAt}`,+ )+}++main()diff --git a/robinhood/hood-mcp/smithery.yaml b/robinhood/hood-mcp/smithery.yamlnew file mode 100644index 000000000..6ba1cde3a--- /dev/null+++ b/robinhood/hood-mcp/smithery.yaml@@ -0,0 +1,40 @@+# Smithery deployment config for hood-mcp+# https://smithery.ai/docs/config#smitheryyaml+#+# This config installs the READ-ONLY data server (bin `hood-mcp`): Stock Token+# quotes with the Chainlink-vs-DEX premium, multiplier-correct portfolios,+# memecoin launches, chain stats, and token search on Robinhood Chain (4663).+# It is zero-config: every field below is optional and the server runs against+# the public RPC with no key.+#+# The trading server (bin `hood-mcp-trading`) is deliberately NOT exposed here.+# It signs transactions with a private key and is installed by hand only, per+# the safety model: https://nirholas.github.io/hood-mcp/safety.html+startCommand:+ type: stdio+ configSchema:+ type: object+ properties:+ HOOD_MCP_NETWORK:+ type: string+ title: Network+ enum:+ - mainnet+ - testnet+ default: mainnet+ description: Which Robinhood Chain network to read. "mainnet" is chain 4663, "testnet" is chain 46630.+ ALCHEMY_KEY:+ type: string+ title: Alchemy API key+ description: Optional. Routes RPC through Alchemy instead of the public endpoint - faster, private, and no rate limiting on the heavy portfolio and launch scans.+ required: []+ commandFunction: |+ (config) => ({+ command: 'npx',+ args: ['-y', 'hood-mcp'],+ env: Object.assign(+ {},+ config.HOOD_MCP_NETWORK ? { HOOD_MCP_NETWORK: config.HOOD_MCP_NETWORK } : {},+ config.ALCHEMY_KEY ? { ALCHEMY_KEY: config.ALCHEMY_KEY } : {}+ )+ })diff --git a/scripts/animation-dignity-sweep.mjs b/scripts/animation-dignity-sweep.mjsindex 40939940f..1a4543b99 100644--- a/scripts/animation-dignity-sweep.mjs+++ b/scripts/animation-dignity-sweep.mjs@@ -426,24 +426,39 @@ function loadClip(name) {const _qa = new Quaternion();const _qb = new Quaternion();-/** Max angle (degrees) between any two keyframes of a quaternion track. */+/**+ * How far a bone actually swings over the clip: the angular diameter of its+ * keyframed rotations, in degrees.+ *+ * Computed with the standard two-pass diameter walk rather than all-pairs (a 15s+ * idle carries ~950 keys per bone, times 52 bones, times 10 rigs, times 2 lanes).+ * Pass 1 finds the key farthest from the first; pass 2 measures every key against+ * that one. The result is a lower bound on the true diameter and exact whenever+ * the extremes are mutually farthest, which they are for the cyclic limb motion+ * these clips carry. A lower bound is the safe direction for a floor check: it+ * can never report motion that is not there.+ */function trackSwingDeg(track) {const v = track.values;const n = v.length / 4;- let max = 0;- for (let i = 0; i < n; i++) {- _qa.set(v[i * 4], v[i * 4 + 1], v[i * 4 + 2], v[i * 4 + 3]);- for (let j = i + 1; j < n; j++) {- _qb.set(v[j * 4], v[j * 4 + 1], v[j * 4 + 2], v[j * 4 + 3]);- const a = _qa.angleTo(_qb);- if (a > max) max = a;+ if (n < 2) return 0;+ const at = (q, i) => q.set(v[i * 4], v[i * 4 + 1], v[i * 4 + 2], v[i * 4 + 3]);++ at(_qa, 0);+ let anchor = 0;+ let best = 0;+ for (let i = 1; i < n; i++) {+ const a = at(_qb, i).angleTo(_qa);+ if (a > best) {+ best = a;+ anchor = i;}- // A dense clip has hundreds of keys; the extremes of a cyclic motion are- // always reachable from the first key, so cap the inner sweep once the- // outer loop has walked a full cycle. Keeps the sweep O(n) in practice- // without weakening the measurement (the max over all pairs of a cycle is- // found within one period of the first key).- if (i > 0 && max > 0) break;+ }+ at(_qa, anchor);+ let max = best;+ for (let i = 0; i < n; i++) {+ const a = at(_qb, i).angleTo(_qa);+ if (a > max) max = a;}return (max * 180) / Math.PI;}diff --git a/scripts/check-browser-graph.mjs b/scripts/check-browser-graph.mjsnew file mode 100644index 000000000..23dceb0f8--- /dev/null+++ b/scripts/check-browser-graph.mjs@@ -0,0 +1,186 @@+#!/usr/bin/env node+/**+ * Refuse to build when a Node-only module has leaked into the BROWSER bundle.+ *+ * Why this exists+ * ---------------+ * `api/` is server code and `src/` is browser code, but a handful of `src/`+ * modules legitimately reuse a shared helper from `api/_lib/` (SNS resolution,+ * BNB chain clients, vault message signing). That shortcut is only safe while+ * the helper it reaches stays free of Node built-ins — and nothing enforced it.+ *+ * On 2026-07-29 `api/_lib/solana/connection.js` gained a top-level+ * `import { cacheGet, cacheSet } from '../cache.js'` for a fleet-wide RPC+ * breaker. `api/_lib/cache.js` statically imports `node:zlib` and `node:util`,+ * and connection.js is reachable from a real browser entry:+ *+ * public/agent/index.html+ * → src/agent-skills.js → src/agent-skills-pumpfun.js+ * → src/solana/sns.js → api/_lib/solana/connection.js → api/_lib/cache.js+ *+ * `npm run build` died with `"promisify" is not exported by+ * "__vite-browser-external"` after four minutes — AFTER the vite step had+ * already wiped `dist/`. Every deploy was blocked until it was traced by hand.+ *+ * This walks the same graph the bundler does, starting from the HTML entries,+ * and fails with the exact import chain the moment a `node:` built-in becomes+ * reachable. It runs in milliseconds, before anything is built or destroyed.+ *+ * The fix at the other end is usually not "make the helper browser-safe" but+ * "do not reach L2 from a browser at all": load the server-only piece lazily+ * behind a `typeof window === 'undefined'` check, so the browser keeps a+ * correct local-only behaviour and the bundler never sees the built-in.+ *+ * Usage:+ * node scripts/check-browser-graph.mjs # exits 1 on any leak+ */++import { readFileSync, existsSync } from 'node:fs';+import { dirname, resolve, relative } from 'node:path';+import { execFileSync } from 'node:child_process';++const ROOT = resolve(new URL('..', import.meta.url).pathname);++// Built-ins that have no browser implementation. `node:`-prefixed specifiers are+// unambiguous; bare 'fs'/'path' style imports are caught by the same list.+const NODE_BUILTINS = new Set([+ 'assert', 'async_hooks', 'buffer', 'child_process', 'cluster', 'crypto', 'dgram',+ 'dns', 'fs', 'http', 'http2', 'https', 'module', 'net', 'os', 'path', 'perf_hooks',+ 'process', 'readline', 'repl', 'stream', 'string_decoder', 'tls', 'tty', 'url',+ 'util', 'v8', 'vm', 'worker_threads', 'zlib',+]);++// `node:crypto`, `node:buffer` and `node:process` have real browser shims that+// vite/rollup substitute cleanly (vite-plugin-node-polyfills is configured), so+// they are not build breakers. Everything else is.+const POLYFILLED = new Set(['crypto', 'buffer', 'process', 'stream', 'util/types']);++function tracked(patterns) {+ return execFileSync('git', ['ls-files', ...patterns], { cwd: ROOT, encoding: 'utf8' })+ .split('\n')+ .filter(Boolean)+ .map((f) => resolve(ROOT, f))+ .filter((f) => existsSync(f)); // a tracked-but-deleted path is not our problem+}++const IMPORT_RE =+ /(?:^|\n)\s*(?:import|export)[^'"\n]*?from\s*['"]([^'"]+)['"]|(?:^|[^.\w])import\(\s*['"]([^'"]+)['"]\s*\)/g;++/** Every specifier `file` imports, as raw strings. */+function specifiersOf(file) {+ let src;+ try { src = readFileSync(file, 'utf8'); } catch { return []; }+ const out = [];+ for (const m of src.matchAll(IMPORT_RE)) {+ const spec = m[1] || m[2];+ if (spec) out.push(spec);+ }+ return out;+}++function resolveLocal(fromFile, spec) {+ let p = resolve(dirname(fromFile), spec);+ if (existsSync(p) && !p.endsWith('.js') && existsSync(resolve(p, 'index.js'))) return resolve(p, 'index.js');+ if (!existsSync(p) && existsSync(`${p}.js`)) p = `${p}.js`;+ return existsSync(p) ? p : null;+}++function builtinName(spec) {+ const bare = spec.startsWith('node:') ? spec.slice(5) : spec;+ const root = bare.split('/')[0];+ return NODE_BUILTINS.has(root) ? root : null;+}++// ── Seed from what the browser actually loads: every tracked HTML entry ───────+const parent = new Map();+const queue = [];++function enqueue(file, from) {+ if (parent.has(file)) return;+ parent.set(file, from);+ queue.push(file);+}++for (const html of tracked(['pages/*.html', 'public/**/*.html', '*.html'])) {+ let src;+ try { src = readFileSync(html, 'utf8'); } catch { continue; }+ const label = relative(ROOT, html);+ for (const m of src.matchAll(/<script[^>]+src=["']([^"']+)["']/g)) {+ const spec = m[1];+ if (/^(https?:)?\/\//.test(spec)) continue;+ const abs = spec.startsWith('/')+ ? resolve(ROOT, spec.slice(1))+ : resolve(dirname(html), spec);+ if (existsSync(abs)) enqueue(abs, label);+ }+ for (const m of src.matchAll(IMPORT_RE)) {+ const spec = m[1] || m[2];+ if (!spec || /^(https?:)?\/\//.test(spec)) continue;+ const abs = spec.startsWith('/')+ ? resolve(ROOT, spec.slice(1))+ : resolveLocal(html, spec);+ if (abs && existsSync(abs)) enqueue(abs, label);+ }+}++// ── Walk it ──────────────────────────────────────────────────────────────────+const leaks = [];++function chainTo(file) {+ const chain = [];+ let cur = file;+ while (cur && typeof cur === 'string' && cur.startsWith('/')) {+ chain.unshift(relative(ROOT, cur));+ cur = parent.get(cur);+ }+ if (cur) chain.unshift(cur);+ return chain;+}++while (queue.length) {+ const file = queue.shift();+ for (const spec of specifiersOf(file)) {+ const builtin = builtinName(spec);+ if (builtin) {+ if (!POLYFILLED.has(builtin)) leaks.push({ file, spec, chain: chainTo(file) });+ continue;+ }+ if (!spec.startsWith('.')) continue; // bare package — the bundler's problem, not ours+ const next = resolveLocal(file, spec);+ if (next) enqueue(next, file);+ }+}++if (!leaks.length) {+ console.log(`check:browser-graph — no Node-only imports reachable from ${parent.size} browser modules`);+ process.exit(0);+}++// One report per (module, specifier); the shortest chain is the clearest.+const byKey = new Map();+for (const leak of leaks) {+ const key = `${relative(ROOT, leak.file)}::${leak.spec}`;+ const prev = byKey.get(key);+ if (!prev || leak.chain.length < prev.chain.length) byKey.set(key, leak);+}++console.error(`\ncheck:browser-graph — ${byKey.size} Node-only import(s) reachable from the browser bundle:\n`);+for (const leak of byKey.values()) {+ console.error(` ${relative(ROOT, leak.file)} imports "${leak.spec}"`);+ console.error(` ${leak.chain.join('\n -> ')}\n`);+}+console.error(`This breaks \`npm run build\` (rollup resolves the built-in to+__vite-browser-external and fails on its named exports) — and it fails AFTER the+vite step has wiped dist/.++Fix at the boundary, not with a polyfill: load the server-only module lazily+behind a server check, so the browser keeps correct local-only behaviour.++ let _mod = null;+ function serverOnly() {+ if (typeof window !== 'undefined') return null;+ if (!_mod) _mod = import('./server-only.js').catch(() => null);+ return _mod;+ }+`);+process.exit(1);diff --git a/scripts/mobile-touch-audit.mjs b/scripts/mobile-touch-audit.mjsindex 50b48e2d8..172a6b373 100644--- a/scripts/mobile-touch-audit.mjs+++ b/scripts/mobile-touch-audit.mjs@@ -271,12 +271,9 @@ function auditDom(minTarget) {async function probeScrollGestures(page, cdp, canvases) {const results = [];const vh = await page.evaluate(() => window.innerHeight);- const swipe = async (x, y) => {- await page.evaluate(() => window.scrollTo({ top: 0, behavior: 'instant' }));- await page.waitForTimeout(400);+ const send = (type, points) => cdp.send('Input.dispatchTouchEvent', { type, touchPoints: points });+ const swipeUp = async (x, y) => {const before = await page.evaluate(() => window.scrollY);- const send = (type, points) =>- cdp.send('Input.dispatchTouchEvent', { type, touchPoints: points });await send('touchStart', [{ x, y }]);for (let i = 1; i <= 6; i++) {await send('touchMove', [{ x, y: y - i * 30 }]);@@ -288,34 +285,53 @@ async function probeScrollGestures(page, cdp, canvases) {return Math.round(after - before);};- // Control: swipe near the left edge, below the fold start, avoiding canvases.+ // Control: from the top of the document, swipe over ordinary page content at+ // the left edge. Establishes that this document scrolls by touch at all.let control = 0;try {- control = await swipe(8, Math.round(vh * 0.7));+ await page.evaluate(() => window.scrollTo({ top: 0, behavior: 'instant' }));+ await page.waitForTimeout(400);+ control = await swipeUp(6, Math.round(vh * 0.7));} catch {control = 0;}+ const findCanvas = (sel) => {+ const el = Array.from(document.querySelectorAll('canvas')).find((n) => {+ const id = n.id ? `#${n.id}` : '';+ const cls =+ typeof n.className === 'string' && n.className.trim()+ ? `.${n.className.trim().split(/\s+/).slice(0, 3).join('.')}`+ : '';+ return `canvas${id}${cls}` === sel;+ });+ if (!el) return null;+ el.scrollIntoView({ block: 'center', behavior: 'instant' });+ const r = el.getBoundingClientRect();+ return {+ x: Math.round(r.x + r.width / 2),+ y: Math.round(Math.min(Math.max(r.y + r.height / 2, 40), window.innerHeight - 40)),+ scrollY: Math.round(window.scrollY),+ headroom: Math.round(document.documentElement.scrollHeight - window.innerHeight - window.scrollY),+ };+ };+for (const c of canvases) {if (!c.visible || c.w < 100 || c.h < 100) continue;try {- const box = await page.evaluate((sel) => {- const el = Array.from(document.querySelectorAll('canvas')).find((n) => {- const id = n.id ? `#${n.id}` : '';- const cls =- typeof n.className === 'string' && n.className.trim()- ? `.${n.className.trim().split(/\s+/).slice(0, 3).join('.')}`- : '';- return `canvas${id}${cls}` === sel;- });- if (!el) return null;- window.scrollTo({ top: 0, behavior: 'instant' });- const r = el.getBoundingClientRect();- return { x: r.x + r.width / 2, y: r.y + r.height / 2, top: r.top };- }, c.sel);- if (!box || box.y < 0 || box.y > vh) continue;- const moved = await swipe(Math.round(box.x), Math.round(box.y));- results.push({ sel: c.sel, touchAction: c.touchAction, scrolled: moved, control });+ const box = await page.evaluate(findCanvas, c.sel);+ if (!box) continue;+ await page.waitForTimeout(400);+ const moved = await swipeUp(box.x, box.y);+ results.push({+ sel: c.sel,+ touchAction: c.touchAction,+ scrolled: moved,+ headroom: box.headroom,+ // Only a canvas with real scroll headroom under it that refuses to+ // move the page is actually fighting page scroll.+ swallowed: box.headroom > 200 && Math.abs(moved) < 5,+ });} catch {/* canvas vanished between audit and probe */}@@ -405,8 +421,8 @@ ${lines.length ? `- undersized targets:\n${lines.join('\n')}\n` : '- undersized? r.gesture.canvases.map((g) =>- ` - \`${g.sel}\` touch-action=${g.touchAction} -> page scrolled ${g.scrolled} px${- g.control > 20 && Math.abs(g.scrolled) < 5 ? ' **swallowed the swipe**' : ''+ ` - \`${g.sel}\` touch-action=${g.touchAction} -> page scrolled ${g.scrolled} px (headroom ${g.headroom} px)${+ g.swallowed ? ' **swallowed the swipe**' : ''}`,).join('\n')diff --git a/src/fits-lib.js b/src/fits-lib.jsindex 81291a556..03d4a1e3e 100644--- a/src/fits-lib.js+++ b/src/fits-lib.js@@ -56,12 +56,18 @@ export function shortWallet(addr) {/*** Collector accounts are a mix of real wallets and guest session handles* (`g_*` / `guest-*`). A guest handle is not an address, so truncating it in- * the middle produces noise; label it plainly instead.+ * the middle produces noise. Label it as a guest, but keep a short tail so a+ * board of several guests stays readable as several distinct people rather+ * than five identical rows.* @param {string} account*/export function displayAccount(account) {const s = String(account || '');- if (/^(g_|guest-)/.test(s)) return 'Guest';+ const guest = /^(g_|guest-)(.*)$/.exec(s);+ if (guest) {+ const tail = guest[2].replace(/[^a-z0-9]/gi, '').slice(-4);+ return tail ? `Guest ${tail}` : 'Guest';+ }return shortWallet(s);}diff --git a/tests/fits-lib.test.js b/tests/fits-lib.test.jsindex 1ee04e922..2a4f9cd02 100644--- a/tests/fits-lib.test.js+++ b/tests/fits-lib.test.js@@ -95,8 +95,20 @@ describe('rankFits', () => {describe('displayAccount / shortWallet', () => {it('labels guest session handles rather than truncating them into noise', () => {- expect(displayAccount('g_threews_live_demo')).toBe('Guest');- expect(displayAccount('guest-t6q8ci22bj')).toBe('Guest');+ expect(displayAccount('g_threews_live_demo')).toBe('Guest demo');+ expect(displayAccount('guest-t6q8ci22bj')).toBe('Guest 22bj');+ });++ it('keeps several guests distinguishable from one another', () => {+ const a = displayAccount('g_alpha_one');+ const b = displayAccount('g_beta_two');+ expect(a).not.toBe(b);+ expect(a.startsWith('Guest ')).toBe(true);+ });++ it('falls back to a bare label when a guest handle has no usable tail', () => {+ expect(displayAccount('g_')).toBe('Guest');+ expect(displayAccount('guest-___')).toBe('Guest');});it('truncates real wallets', () => {diff --git a/tests/vrm-loader.test.js b/tests/vrm-loader.test.jsnew file mode 100644index 000000000..b7d06d718--- /dev/null+++ b/tests/vrm-loader.test.js@@ -0,0 +1,180 @@+// P3.4 — VRM support in /play.+//+// A VRM file IS a glTF binary, so our existing GLTFLoader parses one already;+// what it does not do on its own is fix VRM 0.x's -Z facing, VRM skinned-mesh+// frustum culling, or MToon's double-sided hair/cloth planes. These tests lock+// the detection (off raw bytes and off a parsed result) and those three fixes,+// plus the integration seam the reference implementation plugs into.++import { describe, it, expect, beforeEach } from 'vitest';+import { Group, Mesh, SkinnedMesh, BoxGeometry, MeshStandardMaterial, DoubleSide, FrontSide } from 'three';+import {+ readGlbJson, vrmVersionOfJson, vrmVersionOfBuffer, vrmVersionOfGltf,+ prepareVrmModel, isVrmUrl, measureModel,+ setVrmPluginFactory, hasVrmPlugin, installVrmPlugin,+ VRM_EXT_0, VRM_EXT_1,+} from '../src/game/vrm-loader.js';++// Build a minimal but REAL GLB container around a glTF JSON chunk, exactly the+// way a .vrm file is laid out on disk (12-byte header + JSON chunk).+function makeGlb(json) {+ const text = new TextEncoder().encode(JSON.stringify(json));+ const pad = (4 - (text.length % 4)) % 4;+ const jsonLen = text.length + pad;+ const total = 12 + 8 + jsonLen;+ const buf = new ArrayBuffer(total);+ const view = new DataView(buf);+ view.setUint32(0, 0x46546c67, true); // 'glTF'+ view.setUint32(4, 2, true); // version+ view.setUint32(8, total, true);+ view.setUint32(12, jsonLen, true);+ view.setUint32(16, 0x4e4f534a, true); // 'JSON'+ new Uint8Array(buf, 20, text.length).set(text);+ new Uint8Array(buf, 20 + text.length, pad).fill(0x20); // spaces, per spec+ return buf;+}++describe('VRM detection', () => {+ it('reads the glTF JSON chunk out of a real GLB container', () => {+ const json = { asset: { version: '2.0' }, extensionsUsed: ['KHR_materials_unlit'] };+ expect(readGlbJson(makeGlb(json))).toEqual(json);+ });++ it('returns null for bytes that are not a GLB', () => {+ expect(readGlbJson(new ArrayBuffer(8))).toBeNull();+ expect(readGlbJson(new TextEncoder().encode('not a glb at all, really').buffer)).toBeNull();+ });++ it('detects VRM 0.x from the extension key or the used list', () => {+ expect(vrmVersionOfJson({ extensions: { [VRM_EXT_0]: {} } })).toBe(0);+ expect(vrmVersionOfJson({ extensionsUsed: [VRM_EXT_0] })).toBe(0);+ });++ it('detects VRM 1.0 and prefers it over a 0.x compatibility key', () => {+ expect(vrmVersionOfJson({ extensions: { [VRM_EXT_1]: {} } })).toBe(1);+ expect(vrmVersionOfJson({ extensionsUsed: [VRM_EXT_0, VRM_EXT_1] })).toBe(1);+ });++ it('reports null for a plain glTF', () => {+ expect(vrmVersionOfJson({ asset: { version: '2.0' } })).toBeNull();+ expect(vrmVersionOfJson(null)).toBeNull();+ });++ it('detects straight off the file bytes', () => {+ expect(vrmVersionOfBuffer(makeGlb({ extensionsUsed: [VRM_EXT_0] }))).toBe(0);+ expect(vrmVersionOfBuffer(makeGlb({ extensionsUsed: [VRM_EXT_1] }))).toBe(1);+ expect(vrmVersionOfBuffer(makeGlb({ asset: { version: '2.0' } }))).toBeNull();+ });++ it('detects off a parsed GLTFLoader result', () => {+ expect(vrmVersionOfGltf({ parser: { json: { extensionsUsed: [VRM_EXT_0] } } })).toBe(0);+ expect(vrmVersionOfGltf({ userData: { vrm: { meta: { metaVersion: '1' } } } })).toBe(1);+ expect(vrmVersionOfGltf({ parser: { json: {} } })).toBeNull();+ });++ it('recognises a .vrm url with a query or hash after it', () => {+ expect(isVrmUrl('https://three.ws/a.vrm')).toBe(true);+ expect(isVrmUrl('https://three.ws/a.VRM?v=2')).toBe(true);+ expect(isVrmUrl('https://three.ws/a.glb')).toBe(false);+ expect(isVrmUrl(null)).toBe(false);+ });+});++function fakeGltf(version, { skinned = true, transparent = true } = {}) {+ const scene = new Group();+ const material = new MeshStandardMaterial({ transparent });+ material.side = FrontSide;+ const mesh = skinned+ ? new SkinnedMesh(new BoxGeometry(1, 1, 1), material)+ : new Mesh(new BoxGeometry(1, 1, 1), material);+ scene.add(mesh);+ const json = version === 0+ ? { extensionsUsed: [VRM_EXT_0] }+ : version === 1 ? { extensionsUsed: [VRM_EXT_1] } : { asset: { version: '2.0' } };+ return { scene, parser: { json }, mesh, material };+}++describe('prepareVrmModel', () => {+ beforeEach(() => setVrmPluginFactory(null));++ it('is a no-op for a plain glTF', () => {+ const gltf = fakeGltf(null);+ const before = gltf.scene.rotation.y;+ expect(prepareVrmModel(gltf)).toEqual({ vrm: false, version: null, plugin: false });+ expect(gltf.scene.rotation.y).toBe(before);+ expect(gltf.mesh.frustumCulled).toBe(true);+ });++ it('turns a VRM 0.x model around so it faces the same way as every other avatar', () => {+ const gltf = fakeGltf(0);+ const res = prepareVrmModel(gltf);+ expect(res).toMatchObject({ vrm: true, version: 0 });+ expect(gltf.scene.rotation.y).toBeCloseTo(Math.PI, 6);+ });++ it('leaves a VRM 1.0 model facing forward already', () => {+ const gltf = fakeGltf(1);+ expect(prepareVrmModel(gltf)).toMatchObject({ vrm: true, version: 1 });+ expect(gltf.scene.rotation.y).toBe(0);+ });++ it('opts VRM skinned meshes out of frustum culling so limbs stop flickering', () => {+ const gltf = fakeGltf(1);+ prepareVrmModel(gltf);+ expect(gltf.mesh.frustumCulled).toBe(false);+ });++ it('makes transparent MToon-style planes double-sided so hair is not full of holes', () => {+ const gltf = fakeGltf(1, { transparent: true });+ prepareVrmModel(gltf);+ expect(gltf.material.side).toBe(DoubleSide);+ });++ it('leaves opaque materials one-sided', () => {+ const gltf = fakeGltf(1, { transparent: false });+ prepareVrmModel(gltf);+ expect(gltf.material.side).toBe(FrontSide);+ });++ it('hands VRM 0.x rotation to the reference implementation when one is installed', () => {+ const rotated = [];+ setVrmPluginFactory(() => ({}), { VRMUtils: { rotateVRM0: (v) => rotated.push(v), combineSkeletons: () => {} } });+ const gltf = fakeGltf(0);+ gltf.userData = { vrm: { meta: {} } };+ const res = prepareVrmModel(gltf);+ expect(res.plugin).toBe(true);+ expect(rotated).toHaveLength(1);+ // The library owns the rotation now: we must not double-apply it.+ expect(gltf.scene.rotation.y).toBe(0);+ });+});++describe('the @pixiv/three-vrm integration seam', () => {+ beforeEach(() => setVrmPluginFactory(null));++ it('reports honestly that no reference implementation is wired', () => {+ expect(hasVrmPlugin()).toBe(false);+ const loader = { registered: [], register(fn) { this.registered.push(fn); } };+ expect(installVrmPlugin(loader)).toBe(false);+ expect(loader.registered).toHaveLength(0);+ });++ it('registers the plugin on a loader exactly once', () => {+ setVrmPluginFactory((parser) => ({ parser }));+ const loader = { registered: [], register(fn) { this.registered.push(fn); } };+ expect(installVrmPlugin(loader)).toBe(true);+ expect(installVrmPlugin(loader)).toBe(true);+ expect(loader.registered).toHaveLength(1);+ expect(hasVrmPlugin()).toBe(true);+ });+});++describe('measureModel', () => {+ it('reports height and largest extent', () => {+ const g = new Group();+ g.add(new Mesh(new BoxGeometry(2, 4, 1), new MeshStandardMaterial()));+ const { height, extent } = measureModel(g);+ expect(height).toBeCloseTo(4, 5);+ expect(extent).toBeCloseTo(4, 5);+ });+});diff --git a/tests/world-objects-local.test.js b/tests/world-objects-local.test.jsnew file mode 100644index 000000000..d9472cac6--- /dev/null+++ b/tests/world-objects-local.test.js@@ -0,0 +1,138 @@+// P3.1 — locally-driven world objects.+//+// When there is no authoritative room, /play renders the coin world's persisted+// build from the durable store itself. These entries have to behave like real+// objects (raycastable, deletable, snapshot-able back into the doc) AND get out+// of the way the instant the room's own copy of the same id arrives, or the+// player sees every prop twice.++import { describe, it, expect, beforeEach } from 'vitest';+import { Scene } from 'three';+import { WorldObjects, registerUploadedProp, isUploadType, propDef } from '../src/game/world-objects.js';++// A CommunityNet stand-in: only `on(event, fn)` is touched by the manager.+function fakeNet() {+ const handlers = new Map();+ return {+ handlers,+ on(event, fn) { handlers.set(event, fn); return () => handlers.delete(event); },+ emit(event, ...args) { handlers.get(event)?.(...args); },+ };+}++function serverObject(id, over = {}) {+ return { id, type: 'crate', kind: 'prop', ownerId: 'server-owner', x: 5, y: 0, z: 5, yaw: 0, scale: 1, ...over };+}++describe('WorldObjects local entries (P3.1)', () => {+ let scene; let net; let objs;+ beforeEach(() => {+ scene = new Scene();+ net = fakeNet();+ objs = new WorldObjects(scene, net, { isMine: (o) => o.ownerId === 'me' });+ });++ it('renders a restored prop and reports it as local', () => {+ objs.addLocal({ id: 'p1', type: 'crate', x: 3, y: 0, z: 4, yaw: 1, scale: 2 }, { mine: true });+ expect(objs.count).toBe(1);+ expect(objs.localCount()).toBe(1);+ expect(objs.isLocal('p1')).toBe(true);+ const node = scene.getObjectByName('wo:p1');+ expect(node).toBeTruthy();+ expect(node.position.x).toBeCloseTo(3, 5);+ expect(node.position.z).toBeCloseTo(4, 5);+ expect(node.rotation.y).toBeCloseTo(1, 5);+ expect(node.scale.x).toBeCloseTo(2, 5);+ });++ it('refuses a malformed record instead of adding a ghost entry', () => {+ expect(objs.addLocal(null)).toBeNull();+ expect(objs.addLocal({ x: 1, y: 0, z: 1 })).toBeNull();+ expect(objs.count).toBe(0);+ });++ it('snapshots local entries back into world-doc shape', () => {+ objs.addLocal({ id: 'p1', type: 'lamp', kind: 'block', ownerId: 'me', x: 1, y: 0, z: 2, yaw: 0.5, scale: 1.5 });+ objs.addLocal({ id: 'p2', type: 'u:abc', ownerId: 'me', x: 3, y: 0, z: 4, url: 'https://pub-test.r2.dev/a.glb' });+ const rows = objs.localObjects();+ expect(rows).toHaveLength(2);+ expect(rows[0]).toEqual({ id: 'p1', type: 'lamp', kind: 'block', ownerId: 'me', x: 1, y: 0, z: 2, yaw: 0.5, scale: 1.5 });+ expect(rows[1].url).toBe('https://pub-test.r2.dev/a.glb');+ });++ it('leaves the url key off catalog props so the saved doc stays compact', () => {+ objs.addLocal({ id: 'p1', type: 'crate', x: 1, y: 0, z: 1 });+ expect(Object.keys(objs.localObjects()[0])).not.toContain('url');+ });++ it('lets the authoritative room supersede a local entry with the same id', () => {+ objs.addLocal({ id: 'p1', type: 'crate', ownerId: 'me', x: 1, y: 0, z: 1 }, { mine: true });+ expect(objs.localCount()).toBe(1);+ net.emit('objectAdd', serverObject('p1', { x: 9, y: 0, z: 9 }), 'p1');+ // One object, not two, and it is the server's copy now.+ expect(objs.count).toBe(1);+ expect(objs.localCount()).toBe(0);+ expect(objs.isLocal('p1')).toBe(false);+ expect(objs.entries.get('p1').tx).toBe(9);+ });++ it('drops every local entry when the room finishes syncing, leaving server ones alone', () => {+ objs.addLocal({ id: 'p1', type: 'crate', x: 1, y: 0, z: 1 });+ objs.addLocal({ id: 'p2', type: 'crate', x: 2, y: 0, z: 2 });+ net.emit('objectAdd', serverObject('s1'), 's1');+ expect(objs.count).toBe(3);+ expect(objs.dropLocal()).toBe(2);+ expect(objs.count).toBe(1);+ expect(objs.entries.has('s1')).toBe(true);+ expect(scene.getObjectByName('wo:p1')).toBeUndefined();+ });++ it('removes a local entry on request and refuses to touch a server one', () => {+ objs.addLocal({ id: 'p1', type: 'crate', x: 1, y: 0, z: 1 });+ net.emit('objectAdd', serverObject('s1'), 's1');+ expect(objs.removeLocal('p1')).toBe(true);+ expect(objs.removeLocal('s1')).toBe(false);+ expect(objs.removeLocal('nope')).toBe(false);+ expect(objs.entries.has('s1')).toBe(true);+ });++ it('offers only owned entries to delete-own, local ones included', () => {+ objs.addLocal({ id: 'mine', type: 'crate', ownerId: 'me', x: 1, y: 0, z: 1 }, { mine: true });+ objs.addLocal({ id: 'theirs', type: 'crate', ownerId: 'someone', x: 2, y: 0, z: 2 }, { mine: false });+ expect(objs.ownedNodes().map((n) => n.name)).toEqual(['wo:mine']);+ });++ it('keeps a local entry parked at its pose (no server is interpolating it)', () => {+ objs.addLocal({ id: 'p1', type: 'crate', x: 7, y: 0, z: 8 });+ objs.update();+ objs.update();+ const node = scene.getObjectByName('wo:p1');+ expect(node.position.x).toBeCloseTo(7, 5);+ expect(node.position.z).toBeCloseTo(8, 5);+ });+});++describe('uploaded prop registry (P3.3)', () => {+ it('maps a url to a stable, short, catalog-resolvable type', () => {+ const url = 'https://pub-test.r2.dev/u/anon/avatar/8f14e45f.glb';+ const def = registerUploadedProp(url, { name: 'Statue' });+ expect(isUploadType(def.id)).toBe(true);+ expect(def.id.length).toBeLessThanOrEqual(48);+ expect(def.upload).toBe(true);+ expect(def.glb).toBe(url);+ // Same url, same id — a re-upload must not stack duplicate palette entries.+ expect(registerUploadedProp(url).id).toBe(def.id);+ // And it resolves through the shared catalog lookup the ghost/factory use.+ expect(propDef(def.id)).toBe(def);+ });++ it('gives different models different ids', () => {+ const a = registerUploadedProp('https://pub-test.r2.dev/a.glb');+ const b = registerUploadedProp('https://pub-test.r2.dev/b.glb');+ expect(a.id).not.toBe(b.id);+ });++ it('keeps its natural height (fitH null) so an upload is not stretched to a preset', () => {+ expect(registerUploadedProp('https://pub-test.r2.dev/c.glb').fitH).toBeNull();+ });+});