glitchless-mcp 0.19.1 → 0.20.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 +2 -2
- package/package.json +1 -1
- package/src/context.js +3 -3
- package/src/setup-guide.js +31 -17
- package/src/skills.js +6 -5
- package/src/tools/analytics.js +1 -1
- package/src/tools/core.js +1 -1
- package/src/tools/dashboard.js +5 -5
- package/src/tools/revenue.js +11 -2
- package/src/tools/store-reviews.js +38 -9
- package/src/tools/workspace.js +2 -2
package/README.md
CHANGED
|
@@ -107,8 +107,8 @@ above go in its environment.
|
|
|
107
107
|
| `glitchless_compare_versions` | Two or more versions side by side, in the game's own stats first, to confirm a fix with real players |
|
|
108
108
|
| `glitchless_session` | One play session in detail, with its whole event timeline |
|
|
109
109
|
| `glitchless_bug_reports` | Bug reports players sent from inside the game: their notes, levels, positions and sessions, and one report's screenshot when asked |
|
|
110
|
-
| `glitchless_store` | For a game connected to a store (Glitchless Cloud: Steam, Google Play, the App Store, Roblox): what players wrote there, by store, build or version, sentiment, topic (stutter, lag, fps, freeze, crash), device and, on Steam, Steam Deck, each build with the frame-time p95 and crash-free sessions measured on it; with `show: "vitals"`, what Google Play (slow rendering, crash and ANR rates, the slowest devices and GPUs) or the App Store (hang rate, launch time, animation hitches, hang signatures) or Roblox (crash rate and frame rate by place version and platform, and its retention) measured of each version, next to what Glitchless measured, and where the two disagree |
|
|
111
|
-
| `glitchless_revenue` | For a game connected to RevenueCat, its own Stripe account or
|
|
110
|
+
| `glitchless_store` | For a game connected to a store (Glitchless Cloud: Steam, Google Play, the App Store, Roblox, itch.io): what players wrote there, by store, build or version, sentiment, topic (stutter, lag, fps, freeze, crash), device and, on Steam, Steam Deck, each build with the frame-time p95 and crash-free sessions measured on it; with `show: "vitals"`, what Google Play (slow rendering, crash and ANR rates, the slowest devices and GPUs) or the App Store (hang rate, launch time, animation hitches, hang signatures) or Roblox (crash rate and frame rate by place version and platform, and its retention) measured of each version, next to what Glitchless measured, and where the two disagree; with `show: "sales"`, what the store counted by day: Steam's units, returns and wishlists, or itch.io's page views, downloads and purchases next to the browser plays Glitchless measured on itch.io |
|
|
111
|
+
| `glitchless_revenue` | For a game connected to RevenueCat, its own Stripe account, Roblox or itch.io (Glitchless Cloud; `source` picks one, else each): its real revenue by day and revenue per player measured. RevenueCat's (production purchases only): installs (new customers) and active users, MRR, active subscriptions and trials, and revenue by version where RevenueCat splits it. Stripe's: refunds, disputes, fees and net, new paying customers, revenue by product, and by version and platform for purchases the game tied to a session. Roblox's: Robux earned (and what they'd be worth through DevEx), paying users, daily active and new users, and D1, D7 and D30 retention. itch.io's: its earnings by day, from the first sync (itch.io gives a total only). All next to the sessions, players and new players Glitchless measured and what the game's own purchase events add up to |
|
|
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` |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glitchless-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.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": [
|
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.20.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');
|
|
@@ -320,8 +320,8 @@ function instructions(remote, manage = true) {
|
|
|
320
320
|
'When players or playtesters send bug reports from inside the game (an F8 form or a button), glitchless_bug_reports lists them with what they wrote, the level and where they stood, and opens one with its screenshot.',
|
|
321
321
|
'For metrics the game defines itself (what it sends with track() and count(): plays, purchases, paywall views, kills and gold, and so on) and funnels between them, use glitchless_events; it also lists the session properties the game sets (rank, class, region), which every read tool takes as props.',
|
|
322
322
|
'For a multiplayer game, glitchless_network gives ping, packet loss and disconnects by level, region, platform, kind of connection and version; glitchless_match lists matches or opens one from every side, telling a whole lobby lagging (the server) from one player lagging (their connection); and glitchless_servers reads the game\'s dedicated servers (tick time against its budget by players connected, crashes that ended matches, memory that climbs).',
|
|
323
|
-
'For a game connected to a store (Steam, Google Play, the App Store, Roblox), glitchless_store reads what players wrote there by build, with the hardware and Steam Deck playtime reviewers show, next to what Glitchless measured on that build,
|
|
324
|
-
"For a game connected to RevenueCat or to its own Stripe account, glitchless_revenue reads its real revenue by day, version and country (RevenueCat: production purchases only, by store too, installs and active users; Stripe: refunds, fees, net, new paying customers and revenue by product), next to the sessions, players and new players Glitchless measured and what the game's own purchase events add up to. For a Roblox game connected to Roblox, it reads the Robux it earned (and what they'd be worth through DevEx), its daily active and new users and its D1, D7 and D30 retention, which the anonymous Roblox SDK can't count.",
|
|
323
|
+
'For a game connected to a store (Steam, Google Play, the App Store, Roblox, itch.io), glitchless_store reads what players wrote there by build, with the hardware and Steam Deck playtime reviewers show, next to what Glitchless measured on that build, with show "vitals" what the store itself measured (slow rendering, crashes, ANRs, hangs; on Roblox, crash rate and frame rate by place version and platform, and its retention) next to Glitchless, version by version, and with show "sales" what it counted by day (Steam\'s units, returns and wishlists; itch.io\'s page views, downloads and purchases, next to the browser plays Glitchless measured on itch.io).',
|
|
324
|
+
"For a game connected to RevenueCat or to its own Stripe account, glitchless_revenue reads its real revenue by day, version and country (RevenueCat: production purchases only, by store too, installs and active users; Stripe: refunds, fees, net, new paying customers and revenue by product), next to the sessions, players and new players Glitchless measured and what the game's own purchase events add up to. For a Roblox game connected to Roblox, it reads the Robux it earned (and what they'd be worth through DevEx), its daily active and new users and its D1, D7 and D30 retention, which the anonymous Roblox SDK can't count. For a game connected to its itch.io page with an API key, it reads its earnings there by day.",
|
|
325
325
|
"Each game has its own dashboard, a list of pages (boards of panels, and built-in views such as Errors, Sessions and Live Tail): read it with glitchless_dashboard, and after instrumenting a game, design one that fits it with glitchless_set_dashboard.",
|
|
326
326
|
...(remote
|
|
327
327
|
? ['After shipping a fix (bump the version passed to Glitchless.init), use glitchless_compare_versions to confirm it with real players.']
|
package/src/setup-guide.js
CHANGED
|
@@ -31,12 +31,14 @@ const EXTRAS = {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
// The signs of each engine in a project's files and package.json dependencies, a native engine's first: its project
|
|
34
|
-
// file wins over a package.json kept for tooling.
|
|
34
|
+
// file wins over a package.json kept for tooling. A Reddit app (Devvit Web) comes before them all: its steps (the
|
|
35
|
+
// relay) lead, and the engine its client is made with follows (a web game's package, or a Unity or Godot web build).
|
|
35
36
|
const SIGNS = [
|
|
37
|
+
['reddit', /(^|\/)devvit\.(json|yaml)$|^@devvit\/(web|server|client|start)$|^devvit$/],
|
|
36
38
|
['unreal', /\.uproject$/],
|
|
37
|
-
['godot', /(^|\/)project\.godot$/],
|
|
39
|
+
['godot', /(^|\/)project\.godot$|\.pck$/],
|
|
38
40
|
['gamemaker', /\.yyp$/],
|
|
39
|
-
['unity', /(^|\/)(projectsettings(\/projectversion\.txt)?|projectversion\.txt|packages\/manifest\.json|assembly-csharp\.csproj)$|\.unity
|
|
41
|
+
['unity', /(^|\/)(projectsettings(\/projectversion\.txt)?|projectversion\.txt|packages\/manifest\.json|assembly-csharp\.csproj)$|\.unity(web)?$/],
|
|
40
42
|
['roblox', /\.project\.json$|(^|\/)wally\.toml$|\.rbxlx?$|\.(server|client)\.luau?$/],
|
|
41
43
|
['threejs', /^(three|@react-three\/fiber|three(\.module)?(\.min)?\.js)$/],
|
|
42
44
|
['phaser', /^phaser((\.min)?\.js)?$/],
|
|
@@ -58,8 +60,11 @@ export function engineFrom(files = []) {
|
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
// The engine a call names (engine) or its files do: { engine: one of ENGINES or null, sign, also: other engines' names }.
|
|
63
|
+
// An engine named with files that name a Reddit app is that app's client: Reddit's steps, then the engine's.
|
|
61
64
|
export function pickEngine({ engine, files } = {}) {
|
|
62
|
-
|
|
65
|
+
let found = engine ? { engine, sign: null, also: [] } : engineFrom(files);
|
|
66
|
+
const app = engine && engine !== 'reddit' ? engineFrom(files) : null;
|
|
67
|
+
if (app?.engine === 'reddit') found = { engine: 'reddit', sign: app.sign, also: [engine] };
|
|
63
68
|
return { engine: ENGINES.find((e) => e.id === found.engine) ?? null, sign: found.sign, also: found.also.map((id) => ENGINES.find((e) => e.id === id)).filter(Boolean) };
|
|
64
69
|
}
|
|
65
70
|
|
|
@@ -134,7 +139,7 @@ function relink(text, from, carried) {
|
|
|
134
139
|
// the game the call named couldn't be made, such as a plan with no room for another);
|
|
135
140
|
// { server: url } a Glitchless server somewhere else, which this MCP server reads with no workspace;
|
|
136
141
|
// { local: url } a Glitchless server on this computer.
|
|
137
|
-
function sending(where, engine) {
|
|
142
|
+
function sending(where, engine, again = `engine: "${engine.id}"`) {
|
|
138
143
|
const head = '## Where this game sends\n\nThese go where the steps below put the intake URL and client token (their examples show a local server, http://localhost:7777 and gl_pub_dev).';
|
|
139
144
|
const pub = "It's public and can only send data, so it may live in the game's source. A key that starts gl_sk_ or gl_ws_ never goes in the game.";
|
|
140
145
|
if (where.cloud) {
|
|
@@ -144,9 +149,9 @@ function sending(where, engine) {
|
|
|
144
149
|
? `${where.game.client_token} (${where.game.name}'s). ${pub}`
|
|
145
150
|
: `${where.game.name} has no active client token: ask the person to make one in Glitchless (${where.dashboard ?? 'the dashboard'}, Settings → Keys & access).`
|
|
146
151
|
: where.blocked
|
|
147
|
-
? `none yet: the game wasn't made (${where.blocked.replace(/\.$/, '')}).${where.others?.length ? ` If this game is one already here (${where.others.join(', ')}), call glitchless_create_game again with game set to its name and
|
|
152
|
+
? `none yet: the game wasn't made (${where.blocked.replace(/\.$/, '')}).${where.others?.length ? ` If this game is one already here (${where.others.join(', ')}), call glitchless_create_game again with game set to its name and ${again}, and the steps come with its client token. Otherwise tell the person why, and ask which they want.` : ' Tell the person why.'}`
|
|
148
153
|
: where.can_make
|
|
149
|
-
? `none yet. Call glitchless_create_game again with name (the game's name, as players know it) and
|
|
154
|
+
? `none yet. Call glitchless_create_game again with name (the game's name, as players know it) and ${again}: it makes the game and returns these steps with its client token.${here}`
|
|
150
155
|
: `none yet, and this connection may only read, so it can't make the game: ask the person to add it in Glitchless (${where.dashboard ?? 'the dashboard'}), then call this again with game set to its name. Or they connect again with "Create games and share links" ticked.${here}`;
|
|
151
156
|
return [
|
|
152
157
|
head,
|
|
@@ -173,38 +178,47 @@ function sending(where, engine) {
|
|
|
173
178
|
// cut to this game, the engine's own reference (with, for Godot, the README parts it sends the agent to), what it
|
|
174
179
|
// borrows from other references, and the skill's last sections (the game's own metrics, a jam room, the report).
|
|
175
180
|
// picked: what pickEngine answered; where: sending()'s.
|
|
176
|
-
export function instrumentGuide({ engine, sign, also = [] }, where) {
|
|
177
|
-
|
|
181
|
+
export function instrumentGuide({ engine: picked, sign, also = [] }, where) {
|
|
182
|
+
// A game in a Reddit post: Reddit's steps (the relay), then those of the engine its client is made with, if known.
|
|
183
|
+
const reddit = picked.id === 'reddit' ? picked : null;
|
|
184
|
+
const engine = reddit ? (also.find((e) => e.id !== 'reddit') ?? null) : picked;
|
|
185
|
+
if (reddit) also = also.filter((e) => e !== engine);
|
|
186
|
+
const lead = reddit ?? engine;
|
|
187
|
+
const extras = (engine && EXTRAS[engine.id]) ?? {};
|
|
178
188
|
const [top, settings, ...rest] = sections(body(TEXTS[INSTRUMENT])).filter((s) => s.level <= 2);
|
|
179
|
-
const ref = body(TEXTS[engine.ref]);
|
|
189
|
+
const ref = engine ? body(TEXTS[engine.ref]) : '';
|
|
180
190
|
const readme = extras.readme ? sections(TEXTS[extras.readme.path]).filter((s) => extras.readme.parts.includes(s.title)) : [];
|
|
181
|
-
const
|
|
182
|
-
const
|
|
191
|
+
const own = [INSTRUMENT, ...(reddit ? [reddit.ref] : []), ...(engine ? [engine.ref] : [])];
|
|
192
|
+
const lent = engine ? borrowed(engine.ref, ref, new Set(own)) : [];
|
|
193
|
+
const carried = new Set([...own, ...readme.map((s) => `${extras.readme.path}#${s.slug}`), ...lent.flatMap((b) => b.sections.map((s) => `${b.file}#${s.slug}`))]);
|
|
183
194
|
|
|
184
195
|
// The skill's table of every engine becomes the one line about this game.
|
|
185
196
|
const lines = settings.text.split('\n');
|
|
186
197
|
const table = lines.findIndex((l) => l.startsWith('|'));
|
|
187
198
|
const end = lines.findIndex((l, i) => i > table && !l.startsWith('|'));
|
|
188
|
-
|
|
199
|
+
const order = [...(reddit ? [`"${nameOf(reddit.ref)}"`] : []), ...(readme.length ? ["the addon's README"] : []), ...(engine ? [`"${nameOf(engine.ref)}"`] : [])];
|
|
200
|
+
const what = reddit ? `a game in a Reddit post${engine ? `, its client made with ${engine.name}` : ''}` : engine.name;
|
|
201
|
+
if (table >= 0) lines.splice(table, end - table, `This game: ${what}${sign ? ` (${sign})` : ''}. Its steps follow these settings${order.length > 1 ? `: ${order.slice(0, -1).join(', ')} first, then ${order.at(-1)}` : `, under ${order[0]}`}.`);
|
|
189
202
|
|
|
190
203
|
const out = [
|
|
191
|
-
`# Add Glitchless to this ${engine.name} game`,
|
|
204
|
+
`# Add Glitchless to this ${reddit ? `${reddit.name}${engine ? ` (${engine.name})` : ''}` : engine.name} game`,
|
|
192
205
|
'',
|
|
193
|
-
`These are the steps of Glitchless's instrument skill, the one in the Glitchless plugin for Claude Code, Codex and Cursor, cut to ${engine.name}. Work through them in order, in the game's folder. Where they say to follow the \`dashboard\` skill, call glitchless_dashboard with guide: true.`,
|
|
206
|
+
`These are the steps of Glitchless's instrument skill, the one in the Glitchless plugin for Claude Code, Codex and Cursor, cut to ${reddit ? `a game in a Reddit post${engine ? ` made with ${engine.name}` : ''}` : engine.name}. Work through them in order, in the game's folder. Where they say to follow the \`dashboard\` skill, call glitchless_dashboard with guide: true.`,
|
|
194
207
|
'',
|
|
195
|
-
sending(where, engine),
|
|
208
|
+
sending(where, lead, reddit && engine ? `engine: "${engine.id}" and files: ["devvit.json"]` : undefined),
|
|
196
209
|
];
|
|
197
210
|
if (extras.kit) {
|
|
198
211
|
out.push('', '## Get the SDK', '', `The ${engine.name} steps copy files from the Glitchless agent kit, a copy of the Glitchless repo kept outside the game's folder so it never gets committed. Get it first:`, '', '```bash', KIT, '```', '', `If ~/.glitchless is already there, run \`git -C ~/.glitchless pull\` instead. The ${engine.name} SDK is at ~/.glitchless/${extras.kit}${extras.readme ? `, with its whole README, which the ${engine.name} steps quote below` : ''}.`);
|
|
199
212
|
}
|
|
200
213
|
out.push('', relink(top.intro, INSTRUMENT, carried), '', relink(lines.join('\n'), INSTRUMENT, carried));
|
|
214
|
+
if (reddit) out.push('', relink(body(TEXTS[reddit.ref]), reddit.ref, carried));
|
|
201
215
|
// The README comes before the reference, as the skill's table orders them: it installs the addon and wires the game.
|
|
202
216
|
if (readme.length) {
|
|
203
217
|
out.push('', `# From the ${engine.name} addon's README`, '', `Start here: the parts of ~/.glitchless/${extras.readme.path} that install the addon and wire it into the game. The "${nameOf(engine.ref)}" steps after them add the rest; the file itself has more (Steam, flags, errors, phones).`);
|
|
204
218
|
// "Use" without its subsections: the reference below has the ones that matter, in fewer words.
|
|
205
219
|
for (const s of readme) out.push('', relink(s.title === 'Use' ? s.intro : s.text, extras.readme.path, carried));
|
|
206
220
|
}
|
|
207
|
-
out.push('', relink(ref, engine.ref, carried));
|
|
221
|
+
if (engine) out.push('', relink(ref, engine.ref, carried));
|
|
208
222
|
for (const b of lent) {
|
|
209
223
|
out.push('', `# From the ${nameOf(b.file)} steps`, '', `The ${engine.name} steps above point here.`);
|
|
210
224
|
for (const s of b.sections) out.push('', relink(s.text, b.file, carried));
|