Roblox Studio MCP Server
RobloxUI CLI
数分钟内搭建一个 Roblox 项目并连接到 Roblox Studio。robloxui init 可创建一个 Roblox-TS 或 Luau/Wally 项目,预配置了 Rojo、mise 固定的工具链、一个最小化玩家生成点,以及用于 AI 工具的 Roblox Studio MCP 服务器。后续可通过 robloxui add 添加市场组件(robloxui.pencicta.com)。
快速开始
npx robloxui init根据提示(项目名称、类型、主题)进行操作,然后:
cd my-game
npm run dev # compiles and syncs into Studio在 Roblox Studio 中: 打开项目文件夹中的 game.rbxl → Rojo 插件 → 连接 → 按下 播放。
就这样——一个带有生成点和空客户端挂载的可游玩场所,已准备好用于 UI。
robloxui init
搭建一个空的 Roblox-TS 或 Luau/Wally 项目,包含一个最小化玩家生成点,并预配置了 RobloxUI 组件、工具链和 Studio 连接。
robloxui init --name my-game --flavor roblox-ts --yes
robloxui init --name . --flavor luau-wally --yes # scaffold in cwd
robloxui init --name my-game --flavor roblox-ts --yes --theme # include the theme选项 | 描述 |
| 非交互式(需要 |
| 项目文件夹名称,或 |
|
|
| 跳过依赖安装/主题设置 |
| 不自动安装缺失的 mise |
| 在脚手架中包含 RobloxUI 主题 |
| 搭建时不包含主题 |
创建内容:Rojo 配置、mise.toml 工具链固定、标准 DataModel 服务(Lighting、ServerStorage、SoundService、StarterGui、StarterPack、StarterCharacterScripts)、一个最小化玩家生成点、空客户端挂载、src/shared + src/server 文件夹,以及一个 game.rbxl 场所文件。RobloxUI 主题为可选加入:使用 --theme(或回答提示)也会连接规范的 robloxui/theme 令牌。初始化会在需要时使用官方安装程序引导 mise。
现有项目会被检查,但不会替换自定义 Rojo 映射。非交互模式会拒绝模糊的类型或目标输入。
连接到 Roblox Studio
一次性设置
运行
npx robloxui init—— mise 和固定工具会自动引导安装 Rojo Studio 插件(Roblox Studio → 插件 → 搜索“Rojo”)
Roblox-TS 工作流
在项目中运行一个命令:
npm run dev # compiles and syncs into Studio文件 | 角色 |
| 将 |
| 你的 TypeScript 源码 |
| 编译后的 Luau(由 |
在 Studio 中: 打开 game.rbxl → Rojo 插件 → 连接 → 按下 播放。
Luau / Wally 工作流
npm run dev # installs/syncs the Wally project into Studio文件 | 角色 |
| Wally 布局的 Rojo 项目文件 |
| Wally 的项目元数据(主题随附,无需依赖) |
| 供应商提供的主题(由 init / |
| 客户端引导程序 |
对于你自己的(非 RobloxUI)Wally 包,将其添加到 wally.toml 并运行 wally install —— RobloxUI 主题本身已随附,无需依赖。
Studio MCP(AI 工具)
Init 可以将 Roblox Studio MCP 服务器连接到你的 AI 工具(opencode.json、.mcp.json、.cursor/mcp.json 或 .vscode/mcp.json)。在 Studio 中启用一次:助理 → ⋯ → 管理 MCP 服务器 → 启用 Studio 作为 MCP 服务器 —— 然后你的代理就可以读取游戏树、编辑脚本、插入模型并运行测试。
先决条件
Node.js ≥ 20.12(CLI 测试/构建工具链所需)
mise 会在 PATH 中不存在时使用官方安装程序引导
Rojo CLI + Rojo Studio 插件
Wally —— 仅 Luau 项目
当引导被禁用时,在项目中运行 mise install 来安装固定的工具。
其他内容
以下部分涵盖市场工作流——安装组件、身份验证、浏览目录和故障排除。在需要超过脚手架功能之前,可以跳过这些部分。
身份验证
运行一次 robloxui login。两种流程:
robloxui login # browser device flow (recommended)
robloxui login --token <key> # manual API key (CI / headless)浏览器流程会打印一个短代码——打开 URL,批准,完成。你的令牌会保存到 ~/.config/robloxui/config.json(Linux/macOS)或 %APPDATA%\robloxui\config.json(Windows)。
CI / 无头机器:在 Dashboard → Developer 生成一个密钥,然后粘贴。
robloxui whoami # check who you're logged in as
robloxui logout # remove saved token限制 —— 免费用户每天 2 次下载。Pro 订阅用户可无限使用。详见 https://robloxui.pencipta.com/pricing。
robloxui add <slug...>
安装一个或多个组件。
robloxui add primary-button
robloxui add button card dialog --yes # non-interactive (CI)
robloxui add button --theme # also install the theme package选项 | 描述 |
| 接受所有默认值 |
| 覆盖现有文件 |
| 覆盖安装目录 |
| 同时安装 RobloxUI 主题包 |
| 跳过主题包 |
CLI 将:
预检查 slug、身份验证、目标、类型、包管理器和工具,在网络或写入之前
检测 你的项目类型(
rojo.json→ Roblox-TS,wally.toml→ Luau)提示 安装路径(默认:
src/client/ui/components/)以及是否安装主题获取 来自 API 的组件源码 + 元数据
暂存并验证 所有文件;冲突默认停止(
--force是显式的)写入 源码,并在请求时以事务方式安装主题
robloxui list / robloxui search
robloxui list # browse all components
robloxui search dialog # search by name/description
robloxui list --framework tsx # filter by framework
robloxui list --category buttons --limit 20选项 | 描述 |
|
|
| 按类别筛选 |
| 最大结果数(默认 30,最大 100) |
robloxui info <slug>
robloxui info primary-button输出:框架、类别、依赖、主题令牌、使用示例和确切的 robloxui add 命令。
项目检测
检测到的 | 主题安装方法(仅当使用 |
|
|
| 将随附的 |
其他 | 手动选择项目类型 |
主题永远不会自动安装:非交互式运行会跳过,交互式运行会询问。组件可以独立运行,因为它们嵌入了自己的设计令牌。
故障排除
每个 CLI 失败都会打印恢复提示(重试 + 手动命令 + 保留的路径)。常见修复:
问题 | 修复 |
| 令牌已过期或撤销。重新运行 |
| 免费版:每天 2 次。升级到 Pro:https://robloxui.pencipta.com/pricing |
| 需要 Pro 订阅。运行 |
Pro 组件返回无源码 | 先登录( |
Rojo 无法连接 | 确保在项目根目录中运行 |
播放模式下无显示(Roblox-TS) | 保持 |
找不到 | 你选择了主题但缺少:重新运行 |
以后想要规范主题 |
|
UI 不显示 | 按下 播放,而不是编辑——脚本在 |
链接
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automate…
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/erickow/robloxui-cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server