MableConnect your AI

Guide · Updated 2026-11-24

Publish your HTML game from Claude Code, Codex or Cursor

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.

Mable MCP

Let your agent publish it

Connect Mable once. It is listed in the official MCP Registry as gg.mable/mable.

  1. Claude Code (then type /mcp to sign in)
    claude mcp add --transport http --scope user mable https://studio.mable.gg/mcp
  2. Codex
    codex mcp add mable --url https://studio.mable.gg/mcp && codex mcp login mable
  3. Cursor, Claude desktop or any app that adds a remote MCP server: use this address
    https://studio.mable.gg/mcp

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

Sign-in happens in your browser the first time the agent connects. No key to copy. One-click buttons for Claude and Cursor are on the Mable for AI tools page.

Under the hood

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.

After you publish

What your game gets

  • 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.

Choosing where to host

How Mable compares for a browser game

NeedMableGitHub Pages, Vercel, Netlifyitch.ioChat app share links (artifacts, canvases)
Built forBrowser games, especially phone games made with AIAny website or web appIndie games of every kind, including downloadsSharing a single chat output
Publishing from a coding agentOne MCP connection; the agent checks and publishesA Git repository or a deploy CLI, plus a project setupWeb upload of a zip, or the butler CLIFrom the chat or agent app that made it
Checks the game works on a phoneYes, a server playtest before publishingNoNoNo
People browsing for games to playYes, public games can reach the Mable feed after reviewNo, you bring every visitorYes, browse pages for indie gamesNo
Who playedPlayers and 30-second plays (plus traffic sources when available), readable by your agentPage-view analytics; add your own event tracking for gameplayViews, downloads and browser playsNo
Comments from playersYes, on the game pageNoYesNo

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

Questions about publishing

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.

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.

More answers in the Mable FAQ. This page as Markdown: publish-html-game.md