Skip to main content
Antigravity is two products with two configs. The IDE keeps MCP config in its application support directory; the agy CLI keeps its own under ~/.gemini/config/. agentmemory ships one adapter for each; they share nothing.
1

Start agentmemory

2

Run connect

The adapter writes mcp_config.json in Antigravity’s User directory. macOS: ~/Library/Application Support/Antigravity/User/. Linux: ~/.config/Antigravity/User/.
3

Restart Antigravity

Restart the IDE so the MCP server loads.
4

Verify

Ask the agent to save a fact with memory_save, then search it:
The written entry is the standard block:
mcp_config.json
The IDE is MCP-only for capture purposes; connect upserts the memory-usage guideline into ~/.gemini/GEMINI.md (Antigravity does not read AGENTS.md).

Troubleshooting

connect antigravity targets the IDE, connect antigravity-cli targets agy. They read different files; wiring one does nothing for the other. Run the adapter that matches what you use, or both.
Wrapping a lifecycle event (PreInvocation, PostInvocation, Stop) in the { matcher, hooks } form makes agy read the wrapper as a handler and reject the whole file, disabling every other bundle in it. Keep lifecycle events as flat handler lists and let the installer manage the agentmemory bundle.
Adapter sources: src/cli/connect/antigravity.ts, src/cli/connect/antigravity-cli.ts, merge engine in src/cli/connect/antigravity-hooks.ts. Hook manifest: plugin/hooks/hooks.antigravity.json.
Last modified on August 15, 2026