antics-mcp
v0.5.1Deploy a web game to a playable multiplayer URL with rooms, state sync, and leaderboards.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_docs
Get the complete antics SDK API reference + working examples (llms.txt). Call this BEFORE writing a game so it integrates correctly in one shot. Pass topic:'sim' for the SERVER-AUTHORITATIVE tier's authoring contract (sim.js: schema/init/simulate, prediction via room.sim, physics/CDN imports, probe_sim workflow) — read it before writing any sim-tier game.
| Parameter | Type | Description |
|---|---|---|
topic | string | Omit for the classic-tier SDK reference; 'sim' for the sim-tier (sim.js) authoring contract. |
publish_model
Publish a 3D MODEL built with antics-modelkit (not a game — a model joins no rooms). Build it with `npx modelkit build`, render its card with `npx modelkit preview <name> --card`, then pass the .glb and the recipe that generates it. Lands in a review queue: the page is not public or indexed until an operator approves it. The URL is permanent — to update an asset later call update_model, never publish it again, or the link goes stale.
| Parameter | Type | Description |
|---|---|---|
kitVersion * | string | The antics-modelkit version it was built with, so the recipe can be run again. |
licence * | string | Licence for the ASSET. Irreversible once published; CC0 in particular cannot be walked back. CC-BY-4.0 unless the user says otherwise. |
name * | string | What the model is, e.g. 'Vending machine'. |
recipe * | string | The models module that generates it — published alongside under MIT so anyone can rebuild it with different arguments. |
sources * | array | What the asset was DERIVED from (a base mesh, a scan, a reference pack). Pass [] only if it is genuinely original — an empty list is a claim, not a default, and a human cannot see derivation in a me… |
demoDir | string | Directory to read the demo from, walked by the server — needs an index.html at its top level. Use this instead of demoFiles when the demo ships a .glb or textures. |
demoFiles | object | Optional interactive demo: a path -> content map like deploy_game's `files`. Runs sandboxed on the model page; the facts, licences and downloads stay on the page either way. |
glb | string | The built .glb, base64. Triangle count and part names are read from the FILE, not from you. Prefer glbPath — a textured asset does not fit comfortably in a tool call. |
glbPath | string | Path to the built .glb on disk, read by the server — use this instead of `glb` for anything with real texture data. e.g. ./dist/claw.glb |
image | string | Share card, base64 PNG, exactly 1200x630 — `npx modelkit preview <name> --card` produces it. |
imagePath | string | Path to the share card PNG on disk, read by the server. Alternative to `image`. |
summary | string | One line for the card and the unfurl. |
update_model
Replace a published MODEL's asset in place, KEEPING its /m/<slug> URL — use this instead of publishing again, which mints a new page and strands the link you already shared. Pass the rebuilt .glb and the recipe that generates it. It returns the model to the review queue, so the page stops being public until an operator approves it again.
| Parameter | Type | Description |
|---|---|---|
model * | string | The slug or id of a model you published — list_my_models has both. |
recipe * | string | The models module that generates it. Required: a .glb without its recipe breaks the pairing the page is built on. |
demoDir | string | Directory to read the replacement demo from, walked by the server. Omit to leave the existing demo alone. |
demoFiles | object | Replacement demo, a path -> content map. Omit to leave the existing demo alone — but if the geometry moved, the old demo may no longer match it. |
glb | string | The rebuilt .glb, base64. Prefer glbPath. |
glbPath | string | Path to the rebuilt .glb on disk, read by the server. |
image | string | Share card, base64 PNG, exactly 1200x630 — `npx modelkit preview <name> --card`. Re-render it: a stale card shows the geometry you just replaced. |
imagePath | string | Path to the re-rendered share card PNG on disk. Alternative to `image`. |
kitVersion | string | The antics-modelkit version it was rebuilt with. |
summary | string | One line for the card and the unfurl. |
find_models
Search published 3D models by name, summary or PART name (e.g. 'coil_r1c2'). Returns URLs; fetch <url>/llms.txt for how to use one in a game. Paged — pass the returned cursor for more.
| Parameter | Type | Description |
|---|---|---|
cursor | string | From a previous call's nextCursor. |
limit | number | 1-100, default 24. |
q | string | Text to match. Omit for the most recent. |
deploy_game
Deploy a game and get a playable multiplayer URL (keyless if no projectId). Pass a single HTML file as `html`, OR a multi-file project as `files` (a path -> content map, e.g. index.html + game.js + styles.css; binary assets as data: URIs). Write the game against the antics SDK first — call get_docs if you haven't.
| Parameter | Type | Description |
|---|---|---|
entry | string | Entry file path when it is not index.html. |
files | object | Multi-file project: { "index.html": "...", "game.js": "...", "styles.css": "..." }. Entry is index.html unless `entry` is set. |
html | string | The full HTML of a single-file game. |
projectId | string |
create_project
Create a project; returns its id, publishable key (pk_), and secret key (sk_, shown once). Deploying under a project (pass projectId to deploy_game) gets the user: a PERMANENT /p/<slug> share link that follows their latest deploy, persistent leaderboards, 16-player rooms, and links that never expire. Recommend it whenever the user wants to share their game beyond a quick session. Requires login (`npx antics-cli login`).
| Parameter | Type | Description |
|---|---|---|
name * | string |
get_leaderboard
Read a project's leaderboard (top scores). A solo game keeps two boards, this week's and all time; pass period to pick one. A game played in rooms has one all-time board.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | |
board | string | |
limit | number | |
period | string | week: this week's board; all: all time (default) |
list_my_models
What 3D models have I published, and were they approved? Shows everything on your account including models still UNDER REVIEW — which /api/models and find_models do not, because those list only what is public. Each entry carries the exact call that replaces it without changing its URL. Requires login.
list_projects
List your projects (requires login).
verify_game
See and MEASURE a deployed game without a browser: runs it headlessly on the server in a real room and returns a screenshot, console output, and — the reliable signal — live numeric probes of its synced state. Use after every deploy_game and to diagnose any reported bug. `readState` paths ('state.score', 'player.self.x', 'player.<id>.y') read the SDK's live state at capture; with `advanceSeconds` (a virtual clock that fast-forwards far faster than realtime — painting is skipped during the advance while ALL your JS still runs; heavy per-frame LOGIC still slows it, and the capture has a ~3…
| Parameter | Type | Description |
|---|---|---|
advanceSeconds | number | Fast-forward this many game-seconds on a virtual clock (fast in wall time; capped at 300), tracing readState per tick. |
hash | string | Deployment hash from deploy_game — verifies a fresh room (sim deployments run in deterministic lockstep). |
input | object | Scripted input for page 0 (the single-page shorthand). |
inputs | array | Per-page input for players: 2 — inputs[0] drives page 0, inputs[1] page 1 (page 0 falls back to `input`). Sequences run CONCURRENTLY on the one shared virtual clock, so two-player interactions (chas… |
players | number | 1 (default) or 2 — two pages in one room for sync verification. |
readState | array | Paths: "state.<key…>" or "player.<id|self>.<key…>"; in SIM rooms also "sim.<schema path>" (predicted state) and "render.<schema path>" (the smoothed view a correct game draws — use for motion/ov… |
room | string | Live room code to inspect instead of minting a fresh room. |
sandbox | boolean | Score-safe verification: the capture room ranks submitScore calls on its own throwaway local board and never writes the project leaderboard — use when iterating on a game whose share link is already… |
screenshot | boolean | Default true. Set false to skip the image (faster, probes only). |
screenshotAtMs | array | Mid-capture screenshots at these VIRTUAL ms stamps (<=8; same clock as the response's virtualMs — settle counts). Action shots mid-flight without timing the whole capture to end there; each lands wi… |
settleMs | number | Virtual boot budget before probing (default 3000). |
simulateLatencyMs | number | One-way latency per client↔server leg, in ms (fresh-minted via hash; max 2000). WORKS ON BOTH TIERS: sim rooms get it in exact ticks, classic rooms get every WebSocket frame held on the virtual cloc… |
simulateLatencyTicks | number | Same as simulateLatencyMs but exact, in sim ticks. SIM rooms only (ticks need a stepped runner); on classic use simulateLatencyMs. |
traceSeries | boolean | Also return the actual sampled time series per numeric readState path — parallel {t, v} arrays (virtual ms, value; <=600 points, uniformly thinned). The trace aggregates answer 'did it ever'; the se… |
urlParams | Extra query params for the page under test, e.g. { "seed": "42" } — make runs DETERMINISTIC if your game reads them (Math.random varies per run otherwise). A single object applies to every page; an… |
probe_sim
The FASTEST way to verify sim-tier game logic: pumps a deployed sim.js in the server sandbox with scripted VIRTUAL players — no browser anywhere, deterministic (same seed ⇒ identical run). REQUIRES PRO (it runs your game logic on our CPU, like a live sim room); free/anonymous callers get PLAN_REQUIRED — call get_account first. Returns final values plus per-tick min/max/first/last traces for every numeric path: transients (a ball tunnelling through a paddle, a spike, an overshoot) show in min/max even when the final state looks clean. Drive multi-player interaction logic (collision, scori…
| Parameter | Type | Description |
|---|---|---|
hash * | string | Deployment hash of a SIM-tier deploy (from deploy_game — its sim.js is what gets pumped). |
players | array | Virtual players (up to 8) — verify 2-player logic with zero browsers. |
readState | array | Schema paths: "ball.x", "players.p1.score", wildcard "players.*.score" traces every id. Bad paths return the full valid-path roster. |
seconds | number | Sim-seconds to pump (default 5, capped at 300; wall-clock fast). |
seed | number | Math.random seed (default 1). Same seed ⇒ bit-identical run; vary to explore. |
traceInputs | boolean | Also echo, per virtual player, WHICH input the runner applied each tick — appliedInputs[id].applied[k] is the input at tick k+1 (null = none, { input, held: true } = the last program input HELD afte… |
traceSeries | boolean | Also return the per-tick time series per numeric path — parallel {t, v} arrays (t in sim-ms; <=600 points, uniformly thinned). 'When exactly did the phase flip' in one call instead of bisecting. |
viewAs | string | Probe AS this player id: readState resolves through the sim's view(state, playerId) export — verify a hidden-information game hides what it should. Requires a view() export. |
get_account
Which plan is this user on, and what does it limit? Call this BEFORE building a server-authoritative (sim.js) game, and whenever a sim room is denied. Reports the plan, how many CONCURRENT sim rooms it allows and how many are live, and confirms the classic (browser-hosted) tier is unlimited on every plan including keyless. Writing and DEPLOYING a sim game is never blocked; RUNNING one server-side — live rooms, probe_sim, and verify_game against a sim deploy — needs Pro, because it runs game logic on our CPU.
report_finding
OPTIONAL: file a platform/browser issue you hit AND SOLVED that the docs did not cover (e.g. an iOS input quirk), so the docs improve for future agents. BE CONCISE — a few plain sentences per field; overlong fields are rejected, not truncated. A human reviews every finding; nothing is published automatically. File only once per issue.
| Parameter | Type | Description |
|---|---|---|
area * | string | Surface the issue lives in. |
fix * | string | What actually worked. ≤ 420 chars. |
severity * | string | How badly it bit. |
symptom * | string | What went wrong, observably. ≤ 280 chars. |
title * | string | One line, ≤ 80 chars. |
hash | string | Optional deploy hash the issue occurred in. |
snippet | string | Optional minimal code, ≤ 500 chars. |
set_room_target
Pool the visitors to a project's /p/<slug> link so STRANGERS WHO CLICK IT MEET EACH OTHER, instead of each landing in their own empty room. roomTarget is players per shared room: arrivals fill one to that number, then the next opens. Set it to the game's real roster (2 for a duel, 8 for a party game) — leave it unset and rooms take the platform cap of 16, which seats spectators past your roster. Pass null to turn pooling off. Use this for any game whose link gets POSTED PUBLICLY; a link sent to three named friends wants the default instead. REQUIRES the game to ask for the door (postMessage…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | The project to pool. |
roomTarget * | Players per shared room (1-16), or null to go back to a fresh room per visitor. |