diff --git a/docs/integrations/antigravity.mdx b/docs/integrations/antigravity.mdx index 0738666d7a..3a6836f58a 100644 --- a/docs/integrations/antigravity.mdx +++ b/docs/integrations/antigravity.mdx @@ -24,45 +24,22 @@ echo 'export MEM0_API_KEY="m0-your-api-key"' >> ~/.bashrc && source ~/.bashrc ## Installation -**Option A — degit** (one command, no clone needed): +**Option A — degit** (recommended): ```bash -npx degit mem0ai/mem0/mem0-plugin/.antigravity ~/.gemini/config/plugins/mem0 +# Install the plugin (MCP server, hooks, scripts) +npx degit mem0ai/mem0/mem0-plugin ~/.gemini/config/plugins/mem0 ``` -**Option B — agy CLI** (if you have the repo cloned): - -```bash -agy plugin install /path/to/mem0/mem0-plugin/.antigravity -``` - -**Option C — MCP only** (no hooks or skills): - -Create `~/.gemini/config/plugins/mem0/plugin.json`: - -```json -{ - "name": "mem0", - "mcpServers": { - "mem0": { - "serverUrl": "https://mcp.mem0.ai/mcp/", - "headers": { "Authorization": "Token ${MEM0_API_KEY}" } - } - } -} -``` - -Restart Antigravity. The full plugin auto-registers the MCP server, lifecycle hooks, scripts, and all `/mem0:` skills. It reads `MEM0_API_KEY` from your environment automatically — no extra config needed. - - +This installs the MCP server, lifecycle hooks, and shared scripts. ## What's Included -| Component | Full Plugin (A/B) | MCP Only (C) | -|-----------|:-----------------:|:------------:| -| MCP Server (9 memory tools) | Yes | Yes | -| Lifecycle Hooks | Yes | No | -| 16 Slash Commands | Yes | No | +| Component | Included | +|-----------|:--------:| +| MCP Server (9 memory tools) | Yes | +| Lifecycle Hooks | Yes | +| 16 Slash Commands | Yes | ## Available MCP Tools diff --git a/docs/integrations/opencode.mdx b/docs/integrations/opencode.mdx index 78b57fdd5a..e069ab8e68 100644 --- a/docs/integrations/opencode.mdx +++ b/docs/integrations/opencode.mdx @@ -67,10 +67,6 @@ If you only need the memory tools without hooks or skills, add this to your `ope } ``` - - Start a new OpenCode session and ask: *"Search my memories for hello"*. If the `mem0` tools appear and respond, you're all set. - - ## What's Included | Component | Plugin (A) | MCP Only (B) | diff --git a/mem0-plugin/.antigravity-mcp.json b/mem0-plugin/.antigravity-mcp.json deleted file mode 100644 index 86e2428d5f..0000000000 --- a/mem0-plugin/.antigravity-mcp.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "mcpServers": { - "mem0": { - "serverUrl": "https://mcp.mem0.ai/mcp/", - "headers": { - "Authorization": "Token ${MEM0_API_KEY}" - } - } - } -} diff --git a/mem0-plugin/.antigravity/scripts b/mem0-plugin/.antigravity/scripts deleted file mode 120000 index a339954dff..0000000000 --- a/mem0-plugin/.antigravity/scripts +++ /dev/null @@ -1 +0,0 @@ -../scripts \ No newline at end of file diff --git a/mem0-plugin/.antigravity/skills b/mem0-plugin/.antigravity/skills deleted file mode 120000 index 42c5394a18..0000000000 --- a/mem0-plugin/.antigravity/skills +++ /dev/null @@ -1 +0,0 @@ -../skills \ No newline at end of file diff --git a/mem0-plugin/README.md b/mem0-plugin/README.md index 7a39722f99..04fc68323d 100644 --- a/mem0-plugin/README.md +++ b/mem0-plugin/README.md @@ -186,35 +186,14 @@ See [OpenCode integration docs](https://docs.mem0.ai/integrations/opencode) for ### Antigravity (Google) -**Option A — degit** (recommended, one command): +**Option A — degit** (recommended): ```bash -npx degit mem0ai/mem0/mem0-plugin/.antigravity ~/.gemini/config/plugins/mem0 +# Install the plugin (MCP server, hooks, scripts) +npx degit mem0ai/mem0/mem0-plugin ~/.gemini/config/plugins/mem0 ``` -**Option B — agy CLI** (if you have the repo cloned locally): - -```bash -agy plugin install /path/to/mem0/mem0-plugin/.antigravity -``` - -Both install the MCP server, lifecycle hooks, all 16 skills, and shared scripts. - -**Option C — MCP only** (no hooks or skills) — create `~/.gemini/config/plugins/mem0/plugin.json`: - -```json -{ - "name": "mem0", - "mcpServers": { - "mem0": { - "serverUrl": "https://mcp.mem0.ai/mcp/", - "headers": { "Authorization": "Token ${MEM0_API_KEY}" } - } - } -} -``` - -All options read `MEM0_API_KEY` from your environment automatically. +This installs the MCP server, lifecycle hooks, and shared scripts. See [Antigravity integration docs](https://docs.mem0.ai/integrations/antigravity) for full details. @@ -265,11 +244,11 @@ The plugin includes 17 skills accessible via `/mem0:` commands: ## What's included -| Component | Claude Code / Cowork | Cursor (Marketplace) | Cursor (Deeplink/Manual) | Codex (Sideload) | Codex (Direct MCP) | OpenCode (Full) | OpenCode (MCP) | Antigravity (A/B) | Antigravity (C) | -|-----------|:--------------------:|:--------------------:|:------------------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------------:|:-----------------:| -| MCP Server | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | -| Lifecycle Hooks | Yes | Yes | No | Opt-in | No | Yes | No | Yes | No | -| Mem0 SDK Skill | Yes | Yes | No | Yes | No | Yes | No | Yes | No | +| Component | Claude Code / Cowork | Cursor (Marketplace) | Cursor (Deeplink/Manual) | Codex (Sideload) | Codex (Direct MCP) | OpenCode (Full) | OpenCode (MCP) | Antigravity | +|-----------|:--------------------:|:--------------------:|:------------------------:|:----------------:|:------------------:|:---------------:|:--------------:|:-----------:| +| MCP Server | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | +| Lifecycle Hooks | Yes | Yes | No | Opt-in | No | Yes | No | Yes | +| Mem0 SDK Skill | Yes | Yes | No | Yes | No | Yes | No | Yes | - **MCP Server** — Connects to the Mem0 remote MCP server (`mcp.mem0.ai`), providing tools to add, search, update, and delete memories. No local dependencies required. - **Lifecycle Hooks** — Automatic memory capture at key points. Claude Code, Cursor, OpenCode, and Antigravity wire hooks natively when the full plugin is installed. Codex hooks are opt-in via a one-time installer (`scripts/install_codex_hooks.py`). @@ -283,7 +262,7 @@ When the plugin updates (new version pulled from the marketplace, or a fresh loc - **Cursor:** quit and relaunch. - **Codex:** restart the editor session. - **OpenCode:** restart the session. -- **Antigravity:** restart the session, or re-run `agy plugin install /path/to/mem0/mem0-plugin/.antigravity`. +- **Antigravity:** restart the session. Your `MEM0_API_KEY` doesn't need to be re-entered — the auth header is re-read from your environment on the new session. The plugin's MCP config uses `${MEM0_API_KEY}` interpolation at session start, not at install time, so as long as the env var is set persistently (in your shell profile or `~/.claude/settings.json` `env` block), reconnection is automatic on restart. diff --git a/mem0-plugin/.antigravity/hooks/hooks.json b/mem0-plugin/hooks.json similarity index 100% rename from mem0-plugin/.antigravity/hooks/hooks.json rename to mem0-plugin/hooks.json diff --git a/mem0-plugin/.antigravity/mcp_config.json b/mem0-plugin/mcp_config.json similarity index 100% rename from mem0-plugin/.antigravity/mcp_config.json rename to mem0-plugin/mcp_config.json diff --git a/mem0-plugin/.antigravity/plugin.json b/mem0-plugin/plugin.json similarity index 100% rename from mem0-plugin/.antigravity/plugin.json rename to mem0-plugin/plugin.json