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?
Running the official install.ps1 shipped in the v0.9.0 release archive ends with:
error: installed binary failed to run
and exit code 1, even though the binary and all agent configs were installed successfully. Expected: the installer exits 0 after a successful install.
Root cause is a contract mismatch between install.ps1 and the install subcommand about where the binary goes:
install.ps1 calls codebase-memory-mcp.exe install -y --force --dir=%LOCALAPPDATA%\Programs\codebase-memory-mcp (line 294) and later verifies %LOCALAPPDATA%\Programs\codebase-memory-mcp\codebase-memory-mcp.exe (lines 326–334).
cbm_cmd_install() in src/cli/cli.c never parses --dir. Its argument loop only handles --dry-run, --force, --plan, and --reset-indexes, and bin_target is hardcoded to ~/.local/bin/codebase-memory-mcp.exe (lines 3817–3821).
- Therefore
%LOCALAPPDATA%\Programs\codebase-memory-mcp\codebase-memory-mcp.exe is never created. The final & $Dest --version throws, the catch block prints error: installed binary failed to run, and the script exits 1.
Secondary effect: the installer's own self-copy step (install.ps1 → %LOCALAPPDATA%\Programs\codebase-memory-mcp\install.ps1, lines 311–322) also fails because that directory is never created, printing:
note: could not place install.ps1 in ... (update will explain where to find it)
so a later update has no local updater to point at.
Reproduction
- On a fresh Windows 11 x64 machine, download the v0.9.0 release archive and extract
install.ps1.
- Run
powershell -ExecutionPolicy Bypass -File .\install.ps1.
- Observe the final line
error: installed binary failed to run (exit code 1).
- Confirm the binary actually landed at
%USERPROFILE%\.local\bin\codebase-memory-mcp.exe, and that %LOCALAPPDATA%\Programs\codebase-memory-mcp\codebase-memory-mcp.exe does not exist.
Logs
codebase-memory-mcp installer (Windows)
variant: standard
arch: amd64
target: C:\Users\xxx\AppData\Local\Programs\codebase-memory-mcp\codebase-memory-mcp.exe
Downloading codebase-memory-mcp-windows-amd64.zip...
Checksum verified.
Extracting...
Verified candidate: codebase-memory-mcp 0.9.0
codebase-memory-mcp install 0.9.0
信息: 没有运行的带有指定标准的任务。
Installed binary -> C:/Users/xxx/.local/bin/codebase-memory-mcp.exe
Detected agents: Claude-Code Codex VS-Code Cursor
Claude Code:
skills: 1 installed
mcp: C:/Users/xxx/.claude/.mcp.json
mcp: C:/Users/xxx/.claude.json
hooks: PreToolUse (Grep/Glob search-graph augmenter, non-blocking)
hooks: SessionStart (MCP usage reminder on startup/resume/clear/compact)
hooks: SubagentStart (MCP usage reminder for subagents)
Codex CLI:
mcp: C:/Users/xxx/.codex/config.toml
instructions: C:/Users/xxx/.codex/AGENTS.md
hooks: SessionStart (codebase-memory-mcp reminder)
VS Code:
mcp: C:/Users/xxx/AppData/Roaming/Code/User/mcp.json
VS Code:
mcp: C:/Users/xxx/AppData/Roaming/Code/User/profiles/builtin/mcp.json
Cursor:
mcp: C:/Users/xxx/.cursor/mcp.json
PATH already includes C:/Users/xxx/.local/bin
Install complete. Restart your shell or run:
source C:/Users/xxx/.profile
note: could not place install.ps1 in C:\Users\xxx\AppData\Local\Programs\codebase-memory-mcp (update will explain where to find it)
error: installed binary failed to run
Diagnostics trajectory (memory / performance / leak issues)
Project scale (if relevant)
No response
Confirmations
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?
Running the official
install.ps1shipped in the v0.9.0 release archive ends with:and exit code 1, even though the binary and all agent configs were installed successfully. Expected: the installer exits 0 after a successful install.
Root cause is a contract mismatch between
install.ps1and theinstallsubcommand about where the binary goes:install.ps1callscodebase-memory-mcp.exe install -y --force --dir=%LOCALAPPDATA%\Programs\codebase-memory-mcp(line 294) and later verifies%LOCALAPPDATA%\Programs\codebase-memory-mcp\codebase-memory-mcp.exe(lines 326–334).cbm_cmd_install()insrc/cli/cli.cnever parses--dir. Its argument loop only handles--dry-run,--force,--plan, and--reset-indexes, andbin_targetis hardcoded to~/.local/bin/codebase-memory-mcp.exe(lines 3817–3821).%LOCALAPPDATA%\Programs\codebase-memory-mcp\codebase-memory-mcp.exeis never created. The final& $Dest --versionthrows, the catch block printserror: installed binary failed to run, and the script exits 1.Secondary effect: the installer's own self-copy step (
install.ps1→%LOCALAPPDATA%\Programs\codebase-memory-mcp\install.ps1, lines 311–322) also fails because that directory is never created, printing:so a later
updatehas no local updater to point at.Reproduction
install.ps1.powershell -ExecutionPolicy Bypass -File .\install.ps1.error: installed binary failed to run(exit code 1).%USERPROFILE%\.local\bin\codebase-memory-mcp.exe, and that%LOCALAPPDATA%\Programs\codebase-memory-mcp\codebase-memory-mcp.exedoes not exist.Logs
Diagnostics trajectory (memory / performance / leak issues)
Project scale (if relevant)
No response
Confirmations