Problem
The Manage MCPs interface in Antigravity IDE remains stuck indefinitely on “Loading MCP servers…”.
This happens even after a fresh IDE reinstall and when using an empty MCP configuration.
Interestingly, the Agent works normally, and configured MCP tools can execute successfully.
Exact error
The Developer Tools Console repeatedly reports:
Access to fetch has been blocked by CORS policy.
Response to preflight request doesn't pass access control check:
No 'Access-Control-Allow-Origin' header is present.
Failing endpoint:
http://127.0.0.1:52635/exa.language_server_pb.LanguageServerService/GetMcpServerStates
Origin:
vscode-file://vscode-app
Environment
-
Windows 11 64-bit
-
Antigravity IDE: 2.6.0
-
AGY backend: 1.4.11
Troubleshooting completed
-
Freshly reinstalled Antigravity IDE.
-
Restored and verified the original AGY executable.
-
Confirmed AGY health endpoint returns HTTP 200.
-
Tested CORS preflight on both /healthz and GetMcpServerStates; both return HTTP 204 without Access-Control-Allow-Origin.
-
Tested with an empty MCP configuration; issue persists.
-
Confirmed Supabase MCP list_projects works successfully through the Agent.
-
Verified executable and metadata both report AGY 1.4.11.
Expected behaviour
Manage MCPs should load and display configured MCP servers normally.
Actual behaviour
The interface stays on “Loading MCP servers…” because Chromium blocks the server-list request due to the missing CORS permission header.
Questions
-
Is this a known CORS regression in Antigravity IDE 2.6.0 or AGY 1.4.11?
-
Should the AGY backend allow the vscode-file://vscode-app origin?
-
Is there an official patched AGY build or IDE update?
-
What is the recommended workaround without disabling browser security or modifying application binaries?
Please investigate the CORS preflight handling between the IDE frontend and the local AGY backend.
@sumanth_repala The reason the Manage MCPs interface hangs indefinitely while the agent executes tools without issue comes down to transport isolation between the IDE renderer and the language server daemon.
The agent daemon executes MCP tools out-of-band: it spawns local child processes over standard I/O pipes (stdio) or routes requests across direct loopback IPC without touching Electron’s Chromium network stack. In contrast, the Manage MCPs panel (workbench.input.antigravityConfigurePluginsPageInput) runs within the sandboxed webview context under the origin vscode-file://vscode-app.
When that panel initialises, the frontend MCP service triggers a 300 ms polling loop against the local language server gRPC-web endpoint:
http://127.0.0.1:<port>/exa.language_server_pb.LanguageServerService/GetMcpServerStates
Because Chromium treats vscode-file:// as a distinct cross-origin scheme, it issues an HTTP OPTIONS preflight request. The embedded HTTP server on the AGY backend returns HTTP 204 No Content but omits the Access-Control-Allow-Origin: vscode-file://vscode-app header (along with the necessary gRPC-web headers). Chromium enforces web security rules and drops the response.
Within the workbench desktop bundle, the polling promise swallows rejected requests via .catch(() => {}). Because the rejected fetch never throws an uncaught error to the UI and never sets the internal initialisation flag (mcpServersInitialized), the render gate never flips. The spinner remains visible indefinitely while the interval quietly burns polling cycles in the background.
To address your specific questions:
- Regression status: Yes. When the frontend moved internal plugin management into this webview panel, the local language server daemon was not configured with the CORS middleware headers required to permit the custom
vscode-file:// scheme on its loopback gRPC endpoints.
- Origin permission: Yes. The AGY backend loopback listener must return
Access-Control-Allow-Origin: vscode-file://vscode-app (or reflect the loopback origin) along with Access-Control-Allow-Headers: content-type, x-grpc-web, x-user-agent to allow Chromium to complete the handshake.
- Patched build: An official fix requires an update to the AGY backend binary to include these CORS headers on the loopback HTTP router.
- Clean workaround: You do not need to patch binaries or disable web security. Declare and manage your MCP servers directly in the configuration file:
%USERPROFILE%\.gemini\config\mcp_config.json (global) or .gemini\mcp_config.json (workspace-specific).
Because the agent reads this file directly at runtime, any tools configured there mount immediately without depending on the Manage MCPs UI panel. If the broken tab automatically reopens on launch, close the tab before exiting, or clear the persisted editor entry from your workspace storage (state.vscdb under memento/workbench.parts.editor).