StudioSync
Real-time sync between Roblox Studio and VS Code with a local REST API and MCP interface for AI agents to read and edit Roblox game scripts and instances.
README
StudioSync
Real-time, zero-config sync between Roblox Studio and VS Code — with a local REST API that AI agents (Claude Code, scripts, anything that can curl) can use to read and edit your game.
- Folders map 1:1 to Roblox services. No
project.jsonto write — the only config file,.studiosync.json, is machine-generated. - Two-way live sync of scripts: type in Studio, the file updates; save in VS Code, the open Studio editor updates. Create/delete/rename/move sync in both directions too.
- Safe initial handshake: when the project and the place differ you choose
Pull / Push / Merge, and anything overwritten is backed up to
.studiosync/backups/first. Push is a single undo step in Studio. - Auto-reconnect keyed by PlaceId. Open the project and the place — they find each other.
MyGame/
├── ReplicatedStorage/
│ └── Shared/
│ └── Hello.luau → ModuleScript
├── ServerScriptService/
│ └── Main.server.luau → Script
└── StarterPlayer/
└── StarterPlayerScripts/
└── Client.client.luau → LocalScript
Install
- Roblox Studio plugin: Creator Store asset 86309040336609 — install via Studio's Toolbox/Plugins.
- VS Code extension: download
StudioSync-<version>.vsixfrom the GitHub Releases page, then in VS Code: Extensions sidebar →···menu → Install from VSIX (orcode --install-extension StudioSync-x.y.z.vsix).
Both sides check versions on every connection: an outdated Studio plugin shows an orange update banner in its widget, and an outdated extension gets a VS Code notification. The pair always states which side to update.
Install (development)
Requirements: Node.js ≥ 20, Roblox Studio, VS Code.
npm install
npm run dev # builds + installs the Studio plugin, watches everything
Then:
- Press F5 in VS Code (opens the Extension Development Host).
- In the dev host, open an empty folder and run StudioSync: Create Project from the command palette.
- Open your place in Roblox Studio. The StudioSync plugin (installed into
your local Plugins folder by
npm run dev) starts looking for VS Code automatically. - First time only: Studio asks you to allow the plugin's HTTP requests —
allow
127.0.0.1in Plugins → Manage Plugins. - Approve the connection in VS Code, pick a sync direction if the two sides differ, and you're live.
The AI-friendly API
While the extension runs, a local REST API is available (default
http://127.0.0.1:34873 — the real port is in .studiosync.json):
curl localhost:34873/api/status
curl localhost:34873/api/explorer
curl "localhost:34873/api/script?path=ReplicatedStorage/Shared/Hello"
curl -X POST localhost:34873/api/script \
-H 'Content-Type: application/json' \
-d '{"path":"ReplicatedStorage/Shared/Hello","source":"return 42"}'
curl "localhost:34873/api/search?q=Hello"
Every mutation flows through the same sync pipeline, so it lands in the
project files and in Roblox Studio simultaneously. GET / serves the full
API reference (also in docs/api.md).
MCP: the server also speaks Model Context Protocol at /mcp — register
it once and Claude Code (or any MCP client) gets 15 native StudioSync tools:
claude mcp add studiosync --transport http http://127.0.0.1:34873/mcp
Packages (Wally)
# in VS Code: StudioSync: Add Package → sleitnick/signal@^2.0.0
Packages install from the public Wally registry into
ReplicatedStorage/Packages (standard Wally linker layout, transitive
dependencies included) and sync into Studio like any other files:
require(ReplicatedStorage.Packages.Signal). Manifest: packages.json.
Templates
StudioSync: Create Project is a setup wizard: pick a template (Empty,
Simulator, FPS, RPG, Tycoon, or Fusion — the last one auto-installs the
Fusion package), pick an instance-storage mode, done. Drop your own template
folders into ~/.studiosync/templates/ and they appear in the list.
Explorer view
The StudioSync icon in the activity bar opens a live, Roblox-style
Explorer of your place: every synced instance with class-aware icons.
Right-click to create/rename/delete instances, edit attributes, or reveal in
Studio; drag-and-drop to move. It renders the exact same tree the AI reads
via get_explorer / /api/explorer — human and AI share one live view.
Repository layout
| Path | What |
|---|---|
extension/ |
VS Code extension (TypeScript): HTTP server, sync engine, file watcher, REST API |
plugin/ |
Roblox Studio plugin (Luau): watchers, applier, long-poll client, UI |
tools/ |
Plugin packer (Luau → .rbxmx), installer, dev loop |
docs/ |
protocol.md · mapping.md · api.md |
plugin/src/Protocol.luau is generated from
extension/src/core/protocol.ts at build time — one source of truth for the
wire protocol. The plugin source layout is Rojo-compatible
(plugin/default.project.json) if you prefer rojo build.
Commands
npm run build— build extension + pluginnpm run dev— watch mode for both, auto-installs the pluginnpm test— unit tests + an end-to-end protocol simulationnpm run package— produce the.vsixand.rbxmxartifactsnpm run release— build, test, and stage versioned release artifacts indist/(with SHA256SUMS) ready to attach to a GitHub release; pushing av*tag does the same automatically via GitHub Actions
MVP scope
Syncs Script / LocalScript / ModuleScript / Folder. Properties,
attributes, tags, non-script instances, packages, and templates are planned
next phases (see docs/). Team Create is not supported yet. Windows and
macOS.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。