Claude link
Ask Claude for a change in plain words ("add ten coins and a score", "let the player drive the car") and watch it happen in the editor. Claude reads your project, adds objects, components, behaviors, events and scripts, then plays the game to check its work, and tells you what it did.
It runs on your own Claude plan (Pro and up) through Claude Code or Claude Desktop on your computer. Nothing passes through our servers: Claude talks to a small program on your computer, and the editor in your browser talks to that program.
What you need
- A computer (Windows, macOS or Linux). The link doesn't work on a phone.
- Node.js 20 or newer.
- Claude Code or Claude Desktop, signed in to your Claude account.
- The editor open in Chrome or Edge.
Set it up (once)
1. Download the link. Save claude-link.mjs in a folder where it can stay, for example Documents/TinyGameEngine/claude-link.mjs.
2. Add it to Claude.
With Claude Code, run this in a terminal, with the path of the file you saved:
claude mcp add tiny-game-engine -- node "C:/Users/you/Documents/TinyGameEngine/claude-link.mjs"
Keep the quotes, and type the whole command on one line. claude mcp list should then show tiny-game-engine.
With Claude Desktop, open Settings → Developer → Edit Config and add the link to claude_desktop_config.json:
{
"mcpServers": {
"tiny-game-engine": {
"command": "node",
"args": ["C:/Users/you/Documents/TinyGameEngine/claude-link.mjs"]
}
}
}
Then quit Claude Desktop and start it again.
3. Turn the link on in the editor. Open editor.jeevagames.com/?mcp=1 once. The editor remembers it. ?mcp=0 turns it off again. If the browser asks whether the page may reach devices on your local network, allow it: that is how it reaches the link on your computer.
4. Open a project. The editor connects while a project is open. Start Claude (or a new Claude Code session) and ask away.
Using it
Say what you want, as you would to a person:
- Make the player a character from the library and give it a joystick and a jump button.
- Put a car next to the player. The Enter button gets in and out.
- Add twelve coins around the map, a coin counter and a 60-second timer, then a Game over panel with Play again.
- Make a title screen with a Play button, and a second level with more enemies.
- Make a 2D platformer level: ground with gaps, floating platforms, coins and a flag at the end.
- Add a jump sound, a coin sound and some cheerful background music.
- Make a chill hip-hop loop at 90 BPM in A minor for the menu, with a bass line and soft chords.
- Draw a striped pattern and put it on the crate instead of the coin.
- The car drives too fast and slides on corners. Fix it.
- Why does my player fall through the floor?
Each change shows up in the editor as Claude makes it. Claude starts by reading the project and the parts it will change, so it builds on what you have rather than replacing it.
Events first
Claude writes game logic as event sheets so you can read and change it yourself. It uses scripts for heavy logic, when you ask for code, or when your project already keeps its logic in scripts. Events it adds come in named groups with comments.
Claude reads and writes events as short indented text, one line per event or row, with the same ids the sheet uses:
group "Coin hunt":
when object.collidesWith Player(other: Coin):
object.destroy Coin
system.addToVar(var: Score, value: 10)
This reaches the sheet as normal events: you see and edit them in the event sheet as usual.
Every event is checked before it goes in: a wrong condition, a missing value or a broken expression is sent back to Claude to fix, with the line it is on, and nothing half-done reaches the sheet. Scripts go through the same type checker as the code editor.
Many steps at once
For a batch of work (ten coins, a HUD and the events for them), Claude can send one short script that makes all the changes in a row instead of asking the editor for each one. That is much faster and uses less of your Claude plan. The script can only use Claude's editor tools: it can't reach the page or the internet. It stops at the first step that fails and tells Claude which one; what ran before stays done.
Play tests
After building gameplay, Claude runs the game in the editor's dock to test it. It can hold keys on a timeline (walk, jump, press Enter at 2 seconds) and tap on-screen buttons by name, then gets back:
- errors and log messages,
- where the objects it follows went, second by second, and which vehicle they ride,
- the values of variables, and the texts shown on screen,
- a picture of the game screen at the end, with its UI, and pictures at the moments it asks for (the top of a jump, a pickup as it goes).
A test can run up to two minutes of game time. To check the end of a level without playing all of it, Claude can set variables when the test starts (the timer at 3 seconds, the score one coin short), and your project stays as it was.
The game runs frame by frame for this, so the same test gives the same result every time.
Checking the whole project
After a batch of changes Claude can check everything in one go: every event sheet (as strictly as when events are added), every script (with the code editor's type checker), the saved tests, and the scenes. The scene checks catch mistakes that show no error while the game runs:
- No light: lit objects in a scene with no light get only the ambient light, so dark colors look black.
- No camera: nothing of the scene shows when it plays.
- Falls forever: an object with a rigidbody has nothing under it to land on. When something is below it at a different depth (a 2D level's floor at another z), both are named with where they are.
Each problem comes with a short code (event, script, test, scene-no-light, scene-no-camera, falls-forever), so Claude can tell what changed between two checks. Colliders are checked in the scene open in the editor.
Undo
Changes Claude makes close together (within a minute, with nothing of yours in between) are one undo step, named Claude: … in the undo list. One Undo takes back a whole request.
What Claude can change
| Scenes | Make levels and screens (a title screen, level 2, game over), copy a scene, open one, rename it, choose the start scene and the loading screen, delete one. |
| Prefabs | Make a prefab from an object, place copies in a scene, and spawn it while the game runs. Placed copies stay linked: Claude can list a copy's overrides and apply or revert them, or unpack it, make variants, and nest prefabs. To change a prefab, Claude changes a placed copy and applies it. |
| Objects | Add shapes, models and empty objects, copy them, move, rename, parent, hide, delete. Objects with the same name are one object type, so a change to "Coin" changes every coin. |
| Components and behaviors | Add, change and remove any component (collider, rigidbody, light, UI, particles, sound…) and behavior (platformer, car, camera follow…). Field names and values are checked. |
| Models | Search the free model library and bring models into the project. |
| Sounds and music | Add the free sound effects (coins, jumps, hits, explosions, menu clicks, engine loops), make retro sound effects from presets (coin, jump, laser, explosion, power-up…), write music as notes, and make beats and songs in the beat maker (drums, bass lines, chords, patterns put together into a song, the mixer), which you can then open with Edit beat and change by hand, or ask Claude to change. Claude can't hear them: listen with ▶ in Files and say what to change. |
| Pictures | Draw pictures (icons, patterns, simple sprites and sprite sheets, textures) and redraw them in place. Claude sees each picture it draws. |
| 2D | Bring in the bundled 2D platformer art as ready sprites (hero, slime, coin, flag, spikes, tiles, hills), turn any picture into a sprite sheet with frames and animations, add sprite objects, and paint and read tilemaps. |
| Event sheets | Read a sheet, find conditions and actions, add events anywhere in it (with sub-events, Else, OR, groups, comments, variables, functions and JavaScript blocks), change and delete them. |
| Scripts | Read, write, attach and delete scripts, and look up the scripting API. |
| Scene and project | The environment (sky, fog, light) and project settings, including the joystick and on-screen buttons. |
| Baked lighting | Mark objects as static, set lights to Baked or Mixed, add light probe volumes, and run Generate Lighting (or clear it), with its settings. Mark occluders and occludees and bake occlusion culling. |
| Tests | Save gameplay tests (keys and taps on a timeline, checks that must be true), run them and read which checks failed. |
| Looking | A picture of the editor's view (as you see it, side on with the whole level in frame, or close up on the objects it names, with collider outlines when it asks), where each collider is in the world, play tests, and a check of the whole project. |
Claude works on the scene open in the editor. When it makes a scene or moves on to another one, the editor opens that scene, so you see each change where it happens.
Good to know
- One Claude at a time. The link uses port 7310 on your computer, and one Claude session holds it. A second session waits and takes over when the first one closes. In Claude Code,
/mcpreconnects the link. - Keep the editor open. Claude works through the open editor tab. If you close it, Claude asks you to open it again.
- Only the editor can connect. The link answers only the editor's own site, so other web pages can't reach it.
- It is your project. Claude changes what you ask for and keeps the rest. Save, or keep a backup, before big changes, as you would with any edit.
When it doesn't work
| What you see | What to do |
|---|---|
| Claude says the editor isn't connected | Open the editor with ?mcp=1 in Chrome or Edge and open a project. Reload the tab if it was already open. |
| Claude has no Tiny Game Engine tools | In Claude Code, run claude mcp list and check the path in the command. Restart Claude Desktop after changing its config. |
| The link never connects | Another Claude session may be holding it: close that session, or run /mcp in the one you want. Check that Node.js is 20 or newer (node --version). |
| New tools are missing after an editor update | Reload the editor tab, then run /mcp in Claude Code (or restart Claude Desktop). |
| A play test shows only the end picture | The link file is older than the editor: download claude-link.mjs again and put it where the old one was. |