RoPhons Opens soon
Menu
Opens soon
Benchmark

Benchmark: token use with the Roblox Studio MCP and with synced script files

Five coding tasks on a 115,580-line Roblox game, run 45 times in Claude Code through the Studio MCP alone, through synced script files, and through both. Every result, the method and where files did worse.

Short answer

On a Roblox game of 220 scripts and 115,580 lines of Luau, Claude Code used 67% fewer tokens working on script files kept in sync with Studio than working through Roblox's Studio MCP alone, summed over five tasks. Estimated cost fell by less, 28%, because most tokens on both sides are cheap cache reads. All 30 runs of those two setups passed. Loading the Studio MCP next to the files cost more than files alone, and one task, a seven-file rename, cost more with files.

Results at a glance

SetupRunsPassedTokens, per-task medians summedEstimated cost, all runsTokens every request carries
A. Studio MCP alone1515697,387$1.0923,094
B. Synced files alone1515232,465$0.796,883
C. Studio MCP and synced files1515570,579$0.8825,944

Against the Studio MCP alone, synced files used 66.7% fewer tokens and 27.5% less estimated cost. Loading both used 18.2% fewer tokens than the Studio MCP alone, but 145% more than files alone.

The question

Roblox developers who use AI coding tools can let the tool reach scripts in two ways: through Roblox's own Studio MCP server, which reads and edits scripts inside a running Studio, or through a sync tool that keeps the scripts as files on disk, where the AI uses its ordinary file tools. We wanted to know which of the two uses fewer tokens for everyday script work, and by how much.

RoPhons sells the second approach, so treat this as a vendor benchmark: the method is below in full so it can be checked and repeated, and the results include where files did worse.

Setup

ModelClaude Sonnet 5.5 (claude-sonnet-5-5, pinned on every run), effort medium
AgentClaude Code 2.1.316, headless (claude -p --output-format json)
Date30 November 2026, all runs between 21:29 and 21:54 UTC
ProjectOne real Roblox place of ours: 220 scripts, 115,580 lines of Luau
Studio MCPRoblox's built-in Studio MCP server, 41 tools exposed; the 17 publishing, asset generation and Open Cloud tools were blocked
SyncThe sync engine RoPhons ships (version 2.5.0), two-way, with Studio as the source of truth, run by an earlier build of the RoPhons desktop app (1.1.4)
Design5 tasks × 3 setups × 3 repeats = 45 fresh processes, in an order shuffled with a fixed seed (20261130)

The three setups got identical task prompts; only one neutral line naming the available tools differed.

  • A. Studio MCP alone: no built-in tools (--tools ""), only the Studio MCP server.
  • B. Synced files alone: the file tools Read, Grep, Glob, Edit and Write, no MCP servers, working directory set to the synced script folder.
  • C. Both: the file tools and the Studio MCP server.

Isolation. Every run used --strict-mcp-config, no user or project settings or hooks (--setting-sources ""), auto-memory off, no CLAUDE.md in context (checked with a probe), slash commands off, no session persistence and --permission-mode dontAsk. All MCP tool definitions were loaded up front, without deferred tool search; that is what setups A and C pay for.

Reset. Between runs the script folder was restored from a baseline commit, followed by a 3-second wait for the sync to push the reset into Studio. Before the batch we checked that file edits, new files, reverts and deletions all reach Studio, and that edits made in Studio reach disk within 3 seconds. Each run waited 5 seconds after exit before its pass check, so edits made through the Studio MCP had landed on disk.

Counting. Total tokens are input + cache creation + cache reads + output, from the main model's usage in Claude Code's JSON result. Cache reads are counted at full weight; they are billed at a fraction of the input price, which is why cost is reported separately. Cost is Claude Code's own estimate at API prices (the runs used a subscription login, not an API key). Medians include failed runs. No run was dropped.

The tasks

Each pass check was tested before the batch against the unchanged project (all fail), a correct hand-made solution (all pass) and partial solutions (fail).

TaskWhat it asksPasses when
T1 SearchFind every script that calls a given functionThe answer names all 6 calling scripts and no file changed
T2 Small editChange one constant in the largest script, 4,050 linesOnly that line changed, in only that file
T3 RenameRename a function used in 7 scriptsNo old name left, definition renamed, new name called in all 6 callers
T4 New moduleAdd a ModuleScript and use it from an existing scriptThe module exists with its function, and the caller requires and uses it
T5 ExplainExplain how zones unlock and name the scripts involvedNames the three scripts and the config module involved, and no file changed

Results per task

Median total tokens of three runs per cell.

TaskA. Studio MCPB. Synced filesC. BothB against AC against A
T1 Search71,37715,41253,909−78.4%−24.5%
T2 Small edit95,04921,85179,093−77.0%−16.8%
T3 Rename96,89057,593113,899−40.6%+17.6%
T4 New module183,39246,783139,340−74.5%−24.0%
T5 Explain250,67990,826184,338−63.8%−26.5%

Turns, time and estimated cost, medians per run:

TaskTurns A / B / CSeconds A / B / CCost A / B / C
T1 Search3 / 2 / 310 / 8 / 9$0.021 / $0.014 / $0.021
T2 Small edit5 / 3 / 39 / 7 / 7$0.022 / $0.011 / $0.016
T3 Rename6 / 17 / 1215 / 24 / 17$0.029 / $0.079 / $0.049
T4 New module11 / 8 / 821 / 13 / 14$0.066 / $0.036 / $0.043
T5 Explain16 / 13 / 1035 / 28 / 25$0.209 / $0.132 / $0.133

The per-task medians, ranges and output tokens are also in results.csv.

Why the gap is so large

One extra call per setup, with the prompt "Reply with OK" and no tool use, measured the context every request carries before any work: 23,094 tokens with the Studio MCP, 6,883 with file tools, 25,944 with both. The Studio MCP's tool definitions add about 16,000 to 19,000 tokens to every request, and they are sent again on every turn, mostly as cache reads. On the short tasks (T1 and T2, two to five turns) that fixed cost is most of the difference between A and B. The gap is mainly what each request carries, not smarter work.

Claude Code can defer MCP tool definitions behind a tool search in some setups. That was not used here, so with deferred loading the Studio MCP's fixed cost would be lower than measured.

Where files did worse

  • The seven-file rename (T3) used 41% fewer tokens with files, but cost more and took longer: $0.079 against $0.029 a run, 17 turns against 6, and 24 seconds against 15. Files are edited one at a time, while the Studio MCP can change many scripts in a few calls.
  • Loading both (C) never beat files alone. It used 145% more tokens than files alone over the five tasks, because the Studio MCP's definitions ride along on every request even when the agent ends up editing files. On the rename it used more tokens than the Studio MCP alone.
  • Only script work was tested. Playtesting, reading output and errors from a running game, screenshots and editing instances that are not scripts were not tested. Files cannot do those; the Studio MCP can.

Anomalies

Nothing was dropped. These are all the irregularities we found.

  1. With both available, agents called the Studio MCP wrongly, then switched to files. Five of the fifteen runs of setup C reported a failed Studio script search. We reran those five with tool traces. In each, the agent called the script search straight away with an empty or placeholder Studio id, skipping the call that lists the open Studio sessions. The server rejected the call, for an empty id with a misleading "client proxy is out of date" message, and the agent finished with file tools. Agents with only the Studio MCP always looked up the id first. The Studio MCP was working: a probe just before the reruns confirmed it. The original runs stay in the medians.
  2. One harness failure was rerun and replaced. One run of T4 with the Studio MCP alone found the new module already in Studio, left by the previous run, because our reset's deletion had not reached Studio yet. It was rerun with a 10-second wait and passed. This is the only replaced run; with or without it, the median for that cell is 183,392 tokens.
  3. Studio MCP errors inside a passing run. In that rerun, reading a script by line range failed twice with an internal Studio error; the agent worked around it by running Luau.
  4. File tools were not confined to the script folder. In three rename runs (two with files, one with both) the agent also searched folders next to it. That adds tokens to the file setups, so it works against files, not for them.
  5. Tool traces exist only for the six reruns. The main batch returned only final answers and totals.
  6. Small samples. There are three runs per cell. T1 and T2 were within 1% across runs; T3 to T5 varied more. The Studio MCP's T5 ranged from 248,005 to 341,786 tokens.

Limits of this test

  • One project, one model, one effort level and one version of Claude Code. Other models and agents will give other numbers.
  • The project is private, so its scripts are not published, and the runner and raw transcripts are not public yet.
  • Three runs per cell show the direction and size of the effect, not a precise figure.
  • The cost figures are Claude Code's estimates at API prices, not invoices.

Run it on your own game

The comparison needs nothing from RoPhons except a way to keep scripts on disk; any sync tool works for setup B.

  1. Pick a few tasks you really do, with a pass check you can run by script.
  2. Run each task in a fresh headless Claude Code process, claude -p --output-format json, with --strict-mcp-config and --setting-sources "" so nothing else loads.
  3. For setup A pass --tools "" and an MCP config with only the Studio MCP. For setup B pass --tools Read,Grep,Glob,Edit,Write, an empty MCP config, and run in the synced folder.
  4. Reset the scripts between runs, and wait for the reset to reach Studio.
  5. From each JSON result, add up input_tokens, cache_creation_input_tokens, cache_read_input_tokens and output_tokens, and keep total_cost_usd.
  6. Compare medians, and report every run, including the ones that fail.

Questions

Does this mean the Studio MCP is bad?

No. It is the only way for an AI tool to playtest, read runtime output, take screenshots or edit instances that are not scripts, and it was faster and cheaper for the multi-file rename. For writing and changing code, files carried far less overhead per request in this test.

Why is the cost saving smaller than the token saving?

Most tokens in both setups are cache reads: the same tool definitions and conversation sent again on each turn. Anthropic bills cache reads at about a tenth of the normal input price, so cutting them saves fewer dollars than tokens.

Who ran this?

RoPhons ran it on one of its own Roblox games, on 30 November 2026. RoPhons makes the sync approach tested in setup B, so read the results with that in mind, and use the method above to check them on your own project.

Read next