MCP server
Parallax exposes itself as an MCP (Model Context Protocol) server over stdio. Any MCP-capable AI client connects to it, receives the kit's rules at start-up and can then drive every pipeline. This page covers the protocol, all tools, the start prompts, every supported client and how uploads work.
The server
- Transport
- stdio (JSON-RPC 2.0)
- MCP protocol version
- The server answers with the version the client asks for in
initialize; if the client names none,2025-06-18 - Kit version reported
3.1.0- Server name
parallax- Source file
kit/mcp/server.py(Python standard library only)- Start command
connectwrites it for you:cmd /c python kit/mcp/server.pyon Windows, the machine's Python (python3first) withkit/mcp/server.pyelsewhere. Clients that take a pasted block get the script's absolute path. The server finds the project root from its own file.
Rules at connect
When a client sends initialize, the server returns a short preamble followed by the contents of kit/harness/AGENTS.parallax.md as the instructions field. Every client receives the same rules at the moment it connects: no per-client instruction file is needed, and no client needs to fetch the rules separately.
The preamble says that Parallax is enforced, not advisory: pipeline work (3D models, VFX, animation, worlds, UI, sound, gameplay systems, QA) is refused until the agent calls parallax_start with the lane and your request (prompt). It points to parallax_case for the request's contract and parallax_skill for the lane's full recipe, says every command ends with summary: and next_action: to act on, and that each lune run parallax <command> in the rules is also the parallax tool with those arguments.
Tools
Eight tools in total. The parallax tool runs any command; the other seven are shortcuts for the most common operations.
Call parallax_start first with the lane and the request. Pipeline work is refused until you do.
| Tool | Arguments | What it does |
|---|---|---|
parallax_start |
dept (required): one of 3d vfx ui anim world sfx code qa kitprompt: the request, word for wordstage: a stage of that lane's route (default: the first)game: which game folder this session works in |
Load one department lane: its boot sheet, stage commands and lessons, open tasks, last handoff and vault page. With prompt, PROMPT-X compiles the request, routes it to its CASE and writes the session token that unlocks pipeline commands. Work only in the named lane. |
parallax_prompt |
prompt (required): the request, word for wordlane: the leading lane (optional)model: claude | codex | gemini | localpiece: the piece name (optional) |
Compile the request with PROMPT-X: runs the lane's graveyard and golden records, the CASE contract, the capability menu and a token budget per model. Writes the session token. |
parallax_case |
lane (required): one of 3d vfx ui anim world sfx code qawords (required): the request |
The CASE a request maps to in that lane: the contract's floor, forbidden routes, the points where the work must stop for you, and the lane's capability menu and escalation ladder. A short answer (about 25 lines). |
parallax_skill |
dept (required): one of 3d vfx ui anim world sfx code qa kit |
The lane's full recipe (its skill page): every stage, its commands and its traps. Returns the whole output with no line cap. Read this after parallax_start when your harness has no skills folder. |
parallax_status |
as: who you are (for example "sonnet-4.6@claude-code") |
The whole board across all lanes: project brief, tasks in progress / ready / blocked, the last handoff, failing quality gates and the single next step. |
parallax_help |
(none) | List every command (work board, systems, 3D, VFX, sound, UI, QA, setup). |
parallax_verify |
(none) | Run the full quality gate: format, selene, types, tests, VFX presets, UI drift, security audit, harness drift, Rojo build. Returns summary: and next_action:. |
parallax |
args (required): a list of strings, the arguments after lune run parallax |
Run any command. A mutating pipeline command is refused with an exact parallax_start call if there is no fresh session. Act on the final summary: and next_action: lines. |
Legacy aliases
The names from the kit's previous release still work and map to their parallax_* equivalents with no change in behaviour:
| Legacy name | Maps to |
|---|---|
kit_start | parallax_start |
kit_skill | parallax_skill |
kit_status | parallax_status |
kit_help | parallax_help |
kit_verify | parallax_verify |
kit | parallax |
Start prompts
The server exposes a start-<lane> prompt for each of the nine lanes. Clients that surface MCP prompts as slash commands show these as quick ways to begin a session in that lane.
The nine prompts are: start-3d, start-vfx, start-ui, start-anim, start-world, start-sfx, start-code, start-qa, start-kit.
Each prompt tells the AI to call parallax_start with the matching lane first, act on its next_action: and work only in that department, leaving every other department's files alone.
Equivalent CLI:
lune run parallax start 3d --prompt "a mossy stone well"
lune run parallax start vfx --prompt "a fire slash effect"
lune run parallax start code --prompt "a double-jump ability"
Supported clients
Connect a client from inside your game folder:
lune run parallax connect <client>
Several at once: lune run parallax connect claude,cursor. To remove: lune run parallax connect <client> --remove.
- Connect command
lune run parallax connect claude- Config written
.mcp.jsonin the game folder- Guard hooks written
.claude/settings.json:PreToolUse,PostToolUseandStophooks
The enforcement guard hooks run kit/scripts/parallax_guard.py: before every write, shell (Bash, PowerShell) and parallax MCP tool call, after every write, and once when the session stops (a single reminder about unfinished pipeline work). The hook intercepts writes to pipeline paths, mutating CLI commands and writes to the session token file.
The hook is found through the CLAUDE_PROJECT_DIR environment variable (or the working folder if the variable is not set). A missing script exits 0 so it never blocks everything when the kit is not installed.
- Connect command
lune run parallax connect cursor- Config written
.cursor/mcp.jsonin the game folder- Guard hooks
- None
- Connect command
lune run parallax connect vscode- Config written
.vscode/mcp.jsonin the game folder- Guard hooks
- None
Requires GitHub Copilot agent mode.
- Connect command
lune run parallax connect gemini- Config written
.gemini/settings.jsonin the game folder- Guard hooks written
.gemini/settings.json:BeforeToolandAfterToolhooks
The enforcement guard hooks run kit/scripts/parallax_guard.py before every write_file, replace and run_shell_command call, and after every write_file and replace. The script is found through GEMINI_PROJECT_DIR (or the working folder).
- Connect command
lune run parallax connect roo- Config written
.roo/mcp.jsonin the game folder- Guard hooks
- None
- Connect command
lune run parallax connect opencode- Config written
opencode.jsonin the game folder- Guard hooks
- None
- Connect command
lune run parallax connect codex- Config
- Prints a block to paste into
~/.codex/config.toml(global) - Guard hooks
- None
connect codex does not write a file; it prints a TOML block that carries the project's absolute path. Paste the block into ~/.codex/config.toml.
- Connect command
lune run parallax connect windsurf- Config
- Prints a block to paste into
~/.codeium/windsurf/mcp_config.json(global) - Guard hooks
- None
connect windsurf prints a JSON block that carries the project's absolute path. Paste the block into ~/.codeium/windsurf/mcp_config.json.
- Connect command
lune run parallax connect cline- Config
- Prints a block for Cline's MCP settings (MCP Servers → Configure MCP Servers)
- Guard hooks
- None
connect cline prints a JSON block that carries the project's absolute path. Paste it through Cline's MCP settings interface.
- Connect command
lune run parallax connect claude-desktop- Config
- Prints a block for
claude_desktop_config.json(global) - Guard hooks
- None
Config path by OS:
- Windows:
%APPDATA%/Claude/claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Keeping configs in step
After an upgrade or when you add or remove a client, run:
lune run parallax harness
This refreshes the connected client's config and hooks. To check without changing anything:
lune run parallax harness --check
Uploads through the Studio MCP
Uploads use Roblox Studio's built-in MCP server and Open Cloud. No API key is needed: uploads use your own Studio login.
The full upload flow
-
Run the upload command. From your game folder:
The kit screens every new or changed file through the moderation gate (banned words, blood/gore), then writeslune run parallax uploadbuild/upload_plan.json: one entry per file with the exactopen_cloud_invokecall, the file's absolute path and the required permission scopes. -
Your AI agent uploads each file. For each entry in the plan:
- Call
open_cloud_invokewith that entry's call (thestudio_idcomes fromlist_roblox_studios). - Poll
GET /assets/v1/operations/<operationId>withopen_cloud_invokeuntildoneis true. - Record the returned id:
The kit stores the id inlune run parallax upload --record <file> <assetId>assets/ids.json(and in the VFX registry for textures).
- Call
- After the last record call, the kit recompiles models and screens that use the new ids and prints the experience grant.
To see what is left in the plan:
lune run parallax upload --pending
To check the moderation status of a pending item:
lune run parallax upload --status
Open Cloud cannot delete uploaded assets. Use the moderation gate before uploading and check --status for items going through Roblox moderation.
One-time setup: creator and universe
In the game's kit.config.json:
"upload": {
"creator": "user:<your user id>",
"universe": <experience id>
}
Your user id is the number in your roblox.com profile URL. "universe" is optional: it is the experience the uploads (audio above all) are granted to, so they play there; the creator still owns them. For group-owned games, use "creator": "group:<group id>".
Required Studio permissions
In Roblox Studio: MCP → MCP Permissions. Under Publish and manage assets, allow:
asset:readasset:writeasset-permissions:write(only if audio should be granted to your experience)
Also approve your game project's build folder as an upload folder. Changes apply to the client's next request.
Studio must be open with a place from a published game (not a local, unpublished place) for Open Cloud permissions to work.
Headless uploads (CI, no Studio)
Set ROBLOX_API_KEY in your environment. The kit then uploads by itself without needing Studio open. Never paste a key into a chat or a file; always set it as an environment variable in your shell or CI system.
# set in your shell environment, not on the command line:
# ROBLOX_API_KEY=...
lune run parallax upload
Enforcement
The MCP server gate is one of the enforcement layers (see Enforcement). It intercepts every parallax tool call. If the arguments are a mutating pipeline command and there is no fresh session token, the call returns isError: true with an exact parallax_start call to make next.
A session is started by calling parallax_start with prompt (or by calling parallax_prompt). The session is valid for 4 hours. Calling parallax_start again starts a new session in the named lane.
The mutating commands are new, asset, make, cad, gen, optimize, vfx, anim, world, ui, sfx, move, net and upload; a lookup under one of them (for example help, list, --status) is not gated. Read-only commands (status, task list, lessons, case, help and so on) are always allowed.
For Claude Code and Gemini CLI, the client guard hooks (kit/scripts/parallax_guard.py) are another layer: they run before write and shell calls (and, in Claude Code, parallax MCP calls) and after writes. These hooks also check writes to pipeline paths and direct writes to the session token file.
Add --maintenance "<why>" to a command to pass the session gate for real maintenance work. This works from the CLI and through the parallax MCP tool alike (the server passes any call whose arguments carry it), and the CLI logs every use with its reason for your review. Setting PARALLAX_ENFORCE=off also turns the session gate off.