# Integrating Google Antigravity with Roblox Studio via Rust MCP This guide outlines exactly how to connect the Google Antigravity system (running within VS Code) natively to your Roblox Studio instance utilizing the high-performance **Rust Model Context Protocol (MCP)** implementation. --- ## Step 1: Prepare the Rust Environment The `studio-rust-mcp-server-main` reference must first be built into a local binary. 1. Open your terminal inside the `studio-rust-mcp-server-main` repository directory. 2. Ensure you have Rust and Cargo installed via rustup. 3. Build the server for release: ```bash cargo build --release ``` 4. This will output a binary executable located at `target\release\rbx-studio-mcp.exe`. ## Step 2: Configure Google Antigravity (VS Code) Google Antigravity leverages a configuration file named `mcp.json` inside your VS Code user data directory to identify connected AI bridging servers. 1. Navigate to your VS Code data folder. On Windows, this is typically located at: `C:\Users\User\AppData\Roaming\Code\User\mcp.json` *(If the file does not exist, create it).* 2. Add the `Roblox Studio` entry to the `mcpServers` object, directing it to your compiled executable and passing the required `--stdio` flag. The file should look like this: ```json { "mcpServers": { "Roblox Studio": { "command": "C:\\Users\\User\\Desktop\\VSCode2\\RobloxStudio-MCP-GoogleAntigravity\\references\\studio-rust-mcp-server-main\\target\\release\\rbx-studio-mcp.exe", "args": [ "--stdio" ] } } } ``` ## Step 3: Install the Studio Component Plugin The Rust MCP server utilizes a native Roblox Studio plugin (`MCPStudioPlugin.rbxm`) to communicate over local ports via long polling. The compiled server binary can install this plugin automatically. 1. Run the `.exe` directly **without any arguments** from your command line: ```bash .\target\release\rbx-studio-mcp.exe ``` 2. The installer will automatically extract and inject the plugin directly into your local Roblox plugins directory (`%LOCALAPPDATA%\Roblox\Plugins`). ## Step 4: Finalizing the Integration You must make both systems aware of the new bridging connections. 1. **Reload VS Code**: Because you just created/modified `mcp.json`, the Antigravity system hasn't loaded it yet. Run the VS Code command `Developer: Reload Window` (Ctrl+Shift+P) or simply restart VS Code entirely. 2. **Restart Roblox Studio**: Open any local place or project file to load your plugins. 3. **Activate the Plugin**: In the Studio `Plugins` toolbar, click the MCP icon to toggle it ON. Look at your Studio `Output` window—you should see the message: > `"The MCP Studio plugin is ready for prompts."` --- ## Step 5: Test the Workspace Link! The setup is complete! Since Google Antigravity relies on an internal network of autonomous tools (and doesn't require jumping through an external Claude/Cursor GUI), you can simply begin prompting directly in the Antigravity chat: - *"List the child elements of my Workspace."* - *"Create a red part at the world spawn."* - *"Find and report any LocalScripts currently running in ReplicatedStorage."* Antigravity will instantly pipe instructions sequentially through `rbx-studio-mcp.exe`, execute natively inside Roblox Studio's DataModel, and retrieve responses securely back into your agent interface. # others cat C:\Users\User\AppData\Roaming\Code\User\mcp.json