Skip to content

Prepare a game from the terminal and save before/after screenshots from the MCP - #68

Merged
erwan-joly merged 1 commit into
mainfrom
claude/project-thread-49l0xb
Nov 29, 2026
Merged

erwan-joly merged 1 commit into
mainfrom
claude/project-thread-49l0xb

Conversation

@erwan-joly

Copy link
Copy Markdown
Contributor

Requested by Erwan · project thread

What

  • ClientLab --prepare [--game <install>] [--emcc <emcc>] --data-dir <dir> runs the launcher's Prepare without its window: current official client (copied from --game where it can), recompile from the committed symbols/<md5>/ with the seeds the launcher derives itself, compile, and make it the active build. It prints CLIENTLAB_RUNTIME= and CLIENTLAB_GAME=. --serve with the same data folder then serves it.
  • The MCP's screenshot takes save to write the PNG to a file, and the new before_after tool puts two saved screenshots side by side under captions in one PNG.
  • docs/BROWSER-AUTOMATION.md documents both, with the fresh-Linux route.

Why

Every cloud client check rebuilt the client by hand: download, collect seeds from every symbols file plus the entry point, --recompile, --compile, then --serve. That took 15 to 25 minutes and broke whenever a seed was missed. Before/after shots were saved and stitched by ad-hoc scripts in each thread.

Tested

From a fresh Linux container (4 cores): the first --prepare downloaded the 7.8 GB client and recompiled in under a minute, then stopped on the launcher's own tool download (403 behind the proxy). With --emcc from a cloned emsdk, the compile finished in 4.5 minutes. A second --prepare reused the build in about a second. --serve then served it, and the MCP under Xvfb saved two screenshots and composed them with before_after (no NosCore stack was running, so the client stops at its login screen).


Generated by Claude Code

…om the MCP

`ClientLab --prepare` runs the launcher's Prepare without its window: current
official client, recompile from the committed symbols, compile, active build.
`--serve` then serves it from the same data folder, so a Linux machine goes
from nothing to a served client in two commands instead of hand-collecting
seeds for `--recompile` and `--compile`.

The MCP's screenshot takes `save`, and `before_after` puts two saved
screenshots side by side under captions in one PNG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkXQ1jVdnSCorU9Qtzn
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 18 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d0444f17-8b4c-4a4f-9022-3edf4c88354b
Commits

Reviewing files that changed from the base of the PR and between 9947573 and a4da400.

Files selected for processing: 4

  • desktop/ClientLab.Launcher/Program.cs
  • desktop/ClientLab.Launcher/Services/PrepareCommand.cs
  • docs/BROWSER-AUTOMATION.md
  • recomp/web/mcp.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@erwan-joly erwan-joly self-assigned this Nov 29, 2026
@erwan-joly
erwan-joly merged commit 0326f91 into main Nov 29, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants