AI playtesting and diagnostics
Let an AI agent play, inspect and diagnose a running Roves game through the player's MCP bridge.
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.
screenshotreturns what the window shows, canvas included.watchcaptures 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_snapshotlists visible text and clickable controls with their positions;pixi_scenelists 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_keyandtype_textuse the same input path as a real mouse and keyboard, so the game receives normal trusted events. - Inspect HTML and CSS.
inspect_elementshows 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_statereports loading and startup state, window size, frame counters and the last console lines without running page code;evaluate_scriptruns 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