Roblox Studio Mcp

TabooHarmony/roblox-brain/skills/tools/roblox-studio-mcp

作者 TabooHarmony38826be57ee37bcf023e9c2b85681bea3909281c无许可证收录于 2026年10月9日更新于 2026年10月9日

Use when working with Roblox Studio through built-in MCP for scripts, scenes, generated assets, input, or playtesting.

AI 生成的概览

指导智能体通过 Roblox Studio 的 MCP 桥接检查、编辑并试玩 Roblox 项目。

功能
该技能为通过 MCP 桥接操作 Roblox Studio 提供操作指引,涵盖官方内置桥接和第三方桥接。内容包括按能力路由、引导目标 Studio 实例、检查场景树与脚本、进行有界编辑、生成并插入资源,以及通过控制台输出和屏幕截图作为证据进行试玩。它还列出可靠性规则,例如先读后写、因 execute_luau 无状态而每次重新获取引用,以及在依赖生成任务的编辑前等待任务完成。
适用场景
适用于通过 MCP 处理 Roblox Studio 的任务,包括脚本、场景、生成资源、输入模拟、调试或试玩。不适用于 Studio 之外的独立代码生成。
运行要求
需要智能体能够访问 Roblox Studio MCP 桥接(官方内置或第三方)以及正在运行的 Studio 实例;该技能不附带脚本,仅包含说明和一份参考文档。

Roblox Studio MCP

When to Load

Load for Studio MCP work: scripts, scenes, assets, debugging, or playtesting. Skip for standalone code generation.

Quick Reference

Route by capability first. Two Studio MCP bridges exist: the official (built into Studio, closed-source) and chrrxs's (MIT). Route on tools/list (get_connected_instances/eval_*/multiplayer_* → chrrxs; list_roblox_studios + per-call studio_id → official) BEFORE bridge-specific bootstrap.

Bootstrap before mutation

  1. Identify the target via list_roblox_studios (official) or get_connected_instances (chrrxs).
  2. Pass the target's studio_id (official) or instance_id (chrrxs) on every tool call.
  3. get_studio_state and confirm Edit/Client/Server availability.
  4. Inspect the target tree and scripts before changing them.

Execution contract

text
discover → select Studio/context → inspect → mutate in bounded batches→ read back → start play → evaluate live → evidence → clean up

Edit-time injection (multi_edit, Edit-context execute_luau) writes scripts; it never targets a running playtest. Live evaluation targets a running VM: start play, wait for the intended Client/Server VM, then evaluate there. A stopped VM is never a live-evaluation target. Pass datamodel_type only where the tool requires it; do not guess from a previous session.

Capabilities

Inspect (search_game_tree, inspect_instance, script_read, script_grep), edit/execute (multi_edit, execute_luau), assets (search_asset/insert_asset, generate_* with wait_job_finished, store_image/upload_image), play/evidence (start_stop_play, get_console_output, screen_capture, input simulation, subagent).

Reliability rules

  • execute_luau is stateless: re-acquire references every call.
  • Read before write; read back after every script, asset, or geometry mutation.
  • Choose reuse vs generation vs native fallback before asset work.
  • Call wait_job_finished before edits that depend on a generation job.
  • Command-size limits are bridge-specific. Split large scripts into separate bounded multi_edit/execute_luau writes (or supported multi-edit operations), then read back the full payload to verify.
  • If MCP is absent, provide offline Luau and state what was not verified.

Full tool mappings, live schemas, asset workflows, and recovery rules: references/full.md [blocked]

来源与署名

来源:TabooHarmony/roblox-brain位于skills/tools/roblox-studio-mcp提交38826be

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架