Connect Kerno to Antigravity

Connect Kerno to Antigravity, Google’s agentic environment: the mcp_config.json file, with OAuth or an API key.

Antigravity, Google’s agentic development environment, connects to Kerno as a remote MCP server. Once connected, your agent rereads your decisions, preferences and the state of your projects in Kerno, and saves what should last, just like Claude Code, Codex or Cursor: the same memory, whatever the tool.

The configuration file

Antigravity reads its MCP servers from a single file:

  • macOS and Linux: ~/.gemini/config/mcp_config.json
  • Windows: %USERPROFILE%\.gemini\config\mcp_config.json

Create the file if it does not exist. If it already lists other servers, add the kerno entry under mcpServers without touching the others. For a remote server, Antigravity expects the key serverUrl, not url as in Cursor: with url, the server is not recognised.

Connect with OAuth (no key)

  1. In mcp_config.json:
    {
      "mcpServers": {
        "kerno": {
          "serverUrl": "https://api.kerno.md/mcp"
        }
      }
    }
  2. Save the file, then reload the MCP servers in Antigravity (or restart it).
  3. On first use, Antigravity starts the connection to Kerno and opens the Kerno console in the browser: sign in with an email link, GitHub or Google, choose Read and save or Read only access, then click Authorize.
  4. The browser then shows an authorisation code, and Antigravity asks you to paste it: copy it from the browser and paste it into Antigravity. This manual step is specific to Antigravity.

The connection then appears in the Kerno console, under API keys, revocable at any time.

Connect with an API key

To do without OAuth, for example on a machine without a browser:

  1. In the Kerno console, open API keys and create a key for Antigravity. Its secret is shown only once; the Antigravity tab gives the block below, with the key already filled in.
  2. In mcp_config.json:
    {
      "mcpServers": {
        "kerno": {
          "serverUrl": "https://api.kerno.md/mcp",
          "headers": { "Authorization": "Bearer mb_live_YOUR_KEY" }
        }
      }
    }
  3. Save the file and reload the MCP servers. No browser, no code to paste.

The file then holds a secret: do not share it or commit it. One key per tool or per device lets you cut off one access without touching the others.

Check

Ask the agent: “list the topics in Kerno”. It calls memory_list and shows what your workspace holds (nothing on first connection). Then: “note in Kerno that the launch is set for 3 March”, and in another conversation, or another tool: “what did we decide about the launch?”.

The other tools (Claude, Claude Code, Codex, Cursor) and the list of Kerno’s MCP tools are described on the page Connect Kerno to Claude, Claude Code and Codex.

Your data

Kerno only stores what you or your agents write to it, in Paris, and reads neither your conversations nor your files. See the privacy policy and the terms and conditions. Any question: support@kerno.md.