Lesson 8 of 8
AI-assisted development: Studio MCP, Assistant, Blender MCP
Use AI agents on a Roblox project without trusting them blindly. Connect Studio's built-in MCP server, compare Assistant, Blender MCP and ComfyUI, and learn the verification habits that caught real failures while this course was built.
By the end you can
- Connect a coding agent to Studio through its built-in MCP server, and name what its tools can and cannot do
- Say what Studio's Assistant, Blender MCP and local ComfyUI models are each good for
- Check an agent's work with the files, a test and Play instead of trusting its summary, including a test Assistant drafts for you
- Name the failures this course hit while it was built with AI agents, and the habit that caught each
Before this: The toolchain: Rokit, Wally, pesde, StyLua, Selene, luau-lsp
Step 1 of 14
One period too many
Ask an assistant to write the line Beacon Yard shows while the round is idle. It will answer in a second, with confidence, and it will probably copy the nearest sentence it can find. In the game's HUD code there are two sentences that look the same.
local IDLE_OBJECTIVE = "Go to the beacon and hold E to start the drill"
"Go to the beacon and hold E to start the drill.",
The first is the Idle label. The second is a tutorial toast. One has a period. An assistant that copies the toast has changed the user interface, and nothing will warn you.
Which string is the Idle HUD label in Hud.luau?
Press 1 to 4 to choose, Enter to check.
Step 2 of 14
Four tools, four jobs
AI help for Roblox comes in four forms, and they do different jobs.
| In the picture | In Roblox |
|---|---|
| The apprentice types the change | The agent edits scripts and files |
| You look over their shoulder | You read the diff in Git before accepting it |
| Show me it works | A test that failed before, and a playtest in Studio |
- Assistant is Roblox's own chat inside Studio. It can create and edit objects and scripts in the open place, insert Creator Store assets, and generate meshes and materials1.
- The Studio MCP server is a door that lets an outside coding agent do many of the same things. It is built into Studio2.
- Blender MCP is a third-party plugin that lets an agent drive Blender, where the course's meshes were made.
- ComfyUI runs image and audio models on your own computer. It is a graph editor for models, not an assistant.
Match each job to the tool that fits it.
Step 3 of 14
Turn on the Studio MCP server
MCP (Model Context Protocol)MCP (Model Context Protocol)An open standard that lets AI tools talk to other programs through a fixed set of tools.Think of it as a socket with a standard shape, so any agent plug can reach Studio or Blender. is an open standard that lets AI tools talk to other programs. Studio's server is built in and speaks over standard input and output, so there is nothing to download. You switch it on in Assistant, then the three dots, then Manage MCP Servers, then Enable Studio as MCP server2.

Select a numbered pin, or a row below, to read what it marks.
Assistant Settings, MCP Servers tab, with Studio's MCP server on and one client attached.
To talk to Studio, you also need an MCP client on your machine. Studio's Quick connect dropdown supports Claude Desktop, Claude Code, Cursor, Visual Studio Code, Codex CLI, Gemini CLI and Antigravity. For a concrete setup, install Claude Desktop, toggle it on in Quick connect, and restart Claude Desktop. If Quick connect does not list your client, add the Roblox_Studio server manually to its config file:
Windows
Open %APPDATA%\Claude\claude_desktop_config.json (or .vscode/mcp.json for VS Code) and add:
{
"mcpServers": {
"Roblox_Studio": {
"command": "cmd.exe",
"args": ["/c", "%LOCALAPPDATA%\\Roblox\\mcp.bat"]
}
}
}
Then restart Claude Desktop.
macOS
Open ~/Library/Application Support/Claude/claude_desktop_config.json (or .vscode/mcp.json for VS Code) and add:
{
"mcpServers": {
"Roblox_Studio": {
"command": "/Applications/RobloxStudio.app/Contents/MacOS/StudioMCP"
}
}
}
Then restart Claude Desktop.
If you come across older guides pointing to Roblox's open-source Roblox/studio-rust-mcp-server, skip it: that repository was archived (read-only) on 3 April 2026, and Studio's built-in server replaced it3. Every tool call carries a studio_id, so an agent addresses one Studio window explicitly. list_roblox_studios returns the ids.
Put the steps of connecting Claude Desktop (or another MCP client) to Studio in order.
- Ask the client to call list_roblox_studios and read the studio id
- Turn on Enable Studio as MCP server
- Connect Claude Desktop with Quick connect or claude_desktop_config.json, then restart it
- Open the three dots menu and choose Manage MCP Servers
- Open Assistant in Studio
Step 4 of 14
What the tools can touch
The documentation lists the tools in groups. These are the ones that matter for Beacon Yard.
Reference Studio MCP tools, from the docs page read on 2026-11-23
Tool names and limits come from Roblox's documentation. They change, so check the page.
script_read, multi_edit, script_search, script_grep- Read a script by dot path, apply several edits (creating the script if it is missing), search by name (up to 10 results) and search text (up to 50 matches). A bug past the fiftieth hit does not appear, so search again with a tighter pattern.
execute_luau- Runs Luau in Studio, in the Edit, Client or Server data model. A coin check during Play belongs in Server.
start_stop_play, get_console_output, screen_capture- Start and stop Play, read Output, capture the viewport. Screenshots are the default because they cost far less than video.
character_navigation, user_keyboard_input, user_mouse_input- Pretend to be the player: walk to a position, press keys, click.
save_place- Saves like File, Save, with no dialog. For a place opened from Roblox that writes a new version. It never publishes.
generate_mesh, generate_material, generate_animation- Text to a mesh, a material variant or an R15 animation of up to ten seconds. The page lists no generate_texture.
open_cloud_invoke- Calls Open Cloud with permissions you grant per game, with no API key. Described in the next step.
An agent uses execute_luau to require Beacon Yard's DataService and read a player's profile during Play. It sees an empty profile, although the player has coins. Why?
Press 1 to 4 to choose, Enter to check.
Step 5 of 14
What you let it do
Studio's server can also call Open Cloud for the agent, without an API key. You choose, per game and per person, which scopes the agent may use. Each game starts at Balanced. Safe turns most things off. Full access includes actions that can cost Robux, affect players or publish to the live game4. Permissions apply to outside agents only, not to Assistant.
The docs also warn that any MCP client you connect can read and change your open places, so connect only clients you trust2.
You are experimenting with a new agent on your real, live copy of Beacon Yard. Which access level fits?
Press 1 to 4 to choose, Enter to check.
Step 6 of 14
Verify, do not believe
Agents write fluent summaries whether or not the work is right. Four habits turn a summary into evidence:
- Read the diff. In Git, with your own eyes. The files show what changed. The summary shows what the agent thinks changed.
- Run a test that would have failed before. A check that already passes on the old code proves nothing.
- Press Play. Studio and the tests can disagree with a green summary.
- Check every link and number. If a claim has a source, open it.
Practise the second habit. This draft of the label function came from an assistant. The test is already written. Make the cell pass.
Why is it better to write the test before you ask the assistant for the code?
Press 1 to 4 to choose, Enter to check.
Step 7 of 14
Let Assistant draft a test, then review it
Now the habit on real code. Beacon Yard's ReceiptRules.undoReceipt takes back a grant whose save failed. Its first line returns early when the purchase id is not in the list. The specs in unit/specs/ReceiptRules.spec.luau test three undo cases, but not that one.
function ReceiptRules.undoReceipt(data: ReceiptData, receipt: ReceiptInfo, grant: number, applied: Applied)
local index = table.find(data.recentPurchaseIds, receipt.PurchaseId)
if index == nil then
return
end
table.remove(data.recentPurchaseIds, index)
if applied.evicted ~= nil then
table.insert(data.recentPurchaseIds, 1, applied.evicted)
end
data.coins -= grant
Assistant can write and edit scripts in the open place, and Roblox's own guide warns that a generated script "might not function flawlessly". Plan mode (/plan) shows its steps first and runs nothing until you click Build1. Your job is the review.
Here is a made-up draft of the kind assistants often write, before you try your own:
-- An illustrative draft of ReceiptRulesUndo.spec
local ReceiptRules = require(game.ServerScriptService.Server.ReceiptRules)
describe("ReceiptRules.undoReceipt", function()
it("does nothing for an id that was never recorded", function()
local data = { coins = 50, recentPurchaseIds = { "p-1" } }
ReceiptRules.undoReceipt(data, { PurchaseId = "p-9", PlayerId = 7, ProductId = 4242 }, 50, {})
expect(data.coins).toBe(0)
expect(#data.recentPurchaseIds).toBe(1)
end)
end)
Which problems does this draft have in Beacon Yard's test place?
Press 1 to 4 to choose, Enter to check.
Build along
unit/specs/ReceiptRules.spec.luausrc/server/ReceiptRules.luautest.project.json
On
m14-ship, runwally installandrojo build test.project.json -o build/beacon-yard-tests.rbxlx, then open that file in Studio.You should see Studio opens beacon-yard-tests with ReplicatedStorage.UnitTests and ServerStorage.Server in the Explorer, and no yard in the Workspace.
Open Assistant, switch to Plan, and ask: "Add a Jest-Lua spec named ReceiptRulesUndo.spec in ReplicatedStorage.UnitTests that checks ReceiptRules.undoReceipt leaves coins and recentPurchaseIds unchanged for a purchase id that was never recorded. Follow ReceiptRules.spec." Read the plan, then click Build.
You should see Assistant shows a plan that adds a new spec ModuleScript under ReplicatedStorage.UnitTests. Nothing changes until you click Build.
Review the new script against the same three questions as the draft above: where does it require from, where do
describe,itandexpectcome from, and does every expected number follow from the rule? Fix what is wrong by hand.You should see Your notes list every line you changed and why: the require path, the JestGlobals import, the expected numbers, or nothing, with a reason.
Paste the contents of
unit/run.server.luauinto the command bar in Edit mode (not Play) and press Enter.You should see Output ends with UNIT SUITE DONE, and the passed count is higher than before by the number of tests in your spec.
Delete the early return in
ServerStorage.Server.ReceiptRules.undoReceipt(theif index == nil thenblock), run the suite again, then pressCtrl+Z(macOS:Cmd+Z) until it is back.You should see Output says UNIT SUITE FAILED, and the failing test is yours. After you undo the edit, the suite passes again.
Copy the reviewed spec into
unit/specs/ReceiptRulesUndo.spec.luauon a new branch in your fork and runstylua --check unit.You should see git status shows one new file, unit/specs/ReceiptRulesUndo.spec.luau, and stylua --check passes on it.
Step 8 of 14
How this course was built, with its failures
This course was written with AI agents, and the honest account is more useful than a tidy one. A lead agent wrote the plan and checked the work. About ten Claude and Grok workers wrote lessons, tests and captures, each with a short list of files it owned and a check to pass. Four things went wrong, and each one is why a habit above exists.
Reference What went wrong, and what caught it
The work also hit usage limits on the AI plans. The fix was to cut every job into pieces small enough to restart and to keep the plan, the evidence and the notes in files, not in a chat.
27 of 45 captures failed review- Agents drove Studio and recorded footage. Three reader agents then opened every frame: 4 captures passed, 14 were partial and 27 failed. Reasons included starting in Edit mode instead of Play, a tooltip over the toolbar, the wrong window docked in front, and the author's own account name in the player list. One worker failed four Studio capture passes in a row, and that task moved to a different agent. Habit: look at the artefact, not the log.
218 URLs checked, 6 DevForum cites flagged- A script requested every cited URL: 204 answered 200 and 14 redirected. A second check followed DevForum redirects and compared the final address with the topic meant. It flagged six citations. Five of them used two numeric topic ids that led to unrelated threads, such as a 2015 'what are you working on' thread. The sixth was only a renamed address for the right topic. Habit: open the final URL and read the title.
40 of 40 checked challenges fail before the fix- Five Level 3 tests passed on the unchanged game when they were first written. The studio tour check, for example, created its own marker part inside the test, so it passed without any change to the game. They were redesigned to read something only the learner's change can create. Habit: run every test on the unchanged code first.
several, logged one by one- A texture slash command named on one page was not in the MCP tool table. A file-import call timed out while a dialog waited for a click. A local web call from Studio was blocked by an allowlist. Installing the Blender add-on took three failed PowerShell quoting attempts, and a Blender window that was already open never loaded it. Habit: trust the tool list you were given, then check the instance.
An early draft of the studio-tour check created a part called TourMarker inside the test and then looked for it. What was wrong with it?
Press 1 to 4 to choose, Enter to check.
Three reader agents reviewed 45 captures. 4 passed and 14 were partial. How many failed?
Step 9 of 14
Match the failure to the habit
Go deeper The claims files
The first version of this course kept six claims files, named A to F. Each is a table with the chapter, one factual sentence, where that sentence came from, and a verdict. A sentence with no source in the game's code, logs or documentation could not get an ok. The lead agent audited those tables, not the workers who wrote the sentences.
Match each failure from the build to the habit that catches it.
Step 10 of 14
Blender MCP and local models
An agent changes the coin's colour in an open Blender window through the MCP add-on. The file is not saved.
Transcript
- 0:00 The MCP for Blender tab is in the N sidebar. Connected is on. Preferences stays closed.
- 0:12 The checkboxes are the libraries and the generators. None of them is clicked.
- 0:18 A Blender MCP command changes the coin from gold to cyan in this window. The file is not saved.
Blender MCP's own README says it is a third-party integration, not made by Blender. It was renamed mcp-for-blender, and its installer is a command that pipes a downloaded script into your shell5. Read a script like that before you run it, as you would any program from a stranger. The add-on can also run Python inside your open Blender, so save your work first.
ComfyUI is the other kind of tool: a graph editor for models that run on your own machine6. An earlier version of this course used it to generate a steel-plate texture and to make narration audio. The textures that ship in the game from the art milestone are CC0 sets instead, and no ComfyUI texture is used there.
Before you let an agent drive your open Blender file through MCP, what is the sensible first step?
Press 1 to 4 to choose, Enter to check.
Step 11 of 14
Where the apprentice picture breaks
Both sidesRemember: AI coding agents is a very fast apprentice who never says I do not know.
A human apprentice learns from a correction and remembers it tomorrow. Answer before you open the breakdown.
Where does it break?“A very fast apprentice who never says I do not know” is a good picture of ai coding agents. Where does it stop being true?
It breaks here. A human apprentice remembers a correction tomorrow and tells you when unsure, but an agent starts each session without yesterday's instructions and sounds equally sure when it is wrong, including about links and numbers.
The true model. An agent is a program that predicts plausible work from the text it is given. It has no memory between sessions beyond files it reads, and no sense of when it is wrong. Rules belong in a file in the repository, work belongs on a development copy, and every claim is checked against the artefact itself.
Yesterday you told an agent never to edit Config.luau. Today, in a new session, it edits Config.luau. What is the most useful fix?
Press 1 to 4 to choose, Enter to check.
Step 12 of 14
Connect an agent to your Studio
Other ways pros do this
| Option | What it is | When pros pick it | Trade-offs |
|---|---|---|---|
| Assistant in Studio | Roblox's built-in chat, with a screen capture helper and your own model keys as an option. | Quick edits to the open place, explanations of selected code, and generating meshes and materials. | It works inside the place, so its changes are not in Git until you export them. Procedural model generation has a daily cap. |
| Outside agent plus Studio MCP | A coding agent in your terminal or editor that talks to Studio through the built-in server. | Work that crosses code and the running game: read a script, change it, press Play, read Output. | You must watch the permissions and keep the connection to trusted clients. |
| Outside agent on the files | An agent that edits the repository, with Rojo syncing the result into Studio. | Game code that lives in Git, as in Beacon Yard. Review is a normal pull request. | It cannot see the running game unless you also connect Studio MCP. |
| Chat and paste | Copy code to a chat window and back by hand. | One-off questions. | No context, no tests, easy to paste the wrong version. |
Build along
src/shared/AiCheck.luau
In Studio, open Assistant, the three dots, Manage MCP Servers, and turn on Enable Studio as MCP server.
You should see The switch is on and the panel says how many clients are connected.
Use Quick connect to switch on Claude Desktop (or add the
Roblox_StudioJSON block toclaude_desktop_config.json), then restart the client.You should see Claude Desktop (or your chosen client) shows a Roblox_Studio server in its tool list after a restart, and Studio shows a green connected indicator.
Ask the agent to call list_roblox_studios.
You should see The reply names your place and gives a studio id.
Ask the agent to read game.ReplicatedStorage.Shared.Config with script_read.
You should see The agent prints the Config script, and it matches src/shared/Config.luau in your repository line for line.
Ask the agent to create src/shared/AiCheck.luau on disk, not inside Studio, with an idleObjective function that returns the Idle label. Then check git status.
You should see git status shows one new file, src/shared/AiCheck.luau, and nothing else changed.
Step 13 of 14
Challenges
Level 1, Apprentice
Challenge
Connect a coding agent and prove it can see your place.
- Start from
- m05-the-round, Studio open
Done means
- Studio's MCP panel shows at least one connected client
- The agent lists your studio and reads one script with script_read
- You can say which data model, Edit, Client or Server, you would use for a coin check
Meet the criteria above, then record your own result. No test grades this check.
Level 2, Builder
Challenge
Write the instructions that the next session will read first, and test them on a prompt that should be refused.
- Start from
- m05-the-round, with an agent connected to your files
Done means
- A rules file at the top of your repository names three files the agent must not edit
- It tells the agent how to check its work: the commands to run and the output that counts as done
- A deliberately bad prompt, such as 'make coins easier', ends with the agent declining or asking first
Meet the criteria above, then record your own result. No test grades this check.
The level 3 check wants a module that returns the Idle label. Why does it fail on the stock game?
Press 1 to 4 to choose, Enter to check.
Level 3, Professional
Challenge
Get an assistant to write the module, then check it the way this lesson taught. Check out m14-ship for this challenge: the earlier m05-the-round tag has no course runner, so the command below only works from m14-ship on. The HUD excerpts above come from earlier tags and are reference only. Run it with game.ServerScriptService.RunGameTests:Invoke("ai-assisted-dev").
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("ai-assisted-dev")in the server command bar. Copy the pass code from Output.
Done means
- src/shared/AiCheck.luau exists on disk and syncs to ReplicatedStorage.Shared.AiCheck
- AiCheck.idleObjective() returns the Idle HUD label exactly, with no period
- The diff is only that file, and no script writes Coins.Value
- The ai-assisted-dev challenge prints TEST PASS for both checks
Step 14 of 14
Recap
Retiring the analogy
You no longer need “a very fast apprentice who never says i do not know”. An agent is a program that predicts plausible work from the text it is given. It has no memory between sessions beyond files it reads, and no sense of when it is wrong. Rules belong in a file in the repository, work belongs on a development copy, and every claim is checked against the artefact itself.
Recap
- Assistant works inside Studio. The built-in Studio MCP server lets an outside agent read scripts, run Luau, press Play and save, and you decide how much it may do. Blender MCP and ComfyUI are separate tools for art.
- Trust the artefact, not the summary: read the diff, run a test that failed before, press Play, and open every link. This course's own failures were wrong captures, wrong links, tests that passed on stock and tools that behaved differently from the docs.
- An agent forgets between sessions. Put its rules in a file in the repository, keep it on a development game, and review its work like a teammate's.
AI coding agents is a very fast apprentice who never says I do not know, until a human apprentice remembers a correction tomorrow and tells you when unsure, but an agent starts each session without yesterday's instructions and sounds equally sure when it is wrong, including about links and numbers.
Queued for review
- Which string is the Idle HUD label in Hud.luau?
- An agent uses execute_luau to require Beacon Yard's DataService and read a player's profile during Play. It sees an empty profile, although the player has coins. Why?
- Which problems does this draft have in Beacon Yard's test place?
- An early draft of the studio-tour check created a part called TourMarker inside the test and then looked for it. What was wrong with it?
- Match each failure from the build to the habit that catches it.
- Yesterday you told an agent never to edit Config.luau. Today, in a new session, it edits Config.luau. What is the most useful fix?