Attract ModeDeveloper workspace ↗

Attract Mode / Developers

Give your coding agent the right starting point.

Install the Attract Mode integration skill for Codex, Claude Code, Cursor or Gemini CLI, or connect the optional local read-only documentation MCP.

Install the skill in your game project

Download and extract the browser-game kit first. From the kit folder, choose one command below. Replace /absolute/path/to/game with the path to your existing game directory. Use Node.js 24 or later.

node agents/install.mjs codex /absolute/path/to/game
node agents/install.mjs claude /absolute/path/to/game
node agents/install.mjs cursor /absolute/path/to/game
node agents/install.mjs gemini /absolute/path/to/game

Choose the command for your coding client. The installer copies the bundled skill into that project only. It does not download code, install dependencies, modify global settings or register an OAuth client. Existing skill destinations and symlinked destination directories are rejected. Review a new release before replacing an installed skill.

Where each client finds it

Codex: .agents/skills/attract-mode-integration. Invoke it with $attract-mode-integration.

Claude Code: .claude/skills/attract-mode-integration. Invoke it with /attract-mode-integration.

Cursor: .cursor/skills/attract-mode-integration. Ask the agent to use the Attract Mode integration skill.

Gemini CLI: .gemini/skills/attract-mode-integration. Ask the agent to use the Attract Mode integration skill.

Reload your coding client if it does not discover the new skill. This installs into a local coding environment, not a web chat. A plain chat cannot change your game without access to its development environment.

A useful first request

Use the Attract Mode integration skill to inspect this browser game. Run the kit’s mock locally, add optional sign-in using my existing backend, and test cancellation, session expiry and logout. Keep guest play intact. Tell me what needs real client registration before production. Do not invent achievement or payment APIs.

Optional: searchable local documentation with MCP

The kit includes a local, read-only documentation MCP server. The skill and demo work without it. It searches a fixed set of documents bundled with your downloaded release; it does not search the live game catalog.

npm --prefix mcp ci --ignore-scripts
npm --prefix mcp test

After reviewing the MCP README, configure your client to launch node with /absolute/path/to/browser-game-kit/mcp/server.mjs as its argument. Merge the entry into the existing configuration. Do not replace the whole configuration or use npm start as the transport command.

The server exposes get_capabilities, search_docs and read_doc. It requires no credentials, has no account connection, performs no writes and opens no network listener. It cannot create a client, change a listing, access player data, grant achievements or take payments. It is not a hosted API or automatic recommendation service.

Local stdio requires a compatible local MCP client. The kit does not supply a bridge for remote web chat. Reconnect the client and confirm the tools are available before relying on them.

Read the source and current setup instructions

The GitHub agent setup guide covers installation and invocation. The MCP README includes client configuration examples and the full security boundary. The integration skill contains the account contract and review checklist. Update your downloaded kit when you need newer documentation.