Repository navigation
Description
Version
codebase-memory-mcp 0.9.0
Platform
Windows (x64)
Install channel
GitHub release archive / install.sh / install.ps1
Binary variant
standard
What happened, and what did you expect?
When running codebase-memory-mcp install (or using the Windows install.ps1 script), the installer detects and configures the outdated/legacy agent Gemini-CLI rather than Antigravity (the current successor for Antigravity 2.0).
Consequently, it writes the configuration to the deprecated monolithic file C:\Users\<Username>\.gemini\settings.json.
In Antigravity 2.0, the configuration format is modular:
- MCP server configurations must reside in
~/.gemini/config/mcp_config.json - Hooks configurations must reside in
~/.gemini/config/hooks.json
Because it targets the legacy file ~/.gemini/settings.json, the newly installed MCP server and hooks are completely ignored by the Antigravity 2.0 agent.
Additionally, on Windows, this outdated installation process creates a duplicate binary:
C:\Users\<Username>\AppData\Local\Programs\codebase-memory-mcp\codebase-memory-mcp.exe(installed byinstall.ps1)C:\Users\<Username>\.local\bin\codebase-memory-mcp.exe(copied by the binary'sinstallcommand)
Since the binary is ~273 MB, this wastes disk space, and neither copy is recognized by Antigravity 2.0 out-of-the-box because of the incorrect path configuration.
Root Cause Analysis
Inside the codebase-memory-mcp binary's install command logic:
- It looks for and writes to the legacy Gemini CLI agent path:
~/.gemini/settings.json. - It has not been updated to detect
Antigravityand write sparse configurations to the modern configuration directory~/.gemini/config/(specificallymcp_config.jsonandhooks.json).
Expected Behavior
- The
installcommand should detect the modernAntigravityagent (IDE & CLI). - It should write the MCP server configuration to
~/.gemini/config/mcp_config.jsoninstead of~/.gemini/settings.json. - It should write the hooks configuration to
~/.gemini/config/hooks.jsonusing the Antigravity 2.0 hook schema (e.g., usingPreToolUseinstead ofBeforeTool,PreInvocationinstead ofSessionStart, and outputting JSON{"decision": "allow"}for tool-use checks). - On Windows, the installer script
install.ps1and the binary should coordinate on a single binary installation path (e.g.,~/.local/bin/orAppData/Local/Programs/) to avoid creating two duplicates of the 273 MB binary.
Reproduction
- Run
install.ps1(orcodebase-memory-mcp install -y) on a Windows machine. - Observe the command output showing the detection of the outdated agent:
Detected agents: Gemini-CLI Gemini CLI: mcp: C:/Users/uongsuadaubung/.gemini/settings.json instructions: C:/Users/uongsuadaubung/.gemini/GEMINI.md hooks: BeforeTool + SessionStart (codebase-memory-mcp reminder) - Check the generated configuration: it is written to the legacy
C:\Users\<Username>\.gemini\settings.jsonpath instead ofC:\Users\<Username>\.gemini\config\mcp_config.json. - Open the Antigravity 2.0 IDE/CLI and observe that the MCP server is not recognized.
Logs
Diagnostics trajectory (memory / performance / leak issues)
Project scale (if relevant)
No response
Confirmations
- I searched existing issues and this is not a duplicate.
- My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.
Activity
DeusData commentedon Jul 18, 2026
Thanks for documenting both symptoms. This report currently combines two separate contracts. The current official Gemini CLI documentation still places user MCP configuration and hooks in
~/.gemini/settings.json, with hook events includingBeforeToolandSessionStart: https://github.com/google-gemini/gemini-cli/blob/main/docs/reference/configuration.md. We should therefore not replace the Gemini CLI integration with the proposed Antigravity paths and event names without a canonical Antigravity 2.0 specification and exact product/build identifier. Please link those official references. The duplicate 273 MB Windows binary, however, is a concrete installer-coordination bug and remains tracked in 0.9.1-rc.DeusData commentedon Sep 26, 2026
Thank you, @uongsuadaubung! The duplicate binary is fixed: since v0.10.0,
install.ps1hands its own install directory to the binary's installer, so only one copy exists.On Antigravity: when it's detected, cbm already writes to
~/.gemini/config/mcp_config.json. Detection currently looks for~/.gemini/antigravity-clior theantigravityCLI on PATH. If your setup has neither, a link to the official Antigravity 2.0 config reference would let us add the right probe.DeusData commentedon Oct 19, 2026
Thank you for documenting both installation symptoms. The last update reported the duplicate-copy fix and narrowed the remaining Antigravity question to detection. If your installation has neither detection marker mentioned above, the exact product/build and its official configuration reference remain the missing information.
github-actions commentedon Oct 25, 2026
Thanks for the report! To move this forward we need a bit more so we can reproduce it ourselves:
codebase-memory-mcp --versionyou're onOnce that's here we'll pick it straight back up. Heads-up: issues left
awaiting-reporterare automatically closed after a few weeks of silence, but a comment reopens the door anytime.