AI agents

How to make a game with Claude Code and ship it

How to make a game with Claude Code: connect two MCP servers, start from a ready project with accounts and a store, generate art, and deploy to your own link.

To make a game with Claude Code, create an app on iDos Games, connect Claude Code to the two iDos Games MCP servers, load the idosgames-getting-started skill and describe the game. The agent then builds on a real project instead of an empty folder: sign-in, saved progress, a store, leaderboards and multiplayer rooms run on our backend, art and sound come from the same connection, and one command deploys the game to its own link.

Most tutorials start Claude Code in an empty folder and end with an HTML file on your laptop. That is a fine way to learn, but it is not a game other people can play: there are no accounts, nothing is saved between sessions, and the game lives on one computer. This guide covers the other half.

Why Claude Code needs a backend for games

Claude Code writes a game client fast. Ask it for a Phaser shooter and you get one in minutes. The trouble starts the moment the game has to remember something:

What the game needsEmpty folderWith iDos Games
Player accountswrite auth yourselfsign-in is in the project
Saved progress and inventorylocalStorage, lost with the browserstored on the server
A store with real pricesprices in the client, easy to cheatevery purchase checked on the server
Leaderboardsneeds a databaseready system, weekly resets included
Playing with friendsneeds a realtime servermultiplayer rooms
Hostingfind it, set it up{id}.idos.games after deploy

Each row is a week of work if the agent writes it from scratch, and a security hole if it writes it badly. With MCP the agent calls ready parts instead.

Step 01Create the app

Create the app once on Create or in the dashboard. The agent works with apps that already exist in your account and finds them by name. You can skip the AI coder there and go straight to Claude Code. The agent can also create a new app itself with create_title, if you allow "Create new apps" when signing in.

Step 02Connect the two MCP servers

In a terminal:

Terminal
claude mcp add --transport http idosgames https://site.idosgames.com/api/v2/mcp
claude mcp add idosgames-registry -- npx -y @idosgames/mcp

The first one is remote: it reads and changes your apps, generates assets and deploys builds. The second one runs on your machine: it gives the agent the project scaffold, ready modules and a skill for every part of the SDK.

Restart Claude Code, run /mcp and sign in to "idosgames" in the browser window that opens. You choose which apps the agent may touch. No API keys, nothing to paste into config files. All options are in building with AI agents over MCP.

Step 03Start the project with a skill

Ask Claude Code:

Load the skill idosgames-getting-started and build my app "Coin Arena": a top-down arena where the player dodges projectiles and collects coins. Phaser, neon style.

The agent finds the app, scaffolds the project from the SDK and puts the game inside the lobby. Sign-in, profile, inventory, friends, invites, quests and mail are already there. How the pieces fit: SDK overview.

A tip from our own use: keep the first request to one mechanic, exactly like in the AI coder. Claude Code will happily build five systems in one go, and you will spend the evening finding which one broke the other four.

Step 04Add game systems in plain words

When you ask for something the platform has, the agent installs the ready system instead of writing a backend:

  • "Add a leaderboard by best score with weekly resets."
  • "Add a store with three coin packs and a daily deal."
  • "Let friends play together in a room."
  • "Give a reward for logging in seven days in a row."

Settings such as prices, rewards and quest goals live on the server and are changed over MCP, without a new build. That is handy later: you can retune the economy of a live game with one sentence.

Leaderboards
12 450
320
Weekly!
Season
My score12 840
Rank#7
Ends in 2d 04:13
Rewards
Play
ShadowFox25 120
2Mira22 980
3KnightOwl19 400
4Pixel_Pete15 210
5Luna14 030
6Arrow13 115
7You12 840
8Grizzly11 900
Every enabled board is a tab; the badge means a reward is waiting.
The player card: score, rank and the countdown to the end of the round.
Rank and points rewards open from here; "Play" leads to the game mode.
Medals for the top three, the player is highlighted in the list.
Example. The leaderboard screen: the player card with the round timer and the top list.

Step 05Generate art, sound and 3D

The remote server generates images, sound effects, music, video and 3D models, and puts them where the game needs them:

Generate a sprite for the player ship, an enemy drone and a looping synthwave background track, and use them in the game.

Generations spend the AI credits of your plan, then your Aspis. Ask the agent to run estimate_media_cost first if you want the price before anything is spent. For a 3D game it can also make a model, give it a skeleton and put ready idle, walk and run animations from the platform library on it.

Step 06Test, then deploy

Build the game, upload the build to the test copy and give me the link.

The test copy opens at {id}-dev.idos.games. Play it on your phone, fix what feels wrong, then:

Deploy the tested build to players.

The game goes live at {id}.idos.games. The build you tested is the build players get: nothing is rebuilt on deploy, and a rollback is one click in the dashboard. When you are ready for strangers, publish the game to the idosgames.com catalog. Details: publishing.

Prompts that work well with Claude Code

  • Say the outcome, not the file. "Coins should fly to the counter when collected" beats "edit Coin.ts".
  • Ask it to check its own work. "Run the type check and fix what fails" catches most breakage before you look.
  • Point it at the skill. "Use the skill for the store" keeps it on the ready system instead of inventing one.
  • Keep secrets out of the client. Prices, rewards and drop rates belong in server settings, not in code.

Real games made this way

The rules of our Solana hackathon allowed either the iDos Games AI coder or your own agent, such as Claude Code, Codex or Cursor, connected over MCP. All 20 winning games run on the same engine and open in a browser. If you prefer chat to a terminal, the same platform has a built-in AI coder: see how to make a game with AI.

After the first release

Aidos Ryskeldinov

About the author

Founder of iDos Games

Lifelong gamer and tech enthusiast. Since 2020 I have been building and shipping cross-platform games and apps, and today I'm building iDos Games: a platform where anyone can make a game with AI, put it live at its own link and earn from it. Here I share how to make games faster and easier than you'd think.

Frequently asked questions

Can Claude Code make a full game, not just code snippets?

Yes, when it has a backend and a project to build on. Connected to iDos Games over MCP, Claude Code gets a ready project with sign-in and a lobby, game systems on a real server, asset generation and a deploy command, so the result is a live game with a link.

Do I need an API key?

No. The remote MCP server uses sign-in in the browser. On first use you sign in to iDos Games and choose which apps the agent may work with.

Does this work with Cursor, Codex or ChatGPT?

Yes. Both iDos Games MCP servers work with any MCP client. The setup for each client is on idosgames.com/mcp.

Which game libraries can Claude Code use?

The project is TypeScript with React. Phaser for 2D and three.js for 3D are ready to use, together with the iDos Games SDK packages.

Where is the game hosted and what does it cost?

On iDos Games, at {id}.idos.games. Hosting is part of your plan. Asset generation spends the AI credits of the plan, then your Aspis; the agent can check the price first.

Learn more in the documentation

Make your own game

Describe the idea in a sentence - the AI coder builds it, and it goes live at its own link.

All articles