spawn-mcp
spawn-mcp is a local MCP server that lets an AI coding agent build, push, inspect, and play Spawn games end-to-end across both engine lanes (pre-6.0 document worlds and 6.0+ git-repo worlds).
Project setup & auth: bootstrap keys into durable tokens, create/list games, set variants, scaffold or clone projects, fetch world docs and skills.
Build & push: validate projects, push changes live (PUT for document worlds; commit+git push for 6.0 worlds), pull/merge upstream work, check status and engine version.
Live world inspection: run read-only JS in a live room, fetch logs, list active rooms — after booting a room with a player body or browser.
Play as a body: join/leave/status a headless player session, move, look, query players/inputs, witness, take screenshots, run play scripts.
Play via browser: open headed Chromium on the game, screenshot, send keyboard/mouse input, reload, read console output, evaluate top-frame page JS.
Asset management: sync/scan a cross-project asset bank, search for previously used assets, add notes/verdicts, preview CDN assets.
Local auditing: scan exported functions for auditability, run numeric invariant checks on pure functions, and check which UI surfaces exist.
Multi-agent & team mode: delegate work to Savi's sub-agents, monitor Savi's fleet, and use team-mode tools for shared ledgers, claims, briefs, and serialized pushes.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@spawn-mcp Push my latest changes and take a screenshot of the live game."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
spawn-mcp
Local Model Context Protocol server for the Spawn Games agent API — on both of Spawn's engines: pre-6.0 worlds, which are a spec document, and 6.0+ worlds, which are a git repository. It also carries two ways to be in the game: a body in the world as a real player (no browser), and a Playwright Chromium play client so the LLM can open the live game, screenshot it, drive input, and debug without asking you to look.
New here? Read GETTING-STARTED.md instead: a plain-language walkthrough from install to your first game, no MCP experience assumed. The rest of this file is the technical reference.
Install
git clone https://github.com/wfbcargo/wfbcargo_spawn_mcp.git
cd wfbcargo_spawn_mcp
npm install
npm run build
npm run setup # one-time: downloads Chromium (~150MB) for the play clientnpm run setup is separate on purpose, so npm install never downloads a browser behind your back. The API tools work fine without it; only the spawn_play_* tools need Chromium. Equivalent: npx playwright install chromium.
What else you need
For | Needed when | |
Node 18+ | everything | always |
git on |
| the world is on engine 6.0+ — its code is a git repo |
Chromium ( |
| you want to see the world |
| you want a body in the world (the client's session shell is spawned as |
None of the last three are needed for a pre-6.0 world you only push to. Nothing here is bundled: each tool says what is missing, and why, if you reach for it without.
Related MCP server: mcp-devtools
Cursor config
{
"mcpServers": {
"spawn": {
"command": "node",
"args": ["/absolute/path/to/wfbcargo_spawn_mcp/dist/index.js"],
"env": {
"SPAWN_PROJECT_DIR": "/absolute/path/to/your-spawn-game"
}
}
}
}See mcp.example.json. On Windows use forward slashes (C:/Users/you/...).
Env var | Default | Purpose |
| process cwd | Game project holding |
|
|
|
| unset |
|
| shared | Ledger location, for agents that are not worktrees of one repo |
|
| Cross-project asset catalog directory |
|
| Abort API calls that hang |
|
| Abort a git command that hangs (6.0 worlds) |
| pinned in | Dev override only; must be |
| Playwright default | Override where Chromium is installed |
Loop
edit → spawn_validate → spawn_push (PUT on pre-6.0; commit + git push on 6.0+)
→ spawn_client_join (once) a body in the world: boots the room, no browser
→ spawn_play_open (once) your eyes: headed Chromium
→ spawn_play_screenshot / spawn_play_input
→ spawn_logs / spawn_play_console / spawn_exec if broken
→ fix → push → screenshot againspawn_client_join and spawn_play_open answer different questions. A body makes the room live
so spawn_exec / spawn_logs / spawn_rooms read anything at all, and lets you play the game —
walk, look, press what the world declares. The browser is the only thing that tells you whether
the frame is any good. Join to query, look to judge.
Spawn is WebGPU/canvas, so accessibility snapshots won't see the world. Screenshots are the ground truth.
Play client (a body in the world)
Tool | Purpose |
| Stand your own body in the world as a real player — boots the room, no browser, no GPU |
| Which sessions are standing, and how much ttl is left |
| Despawn the body; the room folds when the last one goes |
| Any other client verb — |
A room boots for a player and never for a door: spawn_exec, spawn_logs and spawn_rooms
read nothing until a body stands. Before this the only way to boot one was spawn_play_open, which
needs a headed Chromium with a working WebGPU adapter. A join needs neither and takes a few seconds.
Sessions are detached and outlive the tool call, so join once and query freely. They self-expire
at ttl (default 600s) — that is what stops a forgotten body standing in someone's world — so
raise it for long work and call spawn_client_leave when done.
Requires Bun. The client's session shell is literally spawned as bun, so
Node alone gets as far as shell process failed to spawn (no pid). The client package itself needs
no install: bun x @spawnco/client is the fallback, and a global bun add -g @spawnco/client is
used when present.
Env var | Purpose |
| Path to the Bun binary, when it is somewhere unusual |
| Path to |
| Abort a client command that hangs (default |
Known upstream bug:
spawn client rundoes not work on Windows (#6). The session shell validatesscriptPathas POSIX-absolute, so aC:\…path is refused — and-efails identically, because it writes the source to a temp file and passes that path.spawn_clientdetects this and says so rather than reporting it as your script's fault. Every other verb works on Windows.Running the client under Node on Windows fails earlier still, for a related path bug (#5) — which is part of why these tools require Bun. Both issues carry the cause and a suggested patch; neither is fixable from here.
Play browser rules
Three things that cost real debugging time if you learn them the hard way:
Headed only. Headless Chromium gets no WebGPU adapter (
requestAdapter()returnsnull, SwiftShader flags included), so Spawn refuses to start and every screenshot is its "One graphics fix away" gate rather than your game.spawn_play_openprobes this and reportswebgpu: "ok" | "unavailable"with an explanation. LeaveSPAWN_PLAY_HEADEDunset, and only useheaded: falseto reach a non-Spawn page.spawn_play_evalcannot touch your game UI.ui.jsrenders into a cross-origin sandboxed iframe, sodocument.querySelectorin the top frame finds none of your buttons and reaching into the frame throws. Click UI withspawn_play_inputcoordinates: screenshot, read the button's position off the image, click it. (spawn_play_evalalso takes an expression, not a function body: wrap statements in an IIFE.)spawn_execneeds a live room and cannot read your database. Rooms exist only while a player is connected, so callspawn_play_openfirst or you get a 5xx (the error says so). The endpoint is read-only server-side and refusesapi.sqloutright, evenSELECT, so there is no way to query the game's SQLite from this server. Verify persistence through replicated state instead.
Two engines, two lanes
Spawn worlds come in two eras, and they are not two versions of one protocol — they are two different write paths. Every tool that reads or writes a world detects which one it is on and routes itself, so the tool names below are the same on both.
pre-6.0 — the document lane | 6.0+ — the git lane | |
the world is | a compiled | a git repository |
you save with |
|
|
the tree |
|
|
| scaffold the project, pull the spec | clone the repo into |
| compile + PUT | commit + push, and report the rooms' verdicts |
| pull a spec, sync scripts, |
|
| server-side schema check | local tree pre-flight — there is no server validator |
| base version, receipts, head vs published | branch, HEAD, ahead/behind, uncommitted |
| — | identical on both lanes |
On a 6.0 world the document PUT does not degrade or fall back: it answers 409 world_is_git
before it reads the body. That is what a pre-1.9 spawn_push was hitting.
engineVersion
Every lane-sensitive tool takes an optional engineVersion. Omit it and the engine is read from
the API and cached. Pass it — a semver (6.0.0, 5.4) or an era name (6.0, document) — and it
is checked against the world's real pin; a disagreement fails the call without writing
anything.
engineVersion omitted → detect from the API, cache it
engineVersion "6.0" → git lane, and verify the world really is on it
engineVersion "document" → document lane, same verification
mismatch → error, nothing writtenIt is an assertion, not an override, because the failure it prevents is a document-lane push aimed
at a git world — or a game.json scaffolded over a live clone. spawn_exec, spawn_logs and
spawn_rooms do not take it: those endpoints are identical on both lanes.
The API answers the engine question in three places, and all three are used —
GET /api/agent/v1/me and /api/agent/v1/worlds carry engine: { semver, era, git } per world,
and GET /api/sdk/v1/{id}/agent/docs carries engineVersion + era.
Working a 6.0 world
spawn_initclones. The agent token is the git password, passed per-command and never written to.git/config..envis hidden through.git/info/exclude, and this server's own files (docs, caches, screenshots) live under.git/spawn-mcp/— never in the tree, because a 6.0 world tracks.spawn/itself.Clones are shallow (
depth: 20,depth: 0for the full history). A live world'smainran to 18,500 objects and 80 MB and would not finish fetching; its tip is a few hundred objects and a few seconds. Editing, committing and pushing all work from a shallow clone.git log --notes=spawnneedsdepth: 0.spawn_pushneeds amessage, and it is not a log line. Its first line lands in the creator's chat and their changes list under your name — one plain sentence about what changed for the player.bodycarries the how, and is the only channel to Savi an agent has.Read
AGENTS.mdat the clone root; it is that world's own grammar. Then read.git/spawn-mcp/tome-api.mdin full before writing code — every shape in it is exact, and a push in another shape is refused naming the row, the line and the field.The push is the validator, and it is live. There is no dev/live split to absorb a broken tree.
spawn_validateruns a local pre-flight first (scripts ESM-parse, scene headers and cell keys agree, image bytes match their extension, no binaries underassets/), andspawn_pushruns it again over the changed files and refuses on failure — but clean locally does not mean the push will land.Worlds move fast. Savi,
execand other clones commit to the same repo, so a non-fast-forward rejection is ordinary. Pull withspawn_latest, then push again.
First connection
Spawn gear → Build with a coding agent → fresh
sbk_…key (~5 min, once).spawn_bootstrap→ token lands in project.env(masked in tool output). Use a distinctnameper agent.spawn_me, thenspawn_create_game(or list +spawn_set_variant).spawn_init— scaffolds a pre-6.0 project, or clones a 6.0 world's repo. Then read the guide and the Tome API reference it saved (.spawn/on the document lane,.git/spawn-mcp/on the git lane; a 6.0 clone also carriesAGENTS.mdat its root).spawn_play_open: agent joins as its own browser client (creator can still keep their tab open).
Multi-agent
Same creator account needs no crew setup. Each agent gets its own key (settings → build with your own agent) and can push the same game concurrently, the same model Savi's background builders use.
Publish in the Spawn UI before unleashing agents. Published (
mode=live) stays stable for players while agents mutate dev head. There is no agent publish API; agents only read live viaspawn_latest/spawn_status.One project dir (or worktree) per agent. A shared
SPAWN_PROJECT_DIRwill thrashgame.json, scripts, and.spawn/base-version. SameSPAWN_VARIANT_IDfor everyone. Credentials resolve from the project's own.envfirst, so a git worktree each (.envand.spawn/are untracked) is what makes them separate connections. A key in the MCP config env is only a fallback for projects that carry none.Start with 2 to 3 agents, partition script/area ownership, treat 409
version_conflictas normal:spawn_latest→ merge.theirs→ push.Label bootstraps (
terrain-agent, …) and callspawn_saviafter meaningful pushes — withtaskto hand Savi a slice outright, since it fans work out across its own sub-agents (up to 8) with no key, worktree, or GPU cost on your side. Cheapest capacity available, andspawn_savi_statustells you how much of it is idle; see Delegating to Savi.
spawn_status # head vs published, local base, .theirs, credential source
spawn_latest # pull head (conflict recovery)
spawn_latest mode=live # inspect published (no local write)
spawn_latest mode=live applyLocal=true # reset local to published snapshotDelegating to Savi
spawn_savi writes into the creator's studio chat, and Savi acts on what it reads there. Pass task and it can pick the work up and fan it out across its own sub-agents — up to 8, none of which cost you a bootstrap key, a worktree, a checkout, or a headed Chromium holding a GPU context. Compared to standing up another sbk_ agent it is free capacity, and it is the widest parallelism reachable from this server.
spawn_savi
message: "Pushed v12: parkour course in the north canyon."
task: "Give the canyon a night pass — lighting, ambient audio, and whatever set dressing sells it."
subAgents: 4 # optional; omit to let Savi split it as far as it splits
keepOff: ["scripts/player/**", "world.terrain"]Two rules make it work:
Delegate broad, not prescriptive. "Give the canyon a night pass" splits across sub-agents; a numbered list of edits does not. The decomposition is the part Savi's fan-out is good at, so a narrow task spends 8 agents on a job for one.
Never wait on it. The channel is one-way — no reply, no acknowledgement, no completion event. Declare your boundary with
keepOffinstead of asking for one, keep building your own area, and notice the work arriving as a head-version bump you did not cause (spawn_status), thenspawn_latestto take it.
Seeing the fleet
spawn_savi_status answers the question that makes the rest of this actionable: how many of the 8 lanes are burning right now.
spawn_savi_status
→ Savi's fleet: 4/8 wisps burning — 4 lanes free
workingOn: ["Sent wisp to rebuild the nine set pieces out of real geometry", …]
advice: "4 of 8 lanes are idle. That is 4 sub-agents you are not using…"The wisps are the little flames along the top of the play page — one per sub-agent, eight slots. No endpoint reports them, so this reads the play client you already have open (spawn_play_open): the studio broadcasts its state to that page, and the server keeps the latest broadcast plus a direct count of the flames on screen. Two readings of the same thing, so the count survives either one changing shape.
Use it in both directions. Before a handoff it sizes the slice — eight idle lanes is a bigger ask than one. After one, a new wisp lighting up is uptake, which is as close to an acknowledgement as this channel gets. It still reports no author: a burning wisp means Savi is busy and on what, never that it is busy on your task.
Idle lanes are the finding worth acting on. They are parallelism nobody had to key, check out, or supervise, and an agent building serially past four of them is choosing the slow route to the same place.
Team mode
Opt-in bookkeeping for the above. Set SPAWN_TEAM=1 in the first session's MCP config and run spawn_team_init in each agent's worktree. That writes a roster into the repo's shared .git/spawn-team/, which every worktree finds with no configuration and nobody can commit by accident, so later sessions pick the mode up on their own and need no extra config.
Tool | Purpose |
| Create the ledger if absent, register this worktree under a label |
| Every agent, how far behind head each rail is, who has unresolved receipts, open claims, recent pushes |
| Take or give up ownership of |
| Stand up a new agent's worktree: variant, own token, scaffold, roster entry |
| Ready-to-paste opening prompt for one builder, or the whole team |
Four behaviours change while it is on:
One session drives one agent.
spawn_push,spawn_latest applyLocal,spawn_revoke, andspawn_play_openlatch to the first project directory they see and refuse a second one. Identity, the version rail, and the single Chromium session all belong to one directory, so driving two from one session pushes one agent's work onto the other's rail and points its screenshots at the wrong client. Read-only tools stay free to inspect any worktree, andspawn_bootstrap/spawn_initstay free so a new worktree can be provisioned from anywhere.A globally configured
SPAWN_PROJECT_DIRis refused, with an explanation, rather than used. It would resolve every session to one.env, so every agent would push as the same connection while appearing to work in its own worktree. An explicitprojectDirargument is never refused.Pushes serialise and rebase.
spawn_pushtakes a ledger-wide lock, and from inside it "behind head" can only mean a teammate landed a push since your last sync, so it pulls first. A clean rebase costs you nothing and the 409 never happens. A rebase that collides stops the push with your work intact and the conflicts named, because that needs a decision no server should make.force: trueskips the rebase, since it is a deliberate whole-replace.Claims warn on push. Changes are diffed against the base rails, so what gets checked is exactly your own edits, and touching another agent's claim is reported alongside the successful push. Advisory by design: a stale claim must never become a hostage situation.
Claim game.json key paths (entities.player, world.terrain) and script globs (scripts/hud/**). Everything except scripts/** is claimed by key path, because spawn_init puts the whole spec in game.json; a world/foo.json-style pattern is rejected rather than silently never matching.
Solo, none of this exists: the tool list stays at 35, nothing latches, and pushes take no lock.
Adding an agent is two calls plus one command you run yourself:
spawn_team_add label="terrain" worktreePath="../game-terrain" branch="terrain"
→ returns: git worktree add -b terrain ../game-terrain # run it; this server never executes git
spawn_team_add label="terrain" worktreePath="../game-terrain" bootstrapKey="sbk_…"
→ writes its variant, trades the key for its OWN token, scaffolds, registers it
spawn_team_brief label="terrain"
→ the opening prompt to paste into a session started in that worktreeMint the sbk_ key just before the second call: they are single-use and expire in about five minutes. spawn_team_brief with no label briefs the whole team at once.
The fuller design, including what is deliberately not built and why, is in TEAM-MODE.md.
What a pull merges
spawn_latest three-way merges against the last-seen upstream, tracked in .spawn/base-scripts.json and .spawn/base-game.json. Disjoint edits compose; only genuine overlap conflicts.
Content | Merged | Conflict lands as |
| per file, by content |
|
| per key path |
|
| no | nothing, see below |
A conflict always keeps your value and names what collided (a path, or a dotted key like entities.player.hp). spawn_push refuses to run until every receipt is resolved and deleted.
world/*.json overlays are the gap. They are deep-merged onto game.json at compile time and never reconciled, so a stale overlay re-applies over freshly pulled content and pushes back up. Disjoint overlays are fine; two agents writing the same key are not, and nothing will warn you.
Projects created before this rail existed have no .spawn/base-game.json. Their first pull keeps the old whole-replace behaviour, copies the previous game.json to .spawn/replaced-game.json if that drops anything, and establishes the rail. spawn_status reports hasSpecRail.
Tools
API
Tool | Purpose |
| Trade |
| Whoami |
| Pick a game |
| Whole workflow + what this project already has (no credentials needed) |
| Scaffold project + docs (pre-6.0), or clone the world's repo (6.0+) |
| Guide, tome API, skills index — and the world's engine era + semver |
| Browse the skill menu / load a set of skills by id |
| Pull head / published / version / updateSlug (+ script sync); |
| Schema check (pre-6.0) or local tree pre-flight (6.0+) / live push — PUT or commit+push |
| Live world inspect (needs a live room; no SQL) |
| Context for Savi, or hand it a task to fan out across its sub-agents |
| How many of Savi's 8 sub-agents are running, and on what (needs a play session) |
| Disconnect / local + engine + remote health (versions, or git divergence) |
Asset bank
Tool | Purpose |
| Pull every game on your account and harvest its live spec (slow; the authoritative fill) |
| Harvest |
| Find an asset you already used, before inventing a new name ( |
| Name, categorize, describe, mark good/bad, point a bad name at its replacement |
| Check existence on the CDN; render images inline so the model can see them |
Local audit
Tool | Purpose |
| List exported functions and say which are auditable without a live room |
| Sweep pure functions across declared input domains and check invariants |
| Count which of the 21 Interface In Game UI surfaces the project has |
Play browser
Tool | Purpose |
| Launch Chromium on the play URL (headed; screenshot by default) |
| See the world after a push (jpeg by default; |
| Keys/mouse (WASD, click, drag, type); the only way to click game UI |
| Hard reload if the client didn't reshape |
| Page console / pageerror |
| Top-frame page JS only; cannot see or click game UI |
| Session health (incl. a one-line fleet read) / teardown |
Also: spawn_session prompt with the full loop (including multi-agent). spawn_getting_started returns the same text as a tool call, because most clients never surface prompts to the model.
Social baseline and drop-in games
Spawn owns a social layer that games do not rebuild: text and voice chat, parties of friends, and
doors that carry a player (and the party they came with) from one world into another. A game can
still break it — a chat box of its own, a HUD under the platform's rail, a team shuffle that splits a
party, an arrival hook that drops someone who came through a portal into the middle of a running
match. So every game is held to a social baseline, and it ships in the server rather than in a
skill: it is a requirement on every build, and spawn_getting_started is the one text every agent in
every client actually reads.
The baseline | On 6.0 | On pre-6.0 |
Chat is Spawn's; keep UI off the right-edge rail | no chat of your own; | same |
Parties arrive together and stay together |
| no party field in the docs |
A door out, and arrival from any door |
|
|
Invites are links |
|
|
Leaving never stalls a round or loses progress |
|
|
Two parts of it are deliberately stated as unknown rather than written down. The 6.0 chat skill,
which describes scripts/chat.js and the voice keys, is not served by the skills endpoint, so the
guide tells agents not to write that file from a guess. And no fetched doc says how a party follows
a member through a door, so the guide asks games to receive parties together rather than claiming a
mechanism. The reasoning is in .wiki/decisions/0002.
Drop-in games are the optional half: the shape that suits the weekly Spawn Jam
and most open briefs — playable within three seconds, one verb in one small space, safe to leave and
come back to, solo-viable but better with a party, cheap to run. spawn_getting_started nudges
towards it only when the creator has not fixed a design. The depth lives in a Claude skill,
.claude/skills/drop-in-games/: six tests a concept must
pass, eight archetypes (round-based party, course, king of the hill, social deduction, create and vote,
idle garden, hangout, co-op survival) with the Roblox, Fortnite Creative, Rec Room, .io and Jackbox
games that proved them, a design order, the 6.0 moves that make each cheap, jam-specific advice, and a
review checklist. The sourced research behind it sits beside it in reference/research.md. It is a
lens, not a rule: a creator with a vision gets their game.
Art and UI
The most common quality gap in an agent build is visual, and it has two causes worth knowing.
The engine's craft lives in skills, not in the API reference. There are ~60 of them, and the visual cluster (drawn-art, game-ui, looks, custom-materials, fx, 3d-sprites, world-composition, match-a-reference) is where textures, HUDs, colour grade, and shader surfaces are actually explained. An agent that skips them writes untextured primitives and default DOM.
Rather than rely on a prompt telling the model to go and read them, the endpoints are shaped to pull skills in: spawn_skill takes ids: [...] so the natural call carries the whole set (mechanic and look), spawn_push and spawn_play_screenshot say in their own descriptions that a plain-looking result is a missing skill rather than a missing feature, and a wrong id answers with the full menu, so guessing is cheaper than looking up.
Naming is creating. A cdn/ asset is generated on first fetch of its path and cached there forever, so the path is the asset: reference /cdn/moodboard-<slug>/<category>-<name>.<ext> and that model, texture, or clip comes into being. Agents create art by naming it, and the name is the prompt. Two consequences the tools are built around: a path cannot be re-rolled (a bad result means picking a different name, permanently), and a bare /cdn/<name>.<ext> with no moodboard folder shares one global namespace with every other game. See the asset bank below and ASSET-BANK.md.
spawn_skill ids=["game-ui","drawn-art","looks"] # load a set; a bad id returns the menu
spawn_skills # all 60, id + name + description
spawn_skills search="ui" # filter over id, name, description
spawn_skills detail="brief" # id + name only (the full index is ~9k tokens)The index is read from .spawn/skills.json when spawn_init / spawn_docs has already saved it, so browsing costs no network call; refresh: true re-fetches.
Asset bank
Because a path is an asset, the same path in two games is the same asset — cross-project sharing costs nothing and needs no tooling. What Spawn has no API for is a catalog: the guide says so outright ("there is no catalog"). So a name that produced something great is unrecoverable knowledge the moment you forget how you spelled it, and a name that produced something bad is permanently bad, because you cannot re-roll a path.
The bank is the local record of that judgment, kept in ~/.spawn-mcp/assets/ — user-level, not per-repo, since its whole value is crossing games.
spawn_asset_sync # every game on your account (start here)
spawn_asset_scan dirs=["../game-one","../game-two"] # local-only: harvest what the checkouts cite
spawn_asset_note path="cdn/…/texture-packed-earth.png" name="dirt" category="terrain" verdict="good"
spawn_asset_search query="dirt" # before inventing a name
spawn_asset_search category="terrain" # or by your own grouping
spawn_asset_search facets=true # what categories/kinds/families exist
spawn_asset_search minGames=2 # proven: reused across games
spawn_asset_preview path="dirt" # a name works anywhere a path doesStart with spawn_asset_sync. There is no asset API on Spawn (/api/agent/v1/assets and friends are 404), so the only account-wide record is what your games have pushed. The sync lists every game you own, fetches each one's current spec, and harvests it — which sees things a local scan cannot: games with no checkout on this machine, and assets a teammate or Savi pushed that never reached your disk. On the account this was built against a local scan of three projects found 169 assets and the sync found 408. It is slow by design (one spec fetch per game, four at a time; six games ≈ 3s), so it is a tool you run deliberately.
Every asset tool reports a syncAdvice line when the bank is empty, never synced, or over a week stale — not just search. A stale bank answers "no match", the model coins a fresh path, and an asset that already exists under a good name gets regenerated under a second one. Since a path cannot be re-rolled, those two names can never be merged.
Name your assets. A name is a short unique handle, and every tool that takes a path takes a name instead — spawn_asset_preview path="knight" rather than 60 characters of style family and hyphenation. Alongside it, category is your own grouping ("enemies", "ui-icons"), kept separate from the filename's prefix (model-, texture-) so a rescan can never overwrite a judgement.
Results report how many games use an asset, not how many directories. In team mode one game is several worktrees, so counting directories would report a three-agent team as three games. Each use records the variant id from that project's own .env, and the count collapses on it. Reuse across games is the best evidence an asset actually worked, so it feeds ranking and minGames filters on it.
One file per style family, plus _meta.json, with the root namespace split by prefix (root-effect.json, root-sfx.json) since it is usually the biggest group. At a measured 821 bytes/asset a 10k-asset bank is ~7.8 MB and parses in ~19 ms, so this is not about search speed — it keeps a one-field note from rewriting the whole catalog, and keeps each file openable.
spawn_asset_preview checks the storage host directly rather than the /cdn/ cook route. Storage answers a plain 200/404 and never generates, so a 404 honestly means "not created yet" instead of "not allowed to ask" — and for images it hands the bytes back inline, so the model judges the art instead of guessing from the filename. Models and audio report existence only; put those in the world and use spawn_play_screenshot.
Paths are classified as moodboard (the documented namespaced form), root (a bare global name, shared with every other Spawn game), custom, or ingested (opaque public.<base64> uploads, which carry no naming guidance and rank last).
A namespace warning is loud only while the name can still change. A path that is already generated — or already referenced by a game — cannot be re-rolled, so telling you to rename it is not advice; those collapse to one counted line per kind. A path storage has never seen gets the full recommendation, because that is the only moment it can be acted on.
The design, including what is deliberately not built, is in ASSET-BANK.md.
Local audit
Reviewing a build is slow because every question gets asked through the same instrument: a headed browser, a screenshot, and a judgement call. Plenty of those questions are arithmetic, and arithmetic does not need a browser.
Game scripts are plain JS, and the engine injects objectApi as a parameter rather than an
import — so a function that does not take api cannot reach the engine and runs fine in Node.
That is the whole basis for these two tools. Neither needs credentials, a push, a live room or
Chromium.
spawn_audit_scan # what can be checked locally, and what needs a room
spawn_audit_math # run audit/math.json
spawn_audit_math checks=[…] # try one rule without saving it firstspawn_audit_scan classifies by signature: no api parameter and no engine-only require
means the function is pure. On a real 77-script game that is 185 of 271 exported functions.
spawn_audit_math reads audit/math.json in the game project, because per-game invariants
are not knowledge a generic server can hold. This server owns the runner; the game owns the
assertions — a test runner, and tests.
{
"checks": [
{
"id": "wave-bodies-all-fit",
"module": "scripts/battle-system.js",
"export": "planWave",
"args": [
{ "name": "tier", "range": [1, 12] },
{ "name": "waveInTier", "range": [1, 5] },
{ "name": "popMult", "values": [1, 1.5, 2, 3] }
],
"select": "dropped",
"assert": { "finite": true, "max": 0 }
}
]
}Domains are range (with optional step), values, or const. Assertions cover finite
(NaN and Infinity), integer, min/max, the four monotonicity forms (increasingIn,
nondecreasingIn, decreasingIn, nonincreasingIn, naming an argument), and expr for
anything else. select pulls a field out of an object result. Failures report the exact
arguments that produced them, so a finding is a line you can paste into a REPL.
On the game this was built against, six checks over 1,020 calls run in 72 ms and pin a
formation that does not fit its zone to one wave: T3.3.
Two deliberate refusals. A sweep that exceeds its call budget reports CAPPED from N rather
than truncating quietly, because a bounded sweep reported as a full one reads as "covered
everything". And the engine-only builtins (fx, geom, three, tsl, vibe,
room-routing, primitives) are refused rather than stubbed — a stub lets a check pass
against behaviour that never ran, which is worse than a check that declines to run.
module.exports = { … } helpers are loaded and scanned alongside export function ones. Both
systems are in use, and in practice the pure math lives in the CommonJS half.
spawn_audit_ui counts something different: not "is this function correct" but "does a
pause overlay exist at all." It walks the project's scripts and scenes (git lane) or
game.json plus any folded-out scripts (document lane) and looks for each of
Interface In Game's 21 named UI surface types —
main-menu, inventory, skill-tree, and so on — scoring each found (the surface's
name turned up in a path or identifier) or missing (no evidence anywhere).
spawn_audit_ui # check audit/ui.json's `expect`, or the 6-surface baseline
spawn_audit_ui expect=[…] # try a different surface set without writing the filefound means "the name showed up," not "looks right" — or even "is built." A static
text scan cannot see a rendered screen, so it doesn't try to grade one: found is as
much as a name match can honestly claim. spawn_play_screenshot is the only thing that
can look, and every report says so.
Like audit/math.json, audit/ui.json lives in the game project, because which
surfaces a given game actually needs is not knowledge a generic server can hold:
{
"expect": ["main-menu", "in-game", "settings", "overlay", "game-over", "inventory", "map"],
"ignore": ["credits"],
"genre": "rpg",
"theme": "fantasy"
}expect replaces the 6-surface baseline (main-menu, in-game, settings, overlay,
game-over, loading) when present; ignore drops surfaces from the report entirely,
so a puzzle game with no skill tree isn't scored against having one. genre and theme
are validated against interfaceingame.com's own filter vocabulary and appended to every
reference link; an unknown surface, genre, or theme fails with the full menu rather than
scoring silently.
Every missing finding names the craft skill to load (spawn_skill) and an
interfaceingame.com/screenshots/?elements=… link. That link is handed back as a URL
for a human to open — this tool never fetches, crawls, or caches the site itself.
Its terms of use prohibit scraping, the screenshots are the games' own copyright to
begin with, and a filename this tool can't render would be worthless as reference
anyway; the 21-surface vocabulary is the useful part, and that much is hardcoded here.
Three places wire this in rather than leaving it a report someone has to remember to
run. spawn_push's own description points here for the question a screenshot can't
answer — not how a surface looks, but whether it exists at all. spawn_team_brief runs
the same check per worktree and names any missing surfaces in the brief it hands a
builder. And the savi-conductor skill checks it on its slower Maintain cadence, turning
each missing surface into a ready backlog entry that a later tick dispatches to Savi.
Development
npm run typecheck # tsc over src/ + test/
npm test # node:test suite (no browser needed)
npm run check # both
npm run build # emit dist/Tests cover the parts that silently corrupt a project when they regress: the spec compiler, the script path guards, and the three-way pull/merge in syncPulledScripts. CI runs them on Node 20/22 across Linux and Windows.
Release notes live in CHANGELOG.md. Versions are tagged v<major>.<minor>.<patch>.
The
testscript lists test files explicitly rather than globbing, becausenode --testonly expands globs itself on Node 21+, and Windows shells don't expand them either. Add newtest/*.test.tsfiles to that script or they won't run.
Security
SPAWN_AGENT_KEYlives in the game project's.envonly.Tools never echo the full token;
spawn_bootstrapandspawn_statusreturn a masked prefix..envand.spawn/are gitignored by init/bootstrap on the document lane. In a 6.0 clone.envgoes in.git/info/excludeinstead — the world's own.gitignoreis never touched — and this server's files live under.git/spawn-mcp/, because a 6.0 world tracks.spawn/itself.spawn_pushrefuses to run while any of this session's artifacts are sitting in the tree, since a 6.0 push isgit add -A.The git credential is never written down. The helper is passed per-invocation with
-c(nothing in.git/config, nothing ingit remote -v) and its body references$SPAWN_TOKEN, expanded by the shell git runs it in — so the token is never an argv element and reaches the child through its environment only. Git output is scrubbed of the token before it is returned, andGIT_TERMINAL_PROMPT=0makes a credential failure fail rather than hang.The play browser is a normal player client. It runs in a fresh, credential-free context and does not inject the agent key into the page.
Trust model
This server hands an LLM real capabilities on your machine. Worth knowing before you run it:
Filesystem writes. Every tool takes a
projectDirand writes.env,.gitignore,game.json,scripts/**, and.spawn/**under it. There is no sandbox beyond the path you pass.Git execution (6.0 worlds).
spawn_init/spawn_latest/spawn_pushrungitin that directory — clone, fetch, rebase,add -A, commit, push. A push to a 6.0 world is live in every open room within about a second; there is no staging step and no dev/live split.Code execution.
spawn_execruns JS in your live room;spawn_play_evalruns JS in the play page;spawn_play_openwill navigate to any URL it's given.Untrusted text flows back to the model.
spawn_logs,spawn_exec, andspawn_play_consolereturn server- and player-influenced content, andspawn_audit_uirenders paths and text out of the game project itself (game.json, scripts, scenes — a cloned repo may not be yours). Treat it as data, not instructions.The API origin is pinned to
https://www.spawn.coinsrc/config.ts. It is deliberately not read from the project.envand not a tool argument, so neither a cloned game repo nor the model can redirect your bearer token. Only theSPAWN_API_URLprocess env, set by whoever wrote the MCP config, can override it, and only to anhttpsorigin (or localhost).
License
MIT. See LICENSE. Unofficial community project; not affiliated with or endorsed by Spawn.
Available Tools
40 toolsspawn_asset_noteA
Name, categorize, describe or judge an asset in the bank — including a path that has not been scanned or even used yet. A name is a short handle you can use in place of the path in every other asset tool. This is the memory the platform does not keep: a Spawn asset is generated once from its path and cached there forever, so you cannot re-roll a name, and 'this name produced the wrong thing, use that one instead' is information nothing else records. Write the description while you can still see the asset.
Inputs: path (required), name, tags, verdict, +3 more.
spawn_asset_previewA
Check whether an asset actually exists on Spawn's CDN, and LOOK AT IT if it is an image (returned inline, so you can judge it rather than guess from the filename). Use it on an unfamiliar path before building around it, and after generating a new one to see what the name produced. Safe to call: it queries the storage host directly, which never triggers generation — a 404 means the asset has not been created yet, not that you are forbidden to ask.
Inputs: path (required), note, render.
spawn_asset_scanA
Harvest every cdn/ asset path used in a project (or any directory) into the local cross-project asset bank, recording which files and which game use it. Spawn generates an asset on first fetch of its path and keeps it there forever, so the same path in another game is the same asset — but there is no catalog API, and this bank is the only record of which names you have already used and how they turned out. Run it on each of your game projects once, then use spawn_asset_search before inventing a new asset name.
Inputs: dirs, projectDir.
spawn_asset_searchA
Search the local asset bank for assets you (or your other projects) have already used. Call this BEFORE inventing a new cdn/ asset name: a path that already produced good art is reusable across games verbatim, and a path marked bad tells you what not to spell. Every result reports how many distinct GAMES use it — the strongest signal that an asset actually worked. Pass facets:true with no query to see what categories, kinds and style families the bank holds.
Inputs: kind, name, slug, limit, +9 more.
spawn_asset_syncA
Sync the asset bank with your Spawn ACCOUNT: list every game you own, fetch each one's current server-side spec, and harvest the cdn/ assets it actually uses. This is the authoritative fill — it covers games you have no local checkout of, and assets a teammate or Savi added that never landed on your disk, neither of which a local spawn_asset_scan can see. SLOW BY DESIGN: one spec fetch per game, each carrying every script source, so expect seconds to low minutes on a large account. Run it once to populate an empty bank, and again when the other asset tools say the bank is stale. There is no asset API on Spawn — the specs are the only account-wide record of which assets exist.
Inputs: mode, projectDir, variantIds.
spawn_audit_mathA
Run declared numeric invariants over the game's pure functions, locally: no browser, no live room, no push, no credentials. Sweeps each function across its declared input domain and reports the exact arguments that broke a rule. Catches what playing the game catches slowly and unreliably — NaN and Infinity, divide-by-zero at boundary inputs, difficulty curves that flatten or invert, values escaping their declared bounds. Reads audit/math.json by default; pass manifest for another path or checks to try one inline without writing a file. Use spawn_audit_scan first to see what is auditable.
Inputs: json, checks, manifest, projectDir.
spawn_audit_scanA
List a game's exported functions and say which can be audited locally. Engine-coupled functions take objectApi as a parameter (the engine injects it, never imports it), so the signature alone decides: no api parameter and no engine-only require means the function is pure and runnable in plain Node. Run this BEFORE writing an audit manifest — it tells you what there is to check. No browser, no room, no credentials.
Inputs: projectDir, auditableOnly.
spawn_audit_uiA
Locally count which of the 21 Interface In Game UI surfaces this Spawn game project has: no browser, no live room, no push, no credentials. This is a text scan, not a look at the screen, so it can only tell you found or missing, never whether a surface is actually built or styled — a missing verdict means go build that surface: load the skills the report names with spawn_skill, then re-run this tool to confirm it. found means only that the surface's name turned up in a path or identifier; it is not a verdict on completeness or appearance, and spawn_play_screenshot is the only authority on how a surface actually looks. Reads audit/ui.json's expect list by default, falling back to a 6-surface baseline (main-menu, in-game, settings, overlay, game-over, loading) when the file is absent; pass expect to try a different surface set without writing the file. Every finding also carries an interfaceingame.com reference link for a human to open — this tool never fetches that site itself. An unknown surface id, in expect here or in audit/ui.json's expect/ignore, fails with the full 21-slug menu instead of silently scoring it as missing.
Inputs: genre, theme, expect, projectDir.
spawn_bootstrapA
Trade a one-time setup bootstrap key (sbk_…) for a durable agent token. Writes SPAWN_AGENT_KEY to the project .env. The full token is NEVER returned — only a masked prefix. Bootstrap keys expire in ~5 minutes and work once.
Inputs: bootstrapKey (required), name, projectDir.
spawn_clientA
Run any other verb of the packaged client against your standing body — spawn client <verb> …. Join first (spawn_client_join); these all act through that session.
The verbs the current client serves: where (your pose, world, place and the nearest objects — a sim read, no pixels), players (every body in the room and where it is), inputs (the world's declared actions — what a key actually does HERE, read it before sending any), move <x> <y> <z> or move --to <objectId> with --speed walk|run|teleport, look --at <objectId|x,y,z>, witness (the room as a picture), crossing (portals and slot census), screenshot, run <file> or run -e "<source>" (a play script: play.key / press / hold / release / walk / face / moveTo / where / players / entities / state / until).
The verb list belongs to the client the STACK serves, not to this server, so it can gain verbs without this tool changing — if one is not recognised, spawn_client verb:"--help" is not it; the client's own error names what it takes. --origin is refused: it would send your token to another stack.
Inputs: verb (required), args, session, projectDir.
spawn_client_joinA
Put YOUR OWN BODY in the world as a real player — no browser, no GPU. This is the cheap way to get a LIVE ROOM, and a live room is what spawn_exec and spawn_logs need: a room boots for a player and never for a door, so until a body stands they answer 409 no_live_room / 5xx. Before this, the only way to boot one was spawn_play_open (headed Chromium with a working WebGPU adapter); this needs neither, so it works on a machine with no GPU and costs a fraction of the time. It is also how you PLAY the game you are building: the body is a real player wearing your name, it appears in the room's census beside the creator and Savi, and the world's own player hooks fire for it like anyone's.
The session is a detached background process that outlives this call, so join once and then use spawn_exec / spawn_logs / spawn_client freely. It SELF-EXPIRES at ttl (default 600s) — that is the safety net that stops a forgotten body standing in someone's world forever — so raise ttl for a long session and call spawn_client_leave when you are done. Needs Bun (the client's session shell is spawned as bun); the error says so if it is missing.
Joining is the same on every engine — it is the play door, not the write path — so this takes no engineVersion.
Inputs: as, ttl, body, world, +2 more.
spawn_client_leaveA
End the session and despawn the body — the graceful departure (the despawn is journaled before the socket closes). The room folds when the last body leaves, so spawn_exec and spawn_logs stop working after this until something else is standing. Call it when you are done; a session left alone self-expires at its ttl anyway.
Inputs: session, projectDir.
spawn_client_statusA
Is a body standing, and for how much longer? Reports each session's pid, world, connection phase, entity id and REMAINING TTL. Check it before spawn_exec / spawn_logs when they answer no_live_room: an expired session is the usual reason, and the fix is to join again rather than to debug the endpoint.
Inputs: session, projectDir.
spawn_create_gameB
Create a new game in the creator's account. Optionally writes SPAWN_VARIANT_ID to .env. Creator should open the play URL and keep it open. The engine a new world is pinned to is the platform's choice, not an argument here — the result reports which lane it landed on, and spawn_init then provisions for that lane (a clone on 6.0+, a scaffold on pre-6.0).
Inputs: projectDir, setVariant.
spawn_docsA
Fetch this world's guide, the Tome API reference, and the skills index — all matched to the engine version the world is pinned to, and this is also the cheapest authoritative answer to WHICH engine that is (era + semver come back in the result). On engine 6.0+ the guide IS the world's AGENTS.md: the tree grammar, the API in one screen, the git loop. On a pre-6.0 world it is the document lane's one paragraph. Optionally save under .spawn/. For just the skill menu with descriptions, spawn_skills is cheaper.
Inputs: save, projectDir, engineVersion.
spawn_execA
Run a read-only JavaScript snippet against the live room (e.g. query objects, read an object's state). Pushing is the only write path. Needs a LIVE ROOM, and a room boots for a PLAYER, never for a door: the cheapest way to get one is spawn_client_join, which stands your own body in the world with no browser and no GPU (spawn_play_open boots one too, and is the right call when you need to SEE rather than query). Without either you get 409 no_live_room or a 5xx. api.sql is NOT available here at all (the endpoint is read-only server-side and refuses SQL outright, even SELECT) — there is no way to read the game database through this server.
Inputs: script (required), projectDir.
spawn_getting_startedA
START HERE before any other spawn tool. The whole workflow in one call: setup order, the art/UI skills to load BEFORE building anything visual, the push → screenshot → fix loop, and the multi-agent rules. Also reports what this project already has (token, variant, game.json, docs) so you know which step you're on. Needs no credentials.
Inputs: projectDir, engineVersion.
spawn_initA
Provision the project directory for this world — what that means depends on the engine, and this detects it. On engine 6.0+ (the git lane) the world's code IS a git repository: this CLONES it into projectDir (the agent token is the git password, supplied per-command and never written to .git/config), fetches the spawn notes ref, keeps .env and .spawn/ out of the tree via .git/info/exclude, and saves the docs. A non-empty directory that is not already this world's clone is refused rather than cloned over. On a pre-6.0 world (the document lane) it scaffolds as before: gitignore secrets, world/ + scripts/, pull current spec → game.json, materialize scripts. Either way the docs land in .spawn/ (guide.md, tome-api.md, skills.json).
Inputs: depth, projectDir, engineVersion.
spawn_latestA
Take upstream's work into your project. ON ENGINE 6.0+ (git lane) this is git pull --rebase: Savi, exec, and other clones commit to the same repo, so pull before you build and again after a refused push. A dirty tree is refused rather than stashed, and a rebase that collides is aborted with your commits intact and the colliding paths named. mode / version / updateSlug / applyLocal are document-lane concepts and are refused there. ON A PRE-6.0 WORLD (document lane) it is unchanged: pull a saved spec — head (mode=dev, default), published live (mode=live), an exact version, or a published updateSlug. Head pulls sync scripts (untouched fast-forward; both-changed → .theirs) and update the base-version rail — use after version_conflict. Non-head pulls are read-only unless applyLocal:true. version and updateSlug are mutually exclusive.
Inputs: mode, version, applyLocal, projectDir, +3 more.
spawn_list_gamesA
List games this token can push to: { games: [{ appId, variantId, name, playUrl }] }. Ask the creator which one by name.
Inputs: projectDir.
spawn_logsA
Variant logs + live room script logs. Use when behavior doesn't match what you pushed — script syntax and runtime errors surface here, not in a push receipt. Needs a live room: spawn_client_join stands your own body and boots one without a browser.
Inputs: projectDir.
spawn_meA
Whoami — returns { userId, username } for the connected Spawn agent token.
Inputs: projectDir.
spawn_play_closeA
Close the Playwright Chromium session.
Inputs: no named parameters.
spawn_play_consoleA
Return recent browser console / pageerror messages from the play session. Pair with spawn_logs for server-side script errors.
Inputs: limit, types.
spawn_play_evalA
Evaluate JavaScript in the play page's TOP frame (browser context — not the Spawn room api). Use it for page-level diagnostics: WebGPU support, network state, document title. It CANNOT see or click the game's UI: Spawn renders the UI in a cross-origin sandboxed iframe, so document.querySelector finds none of your ui.js buttons and reaching into the frame throws. Click game UI with spawn_play_input coordinates instead, and read live world state with spawn_exec.
Inputs: script (required).
spawn_play_inputA
Send keyboard/mouse actions to the play session (WASD, jump, click UI, etc.). Clicks the canvas center ONCE per session to give it keyboard focus — later batches send only the actions you list, so no stray clicks fire your weapon or dismiss UI. This is also the ONLY way to click your game's UI (ui.js renders into a cross-origin iframe that spawn_play_eval cannot reach): screenshot first, read the button's position off the image, then click those coordinates. After acting, call spawn_play_screenshot to see the result.
Inputs: actions (required), format, quality, refocus, +1 more.
spawn_play_openA
Open the live Spawn play URL in a local Chromium (Playwright). Headed by default so you can watch. Use this as the agent's eyes/hands on the game — Spawn is WebGPU/canvas, so screenshot + input beat accessibility trees. Resolves play URL from the variant if omitted. Keep it HEADED: headless Chromium has no WebGPU adapter, so Spawn refuses to start and every screenshot shows its 'One graphics fix away' gate instead of the game. The result reports webgpu:'ok'|'unavailable'.
Inputs: width, format, headed, height, +5 more.
spawn_play_reloadA
Reload the play tab (e.g. if a push didn't hot-apply to this client). Prefer waiting ~1s after spawn_push first — rooms usually reshape in place.
Inputs: format, waitMs, quality, screenshot.
spawn_play_screenshotA
Screenshot the open play session. Primary visual check after spawn_push — look at the image before calling the change done. Judge it as a player would: if it reads as grey boxes, flat untextured shapes, or default browser UI, that is a missing skill rather than a missing feature — load the relevant craft (spawn_skill ids: drawn-art, custom-materials, looks, game-ui, world-composition) and rewrite that code, since none of it is discoverable from the API reference. Optionally save under the project.
Inputs: save, format, quality, fullPage, +1 more.
spawn_play_statusA
Whether a play browser session is open, its URL, headed mode, recent error count, and a one-line read of Savi's fleet (spawn_savi_status has the detail).
Inputs: no named parameters.
spawn_pushA
Push your work live (~1s in every open room). The lane is detected from the world's engine. ON ENGINE 6.0+ (git lane) this stages, commits and git-pushes the clone: message is REQUIRED and is not a log line — its first line lands in the creator's chat and their changes list under your name, so write one plain sentence about what changed for the PLAYER ("the getaway car keeps its grip on wet streets"), never how you did it, never a file or a function; put the how in body, which is also where you leave Savi what she needs. The result carries the remote: verdict lines — rooms, players, and each room's reading of your change. A push refused as non-fast-forward means origin moved: spawn_latest, then push again. ON A PRE-6.0 WORLD (document lane) it is unchanged: compile the project and PUT the spec; on 409 version_conflict call spawn_latest, merge .theirs receipts and push again. In team mode document-lane pushes are serialised and rebased onto head first. Either way a successful push proves it parsed, nothing more — look at spawn_play_screenshot before calling the work done, and if what you pushed is visual and untextured or plainly styled, the missing piece is a skill you did not load (spawn_skill ids: drawn-art, custom-materials, looks, game-ui); spawn_audit_ui answers the other question, what UI you never built at all.
Inputs: body, force, dryRun, message, +2 more.
spawn_revokeA
Revoke the durable agent token (disconnect). Removes SPAWN_AGENT_KEY from project .env after success.
Inputs: projectDir.
spawn_roomsA
Active rooms + player counts for the current variant, and the room exec/logs will target. An empty list is a room you can boot yourself: spawn_client_join puts your body in the world and it appears here while the body stands.
Inputs: projectDir.
spawn_saviA
Write into the creator's studio chat, where Savi (their in-game AI companion) reads it. Two uses, and the second is the valuable one. (1) Context after a meaningful push, so you don't fight over the world. (2) HAND OFF WORK: pass task and Savi can take it on, fanning it out across its own sub-agents — up to 8 in the studio, needing no bootstrap key, worktree, or browser of its own. Check spawn_savi_status first: it counts the lanes already burning, and every idle one is a sub-agent that would be finishing work while you build. The strongest targets are the ones where your own lane is weakest: you make art by naming a cdn/ path, and that path is spent on first fetch and cannot be re-rolled, so art that needs iterating — or that the creator wants to steer — is better handed to Savi, who can try it again with them in the loop. Delegate BROAD and GENERAL ("build out the northern district"), never as a step list — the splitting is what the fan-out is good at, and a narrow task wastes it. NOTHING COMES BACK: no reply, no acknowledgement, no completion event, and no endpoint on this API reports who pushed. So declare your boundary with keepOff rather than asking for one, and never put a delegated task on your own critical path. Uptake is visible even though acknowledgement is not: spawn_savi_status shows a new wisp lighting up and what Savi has it doing, which tells you the fan-out started — not that it started on YOUR task, since nothing here reports an author. Detect the finished work by inference rather than by reading a field — head moving past your own last push (spawn_status remote.headVersion) is Savi or the creator, and in team mode spawn_team_status recentPushes is what rules out a teammate. Then spawn_latest to take it and LOOK at it: work arriving on your rail is unverified until you screenshot it, exactly like your own.
Inputs: message (required), task, keepOff, subAgents, +1 more.
spawn_savi_statusA
How many sub-agents Savi is running right now, and what they are doing. Savi's fan-out is EIGHT lanes wide, and this is the only way to see how much of it is spoken for — no API endpoint reports it. Call it BEFORE spawn_savi to size a handoff, and after one to see whether it was picked up. Idle lanes are the finding worth acting on: they are parallelism that costs you nothing and finishes work while you build, so free lanes mean you should be delegating a broader slice, not building it yourself. Reads the open play session (spawn_play_open) — the wisps are the flames along the top of the play page, one per sub-agent, and the studio broadcasts what each is working on to that same page. Attribution still does not exist: this shows that Savi is busy and on what, never that the work is yours.
Inputs: no named parameters.
spawn_set_variantA
Set SPAWN_VARIANT_ID in the project .env (join an existing game from spawn_list_games).
Inputs: variantId (required), projectDir.
spawn_skillA
Load the craft for what you are about to build — pass EVERY skill the work touches, not one. This is where the engine's real technique lives (how a HUD is actually built, how a material is written, how terrain is sculpted); the API reference only lists fields, so code written without the skills works but looks and behaves like a default. Anything visual should carry the look skills alongside the mechanic: a HUD is game-ui + drawn-art, a glowing surface is custom-materials + looks, a scene is world-composition + looks. Guessing an id is fine and cheap — a miss answers with the real menu.
Inputs: id, ids, projectDir.
spawn_skillsA
The menu of skill ids to pass to spawn_skill, each with what it covers. Browse it when planning a build so the spawn_skill call can carry every domain the work touches — mechanic and look together. Reads .spawn/skills.json when present (no network, no credentials) and falls back to the API. If you already know roughly what you need, skip this and pass ids straight to spawn_skill; a wrong id answers with this list anyway.
Inputs: detail, search, refresh, projectDir.
spawn_statusB
Where this project stands. Always reports env (masked), credential source, docs present, and — once credentials allow — the world's ENGINE (era + semver), which decides everything else. On engine 6.0+ the remote block is git: branch, HEAD, how many commits ahead of and behind origin, and the uncommitted files. On a pre-6.0 world it is the version rail: base version, conflict receipts, headVersion vs publishedVersion.
Inputs: remote, projectDir, engineVersion.
spawn_validateA
Check the project before pushing. ON ENGINE 6.0+ (git lane) there is no server-side validator — the push itself is the authority and refuses typed, naming the row, the line and the field — so this runs a LOCAL pre-flight over the tree instead: every script and template is ESM-parsed, .scene files are checked against the # spawn-scene v2 yaml <cellKey> header and their filename's cell key, image bytes are checked against their extension, and binaries under assets/ are caught (law.git.asset-kind refuses them). Clean here does NOT mean the push will land. ON A PRE-6.0 WORLD it is unchanged: compile the project and run authoritative server-side schema validation. Either way, valid is not the same as good — it says nothing about how the result looks or feels, which comes from the skills you loaded (spawn_skill) before writing the code.
Inputs: projectDir, engineVersion.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 40 tools
The 40 tools are mostly distinguishable by domain prefix and explicit descriptions, but several clusters can be confused: spawn_exec vs spawn_play_eval vs spawn_client (read-only JS vs browser JS vs client verbs), and spawn_logs vs spawn_play_console (room script logs vs browser console). Status tools also overlap across domains (spawn_status, spawn_play_status, spawn_client_status, spawn_savi_status). Descriptions mitigate but do not fully remove ambiguity.
All names use a consistent spawn_ prefix and snake_case, making grouping predictable. However, the token pattern is not uniformly verb_noun: some are domain_action (spawn_play_open, spawn_asset_sync), others are verb_noun (spawn_create_game, spawn_list_games), and a few are bare nouns or phrases (spawn_me, spawn_getting_started). This is mostly consistent with minor deviations.
40 tools is well above the 3–15 sweet spot and exceeds the 25-tool threshold for 'too many', even for a complex development platform. The surface covers many sub-domains (auth, project, play, client, audit, asset, Savi), each adding tools that could have been consolidated under fewer multiplexed commands. The count feels heavy and increases selection cost.
The surface covers the major lifecycle stages: auth, game creation/selection, project provisioning, push/pull/validate, live-room interaction, play-browser control, skills, audits, asset bank, and Savi delegation. However, a referenced tool (spawn_team_status) is absent, and there is no explicit game/variant deletion or team-management surface, leaving minor dead ends. Otherwise coverage is strong.
Maintenance
Related MCP Connectors
An MCP server that provides agents access to the KeldynAI platform
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Related MCP Servers
FlicenseNot gradedqualityCmaintenanceRemote MCP server that gives LLMs access to run network commands66-- AlicenseBqualityDmaintenanceProduction-grade MCP server that gives AI agents safe access to your local dev environment: filesystem, databases, processes, and OpenAPI specs.1555 npm4MIT
- AlicenseNot gradedqualityDmaintenanceLocal MCP server that gives AI agents 44 engine tools to build, run, and debug real 2D and 3D games through conversation.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for the OffByOne website factory, enabling agents to generate, validate, and manage full-stack web projects through safe, deterministic tools.MIT