So today i updated my Roblox studio and when i opened my antigravity IDE. It gave me an error log heres the error:
Error: expect initialized request, but received: Some(Request(JsonRpcRequest { jsonrpc: JsonRpcVersion2_0, id: Number(1), request: CustomRequest(CustomRequest { method: “server/discover”, params: Some(Object {}), extensions: Extensions }) })) ‘else’ is not recognized as an internal or external command, operable program or batch file. ‘“%B/..\StudioMCP.exe”’ is not recognized as an internal or external command, operable program or batch file. ‘))’ is not recognized as an internal or external command, operable program or batch file. : connection closed: calling “initialize”: client is closing: EOF.
Note: This broke the auto generated Windows batch script file syntax failing with %B/..\StudioMCP.exe is not recognized as an internal or external command
That’s weird, we haven’t touched that part. You’re using Antigravity IDE, right? Please copy-paste your MCP config. To get it press Ctrl + Shift + P → Manage MCP Servers, click “View raw config” in top right.
This is the Json config that i have been using:
{
“mcpServers”: {
“Roblox_Studio”: {
“command”: “cmd.exe”,
“args”: [
“/c”,
“cd /d %LOCALAPPDATA%\Roblox && .\mcp.bat”
]
}
}
}
You can try locating the “StudioMCP.exe” file in your current running studio version folder, and instead of having those “args”, replace “cmd.exe” directly with StudioMCP.exe’s path location.
JSON:
"Roblox_Studio": {
"command": "C:\\Users\\YourUser\\AppData\\Local\\Roblox\\Versions\\version-1234567890(replace with your version file)\\StudioMCP.exe",
"args": []
}
To locate the studiomcp.exe file, go to run (win+r), type in "%LOCALAPPDATA%/Roblox", and you can use the search bar, when u find the StudioMCP.exe file however, copy its path, they will only have one backslash so you gotta add one more, this is because in JSON ’ \ ’ is an escape character, so you gotta type it twice for it to register once. Lmk if this works.
Gemini created whole another js file to connect Antigravity with Roblox Studio, so it now uses custom mcp bridge file instead of official one. It said official roblox mcp protocol is old.
Just write error to your ai and wait for it to solve it
and after digging into it, and playing around I understood that the reason why we are seeing this error specifically in Antigravity is because Antigravity’s MCP loader sends a custom server/discover request when it first connects to a server. However, the Roblox Studio MCP proxy is written strictly according to the protocol and expects initialize to be the very first request it ever receives, so it immediately crashes when it sees Antigravity’s discovery request.
Roblox needs to rework/update their mcp stuff. @Urukeli can you please get this resolved?
the “mcp bridge” your talking about is basically a proxy that your agent might have created, usually a python file, but it isn’t the best solution and if u switch models, it will require the other model to gather context again and spend unnecessary credits/usage.
If anyone’s still stuck on this, reverting Antigravity back to 2.1.1 fixes it for now.
Looks like the latest update changed something during startup and sends a request Studio doesn’t expect yet, so Studio just immediately drops the connection. Reverting to 2.1.1 avoids the issue completely.
Still hit the same issue.
As CelestialHonour guy said above, Roblox needs to fix their mcp.
While waiting on an official fix, i have got a small workaround without reverting Antigravity/Gemini to older versions.
My idea is to write a thin wrapper and point your MCP config at that wrapper instead of StudioMCP directly. The wrapper sits in between and handles the protocol mismatch for you.
Requirements
Python 3.7+ (i wrote it against Python 3.12.13)
Edit STUDIO_PATH in the file to match your PC’s OS:
macOS: /Applications/RobloxStudio.app/Contents/MacOS/StudioMCP (same on every Mac)
Windows: %LOCALAPPDATA%\Roblox\Versions\version-XXXXXXXXXX\StudioMCP.exe (you must locate your own version- folder, don’t copy someone else’s, the hash differs per machine and changes on every Studio update)
macOS: make it executable → chmod +x studiomcp_wrapper.py
Windows: no chmod needed, but you can’t point command directly at a .py file → it must be invoked through the interpreter
Back to version 2,1,1 of antigravity (if it is the IDE) if it is the antigravity chatbot, it may be a newer version
I particularly abandoned antigravity, even though I signed the pro-annual plan. I realized how far Google is in relation to others AI. I am using Qoder (and that goes fantastic) the prices are very fair and the results are very good. Chinese AIs are very good and are still open source
And as Homer Simpsons (politically inept) would say: I will say something very patriotic as a good American DEATH TO THE UNITED STATES!
If anyone using latest version of Antigravity just like me and wanna stop having headache with this issue. You can download my antigravity plugins and install directly into your antigravity ~/.gemini/config/plugins folder.