All posts

Build a game with your AI agent

House Studio has an MCP server, so an AI agent can build and upload a game with the same commands as our CLI: start from a template, verify the maths, check the bundle, upload, and read the checks.

Connect your agent

In Claude Code, it takes one line:

claude mcp add house-engine -- npx -y hbengine mcp

Then describe what you want, for example:

build a Greek temple slot with a sloth hero, 96.5% RTP, art in ./art

Or use the CLI yourself

The agent's tools match the command line, so you can run the same steps by hand:

npx hbengine connect
npx hbengine init my-game --template lines --slug my-game
cd my-game && npx hbengine verify && npx hbengine lint
npx hbengine upload

What happens after the upload

Your agent doesn't get a shortcut. Every upload goes through the same checks, and each one says why it failed:

  • math: a table does not verify, with the line and the reason.
  • scan: the bundle uses something we don't allow, such as network calls, storage, eval, or outcome logic in the browser.
  • boot: the page did not say it was ready.
  • bet: a round did not play through.
  • draws: after a round, the play area shows nothing.

An agent can read those results and fix the problem itself. Once the checks pass, a person reviews the game before it can go live.

What the maths has to prove

A game's RTP has to be between 90% and 99% per bet, and at most what your pack declares. The engine computes it exactly from the game's tables, so an agent can't claim a number the tables don't produce.

The docs cover the SDK and the templates in full.