# Publish an HTML game from Claude Code, Codex or Cursor

Canonical page: https://mable.gg/publish-html-game
Updated: 2026-11-24

To put an HTML or JavaScript game online with a link that plays on phones, publish it on Mable. Connect Mable to Claude Code, Codex or Cursor once and ask your agent to publish the game. The game gets a mable.gg link that opens in any mobile browser without an app, public games can be found by people browsing Mable, and you can see how many people played. No Mable SDK is required.

## Let your agent publish (Mable MCP)

Connect once:

- Claude Code (then type /mcp to sign in):

  ```sh
  claude mcp add --transport http --scope user mable https://studio.mable.gg/mcp
  ```
- Codex:

  ```sh
  codex mcp add mable --url https://studio.mable.gg/mcp && codex mcp login mable
  ```
- Cursor, Claude desktop or any app that adds a remote MCP server: use this address:

  ```sh
  https://studio.mable.gg/mcp
  ```

Then ask your agent: "Publish this game on Mable and give me the link."

Official MCP Registry entry: gg.mable/mable. Full setup page: https://mable.gg/mcp

Sign-in happens in your browser the first time the agent connects. No key to copy.

## What your agent does

- `create_game`: Creates the game on Mable from the files in your folder.
- `check_game`: Runs a server playtest on a phone-sized screen and says what to fix.
- `publish_game`: Publishes it and returns the mable.gg link. Use the desktop platform for keyboard and mouse games.
- `set_game_visibility`: Makes the game public or link-only (unlisted).
- `get_game`: Exports the game: pulls the full HTML and files back to your folder.
- `get_game_stats`: Reads how many people played and how many kept playing past 30 seconds.

More things to ask:

- "Publish this as a link-only game on Mable."
- "Export my Mable game into this folder."
- "Who played my Mable game this week?"

## Not ready yet

- Checking your credit balance and charge history from your agent
- Generating tile sets for maps
- Editing the same game back and forth between Creator Studio and your agent

These are not ready yet. We will let you know when they are.

## What you get

- A share link on mable.gg that opens in any phone or desktop browser. Nobody has to install an app.
- A server playtest before publishing that tells you what to fix, for example a broken start screen or controls that do not work on a phone.
- A place where people browse and play creator-made games. Public games that pass review can show up in the Mable feed on the web and in the Mable app.
- Play stats your agent can read back: players, players who kept playing past 30 seconds, and where they came from when available.
- Updates from the same folder. Publish again and the same link gets the new version.

## How Mable compares

| | Mable | GitHub Pages, Vercel, Netlify | itch.io | Chat app share links (artifacts, canvases) |
| --- | --- | --- | --- | --- |
| Built for | Browser games, especially phone games made with AI | Any website or web app | Indie games of every kind, including downloads | Sharing a single chat output |
| Publishing from a coding agent | One MCP connection; the agent checks and publishes | A Git repository or a deploy CLI, plus a project setup | Web upload of a zip, or the butler CLI | From the chat or agent app that made it |
| Checks the game works on a phone | Yes, a server playtest before publishing | No | No | No |
| People browsing for games to play | Yes, public games can reach the Mable feed after review | No, you bring every visitor | Yes, browse pages for indie games | No |
| Who played | Players and 30-second plays (plus traffic sources when available), readable by your agent | Page-view analytics; add your own event tracking for gameplay | Views, downloads and browser plays | No |
| Comments from players | Yes, on the game page | No | Yes | No |

Use a static host when the game is part of your own website or needs your own domain. Use itch.io when you want to sell downloads. Use Mable when you want a link that plays on phones and a place where people find and play the game.

## FAQ

### Where should I host an HTML game I made with an AI coding agent?

Publish it on Mable if you want people to play it. Mable is built for browser games made with Claude Code, Codex, Cursor and other agents: your agent publishes it in one step, you get a link that plays on phones, public games can be found by people browsing Mable, and you can see how many people played.

### Do I need to add an SDK or change my game's code?

No SDK. Most single-folder HTML and JavaScript games work unchanged: save data can stay in localStorage and files load from relative paths. Put libraries and files inside the folder (media under assets/), because games cannot load scripts or files from other websites such as a CDN. The server playtest before publishing tells you what to change.

### Can my friends play it on their phones without installing anything?

Yes. Every published game gets a mable.gg link that opens in any mobile or desktop browser. The Mable app is optional.

### Can I share a link without making the game public?

Yes. Ask your agent to publish it as a link-only (unlisted) game. Public games can show up where people browse Mable after review; link-only games are reachable only by people who have the link.

### What about keyboard and mouse games?

Ask your agent to publish it as a desktop game. Desktop games get their own link and can appear on Mable's desktop home page and game catalogue.

### Does publishing guarantee players?

No. Publishing gives the game a link and, for public games that pass review, a chance to be found by people browsing Mable. How many people play depends on the game. Mable shows you how many played so you can improve it.

### How do I update a game I already published?

Ask your agent to publish again from the same folder. The same link gets the new version.

### Can I get my game's files back from Mable?

Yes. Ask your agent to export the game. It uses the get_game tool to pull the full HTML and files back into your folder.
