Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

Threesmith

@laaielichterRun by its publisher: served from their own domain, namespace checked by the registry.MCP server · External

three.js for coding agents: pinned API, review, upgrades, release compare, headless runs, 3D models.

Code reviewv0.4.0MITTypeScript
Freeno charge per call

Runs on your machine from its package; the steps are below.

Threesmith: less debugging, more dimension; a real model built from code
From the README · 1 of 5

What it does

  1. Reads
  2. Writes
  3. High impact

At most: moves money, runs code or commands, deletes data, or sends messages for you.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

npmthreesmithv0.4.0

Run

npx -y threesmith

MCP client config

{
  "mcpServers": {
    "threesmith": {
      "command": "npx",
      "args": [
        "-y",
        "threesmith"
      ]
    }
  }
}
README18 min read

Threesmith logo

Threesmith

Less debugging. More dimension.
MCP server, CLI and Claude Code plugin. Works with Claude Code, Codex, Cursor, VS Code, Gemini CLI and any MCP client.

CI npm version Tested on three.js r187 MIT license Install in VS Code Install in Cursor Add to Claude Code GitHub stars

Website · Install in your agent · 3D models · Example · Changelog

Threesmith: less debugging, more dimension; a real model built from code
Explore the interactive model preview, toolkit and real before-and-after demo.

Left: the black canvas of a scene a coding agent wrote. Right: the same scene after the fixes Threesmith listed, a lit crate and a character model
Real run on examples/agent-mistakes: as the agent wrote it (3 review errors, 2 asset paths that 404, a black canvas), and after threesmith fix plus the fixes threesmith doctor listed (100/100, check passes).

three.js ships a release almost every month and removes old APIs. Coding agents learned it from years of code that used THREE.Geometry, outputEncoding, three/examples/js and import paths that no longer exist, and they cannot see the canvas they draw on. Threesmith is the check between the agent and your project: the API of the three version you have installed, a scored review, the assets and decoders the code needs, the page run in headless Chromium with the frame measured object by object, and safe, undoable edits. Everything runs locally; nothing leaves the machine (three_compare fetches another three release from npm, only when you ask for one).

New in 0.5: a library of 1000 models

A grid of library models rendered by three.js: chairs, tables, benches, trees, rocks, crates, houses, cars and props
Library models built by threesmith model build <id> and rendered by three.js. See all 1000.

  • 1000 ready-made base models in seven groups: furniture, street, storage, nature, buildings, vehicles and props. three_model_library searches them in English or Dutch ("oak chair", "eiken stoel").
  • Build by id, change by parameter. three_model_build with kind: "furniture/dining-chair-oak-ladder", or model build <id> --param seatHeight=0.5. Or print the spec and make it your own.
  • Every one checked: a clean .glb that passes the model lint and the check against what it is, at its defaults and at the ends of its parameters. The list as text: LIBRARY.md.

New in 0.4: it reads the frame

A house, a red car and a small robot on grass, each with a numbered box and its share of the frame: 2 House 31%, 3 Car 4.6%, 4 Robot 0.8%
Real output of threesmith look --annotate on three models Threesmith built. The boxes come from the pixels each object really shows.

  • See the frame as numbers. three_look renders with and without each object: how much of the frame it shows, where, cut by the edge, hidden behind what, too dark. Claims such as "car visible >= 5%" pass or fail.
  • Tune it live, keep it in code. three_tune changes a light, a colour or the camera in the running page, then writes each value where your code sets it, as one undoable step.
  • Animation, TSL and motion. three_animation says why a clip does not play and finds feet that sink into the floor; three_tsl catches uv().x * 8 and if on a node; three_capture records frames on a virtual clock.
  • Prove the whole change. three_impact follows the diff to the pages and tests that run it; in CI the receipt says what changed between two three releases and why.
  • And: three_model_code (the module or R3F component for a .glb), three_dream (learns from past sessions on your machine), three_session with cdp (your own Chrome, the real GPU). See the changelog.

Without and with

Your agent...On its ownWith Threesmith
writes three.jsGeometry, outputEncoding, BoxBufferGeometry, examples/js: old habits104 rules pinned to the installed release flag each line with the fix; fix does the 23 pure renames
calls an APIguesses a name or an import path from memorythree_api reads node_modules/three: signature, deprecation and the right three/addons/... path
writes a shader#include <encodings_fragment>, gl_FragColor with GLSL3, a .replace() on a chunk that is goneincludes checked against the installed ShaderChunk, patches that silently do nothing found, renames fixed
loads a model/models/Car.glb that is a 404 on Linux, Draco without a decoderthree_assets resolves every path like the server does; three_decoders wires the decoders from the installed three
says "it works"never opened the pagethree_check opens it headless: errors with causes, blank frames, a screenshot, baselines
gets a black screenguesses: more light? move the camera?three_inspect reads the live scene and says why each object is not visible
says "it looks right"cannot see the picture it madethree_look measures each object's share of the frame, place, cut and hidden parts; claims pass or fail
tweaks the lookguesses a number, edits, reloads, guesses againthree_tune changes it live in the running page, then writes the value where the code sets it
animates a modela T-pose, a clip that never plays, feet in the floorthree_animation says why, poses the model at any time and sweeps a clip for the lowest point
writes TSLuv().x * 8 and if on a node, as if it were GLSLthree_tsl finds them, and shows the node graph and the shader three generated in the page
fixes a bugcannot show it was there, or that it is gonethree_play runs steps and judges claims frame by frame; three_scenario keeps it as a regression test
makes it fastchanges things and hopesthree_perf counts draw calls, triangles and programs against a budget and the last run; three_leaks names what is never disposed
upgrades threemerges the "bump three" PR blindthree_compare runs your page on both releases and says what changed (console, scene, draw calls, light per object), each change with the migration note that explains it
ships itbuilds once, deploys, sees a 404three_build builds, finds two copies of three, missing assets and sub-path URLs, then opens the built page
needs a 3D modelneeds Blender or a placeholder cubethree_model_build makes a clean .glb from one of 110 kinds or 1000 library models, then shows it as text views and lints it
finishes a changechecks the file it touched, not the pages that run itthree_impact names what the change touches, which pages and tests run it, and the checks that prove it
does not know the projectreads twenty filesthree_scan and three_doctor give the map and the order to fix things in one call

A car, an airship, a wizard tower, an excavator, a treasure chest, a dragon, a lighthouse, a mech, a longship, a stone golem, a hot-air balloon and a castle, built by Threesmith and rendered by three.js
3D models from code, no Blender: 110 ready-made kinds and a library of 1000 base models (see LIBRARY.md), from cars and airships to swords, teapots and golems, rendered here by three.js itself. See all

Quickstart

1. See what is wrong. Nothing to install but the package:

sh
npx -y threesmith doctor          # what is wrong, grouped by cause, most urgent first, with next steps
npx -y threesmith review          # score 0-100, `file:line severity [rule] message Fix: ...`
npx -y threesmith check .         # open the page headless, errors and a screenshot

2. Give it to your agent. In Claude Code:

text
/plugin marketplace add laaielichter/Threesmith
/plugin install threesmith@threesmith

3. Ask for something. "Find out why the scene is black and fix it." Every three.js file Claude edits is reviewed right after the edit, its errors and broken asset paths go straight back to Claude, and the session starts with a brief of the project.

Install in your agent

ClientHow
Claude Code/plugin install threesmith@threesmith after /plugin marketplace add laaielichter/Threesmith (MCP server, hooks incl. protected paths, 12 skills, 3 subagents, settings for tool sets and read-only)
Claude Code, MCP onlyclaude mcp add threesmith -- npx -y threesmith mcp
Codexcodex mcp add threesmith -- npx -y threesmith mcp --tier premium
Cursor, VS Codethe buttons at the top
Gemini CLIgemini extensions install https://github.com/laaielichter/Threesmith
Cline and othersllms-install.md, or { "mcpServers": { "threesmith": { "command": "npx", "args": ["-y", "threesmith", "mcp"] } } }
DockerDockerfile

Run the agent from the project folder, or pass --project <path>. Needs Node.js 22.12+ and three installed in the project. The browser tools need playwright-core and a Chromium (npx playwright-core install chromium); threesmith doctor --env shows what is missing.

Clients without the plugin still get its workflows: the server offers the prompts threesmith-doctor (start with the doctor, fix in its order) and threesmith-<skill> for each skill (debug, review, perf, ship, model, upgrade, webgpu, learn, dream, tune), and every skill as a resource (threesmith://skills/<name>, Markdown).

Made for agents: cheap calls, exact answers

  • Two profiles. --tier cheap (the default) gives short, capped output and numbered step-by-step instructions, so small models follow the right order; --tier premium gives full detail for large models.
  • Tool sets. --tools core loads 18 tools; add run, live, build, model when you need them, or name single tools. A tool list the client pays for in every turn stays small. The server instructions only ever name tools that are loaded.
  • Lean mode. --lean offers two tools instead of 45: three runs any tool by name ({"tool": "review", "args": {"only_new": true}}) and three_help gives a tool's parameters when they are needed. Same tools, same results, same read-only refusals; the tool list drops from about 22,000 to about 2,600 tokens (estimated at 4 characters per token; threesmith mcp --stats prints the numbers for your options).
  • Fix loops that cost less. three_review with only_new: true shows new findings in full, the ones the agent already saw as one short line, and how many are fixed. code + file reviews code before it is saved.
  • Structured results. Review, check and doctor return structuredContent with an output schema next to the text.
  • One line per finding. file:line severity [rule] message Fix: ..., the same in the CLI (--compact), MCP and hooks.
  • Safe writes. Every write (fix, model build, scenario save) is one journal entry that three_undo takes back; a file changed by hand since is left alone. "protect" in threesmith.json (or THREESMITH_PROTECT) names folders no write may touch. --read-only leaves out the tools that always write and refuses write options.
  • It learns, locally. A finding marked as a false alarm with three_feedback is hidden from then on; lessons kept with three_lesson_add come back under the same error. three_dream looks back at past sessions and proposes project hints and lesson changes, each with its evidence. Only hashes, counters and scrubbed text, on this machine.

The 45 tools

core · read files, answer, fix

ToolWhat it does
three_doctorStart here: what is wrong, grouped by cause, most urgent first, with numbered next steps
three_scanThe project map: bundler, framework, three versions, pages, import maps, renderer settings, assets
three_apiThe exact API in the installed three: signature, deprecation, import path, did-you-mean
three_searchClasses, constants and members by part of a name
three_reviewScore 0-100 from 104 rules pinned to the installed release; only_new for fix loops, code for unsaved code
three_typesThe project's own tsc --noEmit, each three.js type error answered from the installed release
three_fixThe renames that mean exactly the same, dry run first, undoable
three_migrateUpgrade plan per release (r120 to r188) with file:line, what will look different, a WebGPU readiness report and undoable rewrites
three_impactWhat a change touches in the scene, the pages and tests that run it through the import graph, and the checks that prove it
three_tslTSL: Fn, uniforms and node slots with their mistakes (uv().x * 8, if on a node); the node graph and generated shader from the page
three_explainCause and fix of a console, build or test message (41 kinds)
three_lessons103 lessons from real three.js and R3F projects by error, words, rule or topic
three_lesson_addKeep a lesson learned here, scrubbed of names, paths and code
three_rulesEvery review rule with its category, release gating and fix
three_feedbackMark a finding as a false alarm (hidden from then on) or right
three_dreamLearns from past sessions on this machine: project hints, draft lessons, noisy rules, each with its evidence; applied only when you say so
three_undoUndo the last Threesmith writes, newest first
three_versionWhich three release is installed

run · open the page headless

ToolWhat it does
three_checkThe page in headless Chromium: errors with causes, shader errors at your line, failed requests, blank frames, screenshot, baselines
three_inspectThe live scene graph, draw calls, GPU memory, and why each object is not visible
three_lookThe frame as numbers per object: share, place, cut, hidden by what, too dark; claims, and an annotated screenshot
three_captureFrames 1/fps apart on a virtual clock: a contact sheet, still scenes and pops, an .mp4 with ffmpeg
three_playSteps (click, press, drag, frames, until), watched values and claims judged frame by frame; seed makes runs repeatable
three_scenarioKeep a passing play run as a regression test; ci runs them and writes JUnit
three_perfDraw calls, triangles, programs and frame times against a budget and the last run, the cost per object, instancing candidates
three_deviceThe page as on a phone, tablet or low-end laptop: texture limits, memory budget, pixel ratio, context loss
three_leaksRepeat a cycle and report what grows, down to GPU resources never disposed
three_compareThe same page on two three releases, each change with the migration note that explains it; bisect finds the release

live · a page kept running

ToolWhat it does
three_sessionA page kept open between calls, headless or your own Chrome (cdp) with the real GPU
three_pageDrive it without reloading: eval, steps, screenshot, inspect, look, textures (colour-space and size mistakes), diff
three_tuneChange a value live (light, colour, camera, exposure, material), then save it where the code sets it, undoable
three_animationClips of a .glb; live mixers and why a clip does not play; play, pose and sweep for feet in the floor

build · assets and the deployed output

ToolWhat it does
three_assetsEvery asset path resolved like the dev server and the host: missing files, wrong capitals, decoders, huge textures
three_decodersDraco, KTX2 and meshopt wired with the decoder files of the installed three, undoable
three_gltfKhronos validation, and gltf-transform optimisation with before-and-after numbers (optional packages)
three_buildRun the build, check the output (copies of three, assets, sub-path URLs) and open the built page

model · 3D models without Blender

ToolWhat it does
three_model_briefOne page before you build a model: nearest kind, parts, real size, rules, order of tools
three_model_identifyWhat a thing is (English or Dutch): parts, pivots, typical size, usual mistakes
three_model_specThe JSON model spec, an example, and the 110 ready-made kinds
three_model_library1000 ready-made base models (furniture, street, storage, nature, buildings, vehicles, props), searchable in English or Dutch, each with parameters
three_model_buildA clean, deterministic .glb from a kind, a library id or a spec, linted
three_model_viewA .glb as text: front, side and top views, parts with sizes, parts that do not touch
three_model_lintScore a .glb for the web, and against what it should be
three_model_inspectWhat is in a .glb and which loaders and decoders it needs, with the setup code
three_model_codeThe code that loads a .glb: an ES module or a React Three Fiber component with its parts, materials and animations

Every tool explains itself in full to the agent (its MCP description); threesmith <command> --help does the same in the shell.

CLI: threesmith doctor | scan | api | search | review | types | fix | impact | migrate | tsl | rules | dream | undo | lessons | assets | decoders | gltf | check | inspect | look | capture | play | scenario | perf | device | leaks | compare | build | model <inspect|needs|code|view|lint|identify|brief|spec|kinds|recipes|library|build> | explain | ci | hook | mcp. threesmith <command> --help lists the options.

The review

Rules are pinned to the installed release: a removed API is an error on a release that removed it and a warning on an older one; a rule whose replacement does not exist yet in your release stays quiet. The categories:

  • api (28): removed or renamed APIs and their releases, symbols that do not exist in the installed version, TSL names imported from the wrong entry, three/src imports, deprecations read from three's own source.
  • correctness (50): code that renders nothing or the wrong thing — no lights, shadows off, renderer never attached, render(camera, scene), scene.add(gltf), a mixer never updated, getElapsedTime() and getDelta() on one clock, instance and attribute updates without needsUpdate, raycasting with window instead of canvas coordinates, controls bound to document, decoders created but never attached or assigned instead of called, a KTX2 transcoder from a CDN of another three release; shaders: #include chunks that do not exist in the installed release, onBeforeCompile patches that do nothing, GLSL3 mistakes, redeclared built-ins, uniforms without { value }, GLSL materials under WebGPU and node materials under WebGL; React Three Fiber: state set in useFrame, objects made in render.
  • performance (10): allocations and heavy objects per frame, scene traversal per frame, uncapped pixel ratio, huge shadow maps, many meshes that should be instanced.
  • lifecycle (4): no resize handling, removed objects never disposed, dispose() without super.dispose(), a page that renders on demand and never draws again after a lost WebGL context.
  • color (8): colour textures without colorSpace, colour management off, EffectComposer without OutputPass or with double gamma, envMapIntensity that has no effect.

An upgrade changes the look on purpose, too. three_migrate lists those changes for the releases you cross, measured on your code: colour management (r152), physical light units with starting values (r155), light decay 2 (r147), tone mapping lost in post-processing without an OutputPass (r155), brighter rough PBR materials with their roughness (r181), fill lights that reflect, with or without scene.environment (r188), and more. Take a three_check baseline before and compare after: these differences are expected.

It reads text, not types (three_types adds the type checker for TypeScript). The rules are tested against three's own examples and addons for false alarms. If a finding is wrong: three_feedback, --disable <rule>, or // threesmith-disable-next-line <rule> (also -disable-line, -disable-file); an issue with the snippet is the most useful bug report.

GitHub Action

yaml
- uses: laaielichter/Threesmith@main
  with:
    min-score: 85
    check: dist          # folder with the built index.html; omit to skip the browser
    baseline: home       # screenshot baseline in .threesmith/baselines/home.png
    comment: true        # post the receipt on the pull request
    compare: previous    # on a three bump: the page on both releases, each change with its migration note
    impact: origin/main  # what the change touches and the checks that prove it (checkout with fetch-depth: 0)

The receipt (review, check, scenarios) appears in the job summary and optionally as a PR comment. Locally or in any CI: threesmith ci --check dist --compare previous --impact origin/main --junit junit.xml --sarif threesmith.sarif. Commit .threesmith/baselines/ and .threesmith/scenarios/; the rest of .threesmith/ is local state and ignored by its own .gitignore.

Limits

  • WebGL 2 in headless Chromium works in GitHub Actions (SwiftShader software rendering). WebGPU is best effort (--webgpu), depending on the runner having an adapter (on Linux: libvulkan and a Vulkan or SwiftShader driver). check names the backend the page actually drew with (WebGPU, WebGL 2, or WebGL 2 (WebGPU fallback) with a warning) and the adapter, so a pass on the WebGL 2 fallback is never taken for a WebGPU pass. doctor --env says whether this machine has a WebGPU adapter.
  • Frame times come from software rendering: compare them before and after on the same machine. Draw calls, triangles, programs and resource counts are exact.
  • Baselines should be made in the environment that checks them (CI), with the default tolerance.
  • The API lookup parses the JSDoc in three/src; it is tested on r187, older releases give thinner answers.
  • The review is heuristic; the asset check follows paths written as text, not paths built at run time.
  • Optional packages for three_gltf, loaded only when used (the answer says what to install when one is missing): gltf-validator (Khronos glTF-Validator, Apache-2.0) for validate; @gltf-transform/core, extensions and functions (MIT) for optimize, with draco3dgltf (Google Draco, Apache-2.0) for Draco and meshoptimizer (MIT) for meshopt and simplification. Threesmith does not bundle them; their licences apply when you install them. optimize leaves textures as they are (KTX2 needs KTX-Software's toktx, WebP and resizing need sharp).

Benchmarks

bench/ has tasks and a deterministic grader for comparing an agent with and without Threesmith. No results are published yet; see bench/README.md for the method.

Sister tools

From the same author, local and open source: ReversePort (reverse engineer and port games between engines), Godotwright (check the Godot code your agent writes), Stashpad (agent memory you can trust) and agentdisk (clean up after agents).

Support the project

If Threesmith is useful to you, a ⭐ on GitHub helps other people find it.

Thanks to everyone who has contributed: @chiragjangiir, @timmiballz22 and @IG-ABHINAV.

Develop

sh
npm ci
npm run check     # typecheck, tests (incl. headless Chromium), build

Try the Claude Code plugin from this checkout, before a release: npm run build && npm run plugin:local, then start Claude Code with the claude --plugin-dir ... line it prints.

See AGENTS.md and CONTRIBUTING.md. Threesmith follows the design of its sister project for Godot, Godotwright. MIT licensed, made by laaielichter.

Similar modules

Browse Code review