Roves

AI playtesting and diagnostics

Let an AI agent play, inspect and diagnose a running Roves game through the player's MCP bridge.

Edit on GitHub

An MCP-enabled build of your game lets an AI agent (Claude Code, Codex, an IDE assistant) look at the running game, play it and inspect it. Build it with Packmaster's AI interaction (MCP) option, enable-mcp: 'true' in the GitHub Action, or roves bundle --enable-mcp, then connect the MCP server as described in the player page. Never ship an MCP-enabled build to players.

What an agent can do

  • See the game. screenshot returns what the window shows, canvas included. watch captures a short sequence of frames right after a click or key, so the agent can see an animation or a transition, not only the final state.
  • Read it as text. page_snapshot lists visible text and clickable controls with their positions; pixi_scene lists the PixiJS scene. Text costs an AI model far fewer tokens than images, so a good agent reads first and looks when it matters.
  • Play. click, press_key and type_text use the same input path as a real mouse and keyboard, so the game receives normal trusted events.
  • Inspect HTML and CSS. inspect_element shows an element's markup, computed styles and the CSS rules that match it, or which element sits under a given point when a click does nothing.
  • Diagnose. get_state reports loading and startup state, window size, frame counters and the last console lines without running page code; evaluate_script runs JavaScript in the page.

PixiJS scenes

The PixiJS Devtools browser extension cannot run inside the Roves player, but pixi_scene reads the same data it reads. Your game exposes its scene when it calls initDevtools({ app }) from @pixi/devtools (Pixi'VN games already do), or sets globalThis.__PIXI_APP__ = app.

Pixi'VN games

Pixi'VN's testing bridge (Game.testing) lets an agent read the dialogue and choices and advance the story directly. It is on during vite dev; to have it in an MCP build too, enable it when isMcpEnabled() from @drincs/roves-api/core returns true:

import { Game } from "@drincs/pixi-vn";
import { isMcpEnabled } from "@drincs/roves-api/core";

if (import.meta.env.DEV || isMcpEnabled()) Game.testing.enable();

Agent skills

Two agent skills teach an AI agent these workflows:

  • roves-playtest: playing and testing with few tokens, HTML/CSS inspection, PixiJS scene debugging.
  • roves-diagnostics: blank or stuck windows, console errors, input problems and frame-timing measurements.
npx skills add DRincs-Productions/roves --skill roves-playtest
npx skills add DRincs-Productions/roves --skill roves-diagnostics

On this page