Prerequisite: Install the
engram binary first via Homebrew or binary download.Add the MCP Server
1
Open MCP Store
Click the
... dropdown in the agent panel → Manage MCP Servers2
View raw config
Click View raw config
3
Edit mcp_config.json
Add to
~/.gemini/antigravity/mcp_config.json:4
Save and restart
Save the file. Antigravity will reload the MCP servers automatically.
Adding the Memory Protocol (Recommended)
Without the Memory Protocol, the agent has the tools but doesn’t know WHEN to use them.Option A: Global Rule
Add to~/.gemini/GEMINI.md:
Option B: Workspace Rule
Add to.agent/rules/engram-memory.md in your project:
Platform-Specific Notes
macOS / Linux
Config path:~/.gemini/antigravity/mcp_config.json
Windows
Config path:%USERPROFILE%\.gemini\antigravity\mcp_config.json
Antigravity vs. VS Code
Do not use.vscode/mcp.json with Antigravity. Use ~/.gemini/antigravity/mcp_config.json instead.
Antigravity’s agent system:
- Skills — Reusable knowledge bundles
- Rules — Project-specific agent instructions
- MCP — Tool integrations via stdio transport
Memory Protocol Behavior
With the Memory Protocol inGEMINI.md or .agent/rules/, the agent:
- Saves proactively after bugfixes, decisions, discoveries, patterns
- Searches reactively when you say “remember” or “what did we do”
- Searches proactively when starting work that might overlap past sessions
- Closes sessions with
mem_session_summarybefore saying “done” - Recovers state after compaction with
mem_context
Troubleshooting
MCP tools not available
Check MCP config:engram server entry exists.
Binary not found
Antigravity can’t findengram command:
Agent doesn’t use memory
Check that global or workspace rules include the Memory Protocol:Next Steps
- Learn about the Memory Protocol
- Explore MCP Tools
- Set up Git Sync for team memory sharing