MCP server

/

Coding assistants

Antigravity

Installing Spectron as an MCP server in Google Antigravity.

Installing Spectron in Google Antigravity gives the agent persistent memory across sessions, so it can recall previous decisions and project context without you repeating them.

For integration rules your agent should follow (auth, scope, endpoints, common mistakes), see Agent guide (AGENTS.md).

Antigravity's IDE and CLI share a central MCP configuration at ~/.gemini/config/mcp_config.json. In the IDE you can reach it through Manage MCP servers → View raw config.

Note

Antigravity uses a stricter schema than most MCP clients: remote Streamable HTTP servers use serverUrl, not url.

{
  "mcpServers": {
    "spectron": {
      "serverUrl": "https://<your-context-host>/mcp",
      "headers": {
        "Authorization": "Bearer <your-api-key>",
        "X-Spectron-Context": "acme-prod"
      }
    }
  }
}

On SurrealDB Cloud, use your context host from Surrealist API keys (not a generic shared domain). Self-hosted: replace the URL with your Spectron server's base URL + /mcp.

Note

X-Spectron-Context is a client-side convenience for templating. Each API key is bound to one Context, so context_id is optional on every tool call; omit it to use the key's Context. An explicit value that does not match the key still returns 401.

  1. Open Antigravity

  2. Open the MCP store and confirm spectron appears with a healthy indicator

  3. In a chat, ask "What MCP tools do you have available?" Antigravity should report the Spectron tools

If the server is unhealthy, check that serverUrl (your context host + /mcp) and the API key in mcp_config.json are correct.

Store project context:

"Remember that this repo uses a monorepo layout with apps in apps/ and shared packages in packages/."

Antigravity calls memory_store with a suitable scope.

Recall before answering:

"Where should a new shared utility live in this project?"

Antigravity calls memory_recall before composing its response.

Narrow reads and writes with the per-tool scope argument (slash paths, for example ["org/acme/project/platform"]). Register paths with spectron scopes create before first use. For project isolation, use separate contexts or distinct scope paths.

Open mcp_config.json and delete the "spectron" key from mcpServers.

Was this page helpful?