glitchless-mcp 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
- package/src/context.js +2 -2
- package/src/tools/playtest.js +11 -8
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ above go in its environment.
|
|
|
112
112
|
| `glitchless_match` | A multiplayer game's matches (the worst by lag or disconnects on request), or one match from every side, 30 seconds at a time: each player's ping, frame time and outcome, the server's ticks, and whether the whole lobby lagged at once (the server) or one player did (their connection) |
|
|
113
113
|
| `glitchless_network` | Ping, lag (play over 150 ms), packet loss and disconnects by level, version, platform, kind of connection and region, with the worst matches and the network findings |
|
|
114
114
|
| `glitchless_servers` | A game's dedicated servers in server mode: servers running now and their players, tick time against its budget by players connected, map and version, crashes with the matches they ended, and memory that climbs. Every other tool reads them with service `<game>.server` |
|
|
115
|
-
| `glitchless_playtest` |
|
|
115
|
+
| `glitchless_playtest` | The game's autoplay bot plays it and the run is compared with a saved baseline ([glitchless-playtest](https://www.npmjs.com/package/glitchless-playtest)): a Unity, Godot, Unreal or GameMaker build from its `command`, a Roblox game in the open Roblox Studio (`engine: "roblox"`, over Studio's MCP server), or a web game in Chrome (needs Playwright in the game project) |
|
|
116
116
|
| `glitchless_deck` | Build the game, send it to the paired Steam Deck, add it to the Deck's library and optionally start it ([glitchless-deck](https://www.npmjs.com/package/glitchless-deck); pair once with `npx glitchless-deck pair`); with `measure: true`, measure a Unity, Godot or Unreal build there and compare it with a saved run |
|
|
117
117
|
|
|
118
118
|
The reads take `hours`, `version`, `env` (e.g. `prod`), `session_type` (`user` for players only, `tester` for people on TestFlight and other test builds, `synthetic` for bots, playtests and store test devices, `all`) and `props`, the session properties the game sets (`{ rank: "diamond" }`, or a list of values). Unless `env` or `session_type` is given, findings read the production sessions of players and say so; the other numbers count every session in the window.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glitchless-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"mcpName": "io.github.glitchless-gg/glitchless",
|
|
5
5
|
"description": "Coding agents can build a game. They can't see anyone play it. Glitchless lets them. The MCP server for Glitchless, game observability for coding agents: Claude Code, Codex, Cursor and others read real players' stutters, crashes, custom metrics and ranked findings in Unity, Godot, Unreal, Three.js, Roblox, Phaser and GameMaker games, build the game's own dashboard, and run playtest bots.",
|
|
6
6
|
"keywords": [
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@modelcontextprotocol/server": "^2.4.0",
|
|
69
69
|
"zod": "^4.6.7",
|
|
70
|
-
"glitchless-playtest": "^0.
|
|
70
|
+
"glitchless-playtest": "^0.3.0",
|
|
71
71
|
"glitchless-deck": "^0.1.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
package/src/context.js
CHANGED
|
@@ -9,7 +9,7 @@ import path from 'node:path';
|
|
|
9
9
|
import { McpServer } from '@modelcontextprotocol/server';
|
|
10
10
|
import { z } from 'zod';
|
|
11
11
|
|
|
12
|
-
export const VERSION = '0.
|
|
12
|
+
export const VERSION = '0.18.0';
|
|
13
13
|
|
|
14
14
|
// Where `glitchless-mcp login` keeps its workspace key: { url, token, workspace: { id, name }, scopes }.
|
|
15
15
|
export const CREDENTIALS_FILE = path.join(process.env.XDG_CONFIG_HOME || path.join(os.homedir(), '.config'), 'glitchless', 'credentials.json');
|
|
@@ -309,7 +309,7 @@ function instructions(remote) {
|
|
|
309
309
|
...(remote
|
|
310
310
|
? ['After shipping a fix (bump the version passed to Glitchless.init), use glitchless_compare_versions to confirm it with real players.']
|
|
311
311
|
: [
|
|
312
|
-
'Before changing game code, run glitchless_playtest with save_as "baseline"; after the change, run glitchless_playtest again to compare, and treat a FAIL as unfinished work. After shipping a fix (bump the version passed to Glitchless.init), use glitchless_compare_versions to confirm it with real players.',
|
|
312
|
+
'Before changing game code, run glitchless_playtest with save_as "baseline"; after the change, run glitchless_playtest again to compare, and treat a FAIL as unfinished work. It plays a web game in Chrome, runs a Unity, Godot, Unreal or GameMaker build from its command (command, e.g. ["godot", "--path", "."]) with the game\'s autoplay flags, or plays a Roblox game (engine "roblox") in the open Roblox Studio, which needs Studio\'s MCP server on. After shipping a fix (bump the version passed to Glitchless.init), use glitchless_compare_versions to confirm it with real players.',
|
|
313
313
|
'If the game is running in a browser with WebMCP connected, its live tools (glitchless_live_performance, glitchless_measure, glitchless_inspect_scene, and game tools such as zoomies_load_level) let you reproduce and measure issues directly. Unity, Godot, Unreal and GameMaker builds measure themselves when run with --glitchless-measure=SECONDS (-glitchless-measure in Unreal and GameMaker); in the Unreal editor, Unreal MCP with the Glitchless Toolset has a Measure tool.',
|
|
314
314
|
]),
|
|
315
315
|
].join(' ');
|
package/src/tools/playtest.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Unlike the read tools, this one acts: it launches browsers and writes
|
|
2
|
-
// in the project, so it is registered without the read-only hint.
|
|
1
|
+
// Unlike the read tools, this one acts: it launches browsers or the game's own build, or plays in Roblox Studio, and writes
|
|
2
|
+
// .glitchless/playtest/<name>.json in the project, so it is registered without the read-only hint.
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { playtest } from 'glitchless-playtest';
|
|
5
5
|
import { define, base, apiKey, defaultService, fail } from '../context.js';
|
|
@@ -8,17 +8,20 @@ define(
|
|
|
8
8
|
'glitchless_playtest',
|
|
9
9
|
{
|
|
10
10
|
description:
|
|
11
|
-
|
|
11
|
+
'Playtest the game with its autoplay bot and compare against a saved baseline. Call with save_as "baseline" BEFORE changing code, then without arguments AFTER the change; a FAIL lists the regressions, warnings and improvements are listed too. Web games (Three.js, Phaser, Babylon.js, PlayCanvas): bots play fixed-seed scenarios in real Chrome, one at a time, against the running game (game_url); this needs the Glitchless server running and Playwright installed in the project, and takes 1–5 minutes (quick: about 1). Unity, Godot, Unreal and GameMaker: give command (or "command" in glitchless.playtest.json), what starts the build, such as ["godot", "--path", "."] or an exported build; each scenario starts it with the game\'s own autoplay flags (by default two runs: --autoplay --seed=7, then --seed=21) plus --glitchless-measure, and the Glitchless SDK in the build measures 10 seconds per run (a scenario\'s "seconds") and quits; no server or browser is needed. The game needs an autoplay mode that reads those flags and keeps playing for the whole measure: if it quits sooner, or never starts a level with the default scenarios, the error says how to fix it. Roblox: give engine "roblox" (or "engine": "roblox" in glitchless.playtest.json); it plays the place open in Roblox Studio, which needs Studio open with its MCP server on (Assistant → … → Manage MCP Servers → Enable Studio as MCP server) and Allow HTTP Requests on, and studio (part of the place\'s name) when several Studios are open. Each scenario sets its params as Workspace attributes (by default autoplay = true, seed = 7, then seed = 21) for the game\'s bot to read, plays until workspace:GetAttribute("GlitchlessPlaytestDone") is true or 90 seconds pass, stops, and puts the attributes back; the play test\'s sessions are read back from the Glitchless server this tool reads, so the game\'s Glitchless.init has to send there. All compare slow frames, frame time p95 and p99, render and update CPU, draw calls, hitches, errors and crashes, overall and per level (an engine build also GPU time and what grew over a run, run by run). A headless build, or runs on different frame budgets, only warn on frame times. Runs are saved in .glitchless/playtest/ in the project.',
|
|
12
12
|
inputSchema: {
|
|
13
13
|
save_as: z.string().optional().describe('Save this run under a name, e.g. "baseline" before a change'),
|
|
14
14
|
compare_to: z.string().optional().describe('Saved run to compare with (default "baseline" when saved)'),
|
|
15
15
|
quick: z.boolean().optional().describe('Play only the first scenario (about a minute)'),
|
|
16
|
-
game_url: z.string().optional().describe('
|
|
17
|
-
|
|
16
|
+
game_url: z.string().optional().describe('Web games: the URL to play (default http://localhost:5173/ or glitchless.playtest.json)'),
|
|
17
|
+
engine: z.enum(['roblox', 'unity', 'godot', 'unreal', 'gamemaker']).optional().describe('"roblox" plays the place open in Roblox Studio; the others are told from command, so only needed when its name doesn\'t say (default: "engine" in glitchless.playtest.json)'),
|
|
18
|
+
studio: z.string().optional().describe('Roblox: which open Studio to play in, part of its place\'s name (needed when several are open)'),
|
|
19
|
+
command: z.array(z.string()).optional().describe('Unity, Godot, Unreal or GameMaker: the command that starts the build, e.g. ["godot", "--path", "."], ["./build/MyGame.x86_64"] or ["builds/MyGame.app"]; paths are from the project folder (default: "command" in glitchless.playtest.json)'),
|
|
20
|
+
max_seconds: z.number().min(10).max(600).optional().describe('Cap each run at this many seconds (an engine build: the seconds it measures)'),
|
|
18
21
|
},
|
|
19
22
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
|
|
20
23
|
},
|
|
21
|
-
async ({ save_as, compare_to, quick, game_url, max_seconds } = {}, ctx) => {
|
|
24
|
+
async ({ save_as, compare_to, quick, game_url, engine, studio, command, max_seconds } = {}, ctx) => {
|
|
22
25
|
const token = ctx?.mcpReq._meta?.progressToken;
|
|
23
26
|
let step = 0;
|
|
24
27
|
const log = (message) => {
|
|
@@ -30,7 +33,7 @@ define(
|
|
|
30
33
|
compareTo: compare_to,
|
|
31
34
|
quick,
|
|
32
35
|
maxSeconds: max_seconds,
|
|
33
|
-
config: { server: base(), api_key: apiKey() || undefined, service: defaultService() || undefined, game: game_url },
|
|
36
|
+
config: { server: base(), api_key: apiKey() || undefined, service: defaultService() || undefined, game: game_url, command: command?.length ? command : undefined, engine, studio },
|
|
34
37
|
log,
|
|
35
38
|
});
|
|
36
39
|
const files = Object.entries(r.files || {}).map(([k, f]) => `${k}: ${f}`).join('\n');
|
|
@@ -39,6 +42,6 @@ define(
|
|
|
39
42
|
return fail(err);
|
|
40
43
|
}
|
|
41
44
|
},
|
|
42
|
-
// It plays the game in Chrome on this computer, so it is not served over HTTP.
|
|
45
|
+
// It plays the game in Chrome, runs its build or drives Roblox Studio on this computer, so it is not served over HTTP.
|
|
43
46
|
{ local: true },
|
|
44
47
|
);
|