quest'n'click 4.5.0 · r1

Built for quest'n'click 4.5.0, revision r1. Whether it is published, and which one is current, is recorded at publication.json.

Studio troubleshooting

Français · Type: troubleshooting · Audience: author · Context: local Studio · Status: ready · Applies from: 4.2.1

The local Studio · contract: stable · verified by CI (support matrix of 4.4.0, 2026-10-23): Chromium end to end (the Studio's checks); Windows: the unit suite only · automated checks: jobs e2e, windows; CI plan e2e, windows; 2 test files · people's passes: studio-hero-matrix not run (#238) · known limits: local-only-page

The local Studio refuses something, or a tool in it says it is unavailable. Find the exact message below: each one has its cause and its fix. Nothing in this page concerns the hosted Studio, whose 409 and 423 have their own pages (see "Neighbouring cases").

Symptom

The messages, as the Studio, its server or the MCP server print them:

Message or codeWhereSection
✖ games/<id>/index.ts not found (GAME=<id>)Terminal, at npm run studioStart
400 invalid HostBrowser or scriptAccess
403 the Studio answers its own names only (localhost, 127.0.0.1, [::1], or the address dev:lan serves)Browser, phoneAccess
403 cross-origin Studio request refusedBrowser, scriptAccess
403 Studio writes require a same-origin Origin headerScript (curl, an agent's HTTP call)Access
401 Studio token requiredPhone, browser in LAN modeAccess
503 LAN Studio token is not configuredLAN mode started by handAccess
422 refused: the edit adds N validation error(s): …A toast in the StudioEdits
422 refused: the game would no longer load after the edit (…); nothing was writtenA toastEdits
500 refused: the edit would break <file> (…)A toastEdits
409 cannot undo "<what>": <file> changed sinceUndo in the headerEdits
409 with conflictsAssets tab uploadEdits
501 unavailable … Playwright is not installed (npm i -D playwright && npx playwright install chromium)Check tab: Screenshot, capturesChecks
The voice table needs the dev server (npm run studio). / The scenario map needs the dev server or a hosted Studio.Demo StudioChecks
custom provider URLs are disabled (set WEB_SCUMM_ALLOW_CUSTOM_PROVIDER=1 to opt in)AssistantAssistant
<url> did not answer within 60 s, the provider's answer exceeds 8 MB, … answered with a redirect …AssistantAssistant
The MCP client cannot parse the server's output; Claude Desktop cannot start npmAI clientMCP

Possible causes

Start

Access (400, 401, 403, 503)

The Studio's routes answer only their own machine, same-origin requests, and in LAN mode the session's token (Local and LAN security).

Edits (409, 422, 500)

Checks and tools (501, "needs the dev server")

Assistant

MCP

Diagnosis

Fix

  1. Start. Point GAME at a game that exists:

    # in the engine repository
    GAME=demo npm run studio
    
  1. Access. Open the Studio at http://localhost:5173/__studio/ on the machine itself. From a phone, start npm run studio:lan and open the URL it prints, token included; after a restart, open the new URL. A script sends Origin: http://localhost:5173 (and in LAN mode x-web-scumm-token: <token>). Never set WEB_SCUMM_LAN=1 by hand: use the LAN scripts.
  1. Edits. For a 422, read the errors and change the value; for an undo refused, compare with git diff and take the file back with git; for a 409 conflicts, tick recut on the cells to replace.
  1. Playwright. Install it where the Studio runs:

    # in the engine repository or the created project
    npm i -D playwright && npx playwright install chromium
    
  1. Assistant. Use a preset, or restart with the opt-in for an HTTPS public endpoint:

    # in the engine repository or the created project
    WEB_SCUMM_ALLOW_CUSTOM_PROVIDER=1 npm run studio
    

    For a local model, use the Ollama preset; in the demo Studio, Ollama with OLLAMA_ORIGINS=<the page's origin>, or the local Studio. After "Stopped after 12 tool rounds", ask again to continue.

  1. MCP. Write npm run -s mcp in the client's configuration; for Claude Desktop, npm's absolute path (which npm) in command; add "env": { "GAME": "<id>" } (Local MCP: setting up each client).

Limit · local-only-page This page covers the local Studio and the local MCP server. A hosted Studio's refusals (401 to a session, 409 stale base, 423 span locked, 503 during a redeploy) are in the Team pages.

How to check it is fixed

The Studio opens on the Rooms tab and a text edit shows its toast; the Check tab's badge is green; the Assistant answers; the MCP client lists the quest-n-click tools and list_rooms answers.

Neighbouring cases


Edit the source of this page · Report an error