
Connect to Antigravity
Antigravity — MCP configuration through the editor's JSON.
Which MCP will you connect? The commands below change according to your choice.
- 1
Generate your API key
Sign in to app.newalgorithm.io with your account, open Keys & apps and generate a key. It is shown only once: copy it and store it somewhere safe.
Key formatna_live_xxxxxxxxxxxxxxxxx - 2
Open the MCP Servers panel
In Antigravity, go to Settings → MCP Servers and choose the option to edit the raw configuration (raw config / JSON).
- 3
Declare the NewAlgorithm server
For clients that accept remote servers directly by URL:
mcp_config.json{ "mcpServers": { "NewAlgorithm-TOTVS": { "serverUrl": "https://totvs.mcp.newalgorithm.io/mcp", "headers": { "Authorization": "Bearer na_live_xxxxxxxxxxxxxxxxx" } } } } - 4
If the editor doesn't accept a remote URL
Use the same bridge as the other clients — the result is identical from the agent's point of view:
mcp_config.json (alternative){ "mcpServers": { "NewAlgorithm-TOTVS": { "command": "npx", "args": [ "-y", "mcp-remote", "https://totvs.mcp.newalgorithm.io/mcp", "--header", "Authorization: Bearer na_live_xxxxxxxxxxxxxxxxx" ] } } } - 5
If a NewAlgorithm sign-in screen appears, ignore it
Antigravity may try to connect on its own through sign-in (OAuth), opening that flow and repeating it in the background without finishing. You don't need it: with the API key in the header, as above, the connection works without signing in. If the loop continues, remove the server, save the configuration with the key and reload.
- 6
Reload the servers
Use the refresh button in the MCP Servers panel. NewAlgorithm should appear as connected, with the na_* tools listed.
Authentication and tool details in the Docs.