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
connect writes it for you: cmd /c python kit/mcp/server.py on Windows, the machine's Python (python3 first) with kit/mcp/server.py elsewhere. 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.

Start here

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 kit
prompt: the request, word for word
stage: 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 word
lane: the leading lane (optional)
model: claude | codex | gemini | local
piece: 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 qa
words (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 nameMaps to
kit_startparallax_start
kit_skillparallax_skill
kit_statusparallax_status
kit_helpparallax_help
kit_verifyparallax_verify
kitparallax

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.json in the game folder
Guard hooks written
.claude/settings.json: PreToolUse, PostToolUse and Stop hooks

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.json in the game folder
Guard hooks
None
Connect command
lune run parallax connect vscode
Config written
.vscode/mcp.json in the game folder
Guard hooks
None

Requires GitHub Copilot agent mode.

Connect command
lune run parallax connect gemini
Config written
.gemini/settings.json in the game folder
Guard hooks written
.gemini/settings.json: BeforeTool and AfterTool hooks

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.json in the game folder
Guard hooks
None
Connect command
lune run parallax connect opencode
Config written
opencode.json in 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

  1. Run the upload command. From your game folder:
    lune run parallax upload
    The kit screens every new or changed file through the moderation gate (banned words, blood/gore), then writes build/upload_plan.json: one entry per file with the exact open_cloud_invoke call, the file's absolute path and the required permission scopes.
  2. Your AI agent uploads each file. For each entry in the plan:
    1. Call open_cloud_invoke with that entry's call (the studio_id comes from list_roblox_studios).
    2. Poll GET /assets/v1/operations/<operationId> with open_cloud_invoke until done is true.
    3. Record the returned id:
      lune run parallax upload --record <file> <assetId>
      The kit stores the id in assets/ids.json (and in the VFX registry for textures).
  3. 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
Uploads are permanent

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:read
  • asset:write
  • asset-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.

Legitimate bypass

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.