Skip to content

Wrong Binary Path Used during Installation #2722

Closed

Description

@SC-CTS

Version

codebase-memory-mcp 0.12.1

Platform

macOS (Apple Silicon)

Install channel

GitHub release archive / install.sh / install.ps1

Binary variant

ui

What happened, and what did you expect?

When using codebase-memory-mcp install it correctly detects cbm to be managed externally by mise (including the correct path) according to the logs:

❯ codebase-memory-mcp install
codebase-memory-mcp install 0.12.1

Binary is managed elsewhere by mise:
  $HOME/.local/share/mise/installs/github-deus-data-codebase-memory-mcp/latest/codebase-memory-mcp
Leaving it and your PATH untouched; configuring agents only.
  (use --force-binary to install a copy into $HOME/.local/bin anyway)

But it will still use $HOME/.local/bin/codebase-memory-mcp in all mcp & plugin files afterwards, which is wrong and does not exist.

Related to:

Reproduction

  1. Install cbm using e.g. mise
  2. Run codebase-memory-mcp install
  3. Check one of the generated mcp definitions
  4. Notice it used $HOME/.local/bin/codebase-memory-mcp instead of $HOME/.local/share/mise/installs/github-deus-data-codebase-memory-mcp/latest/codebase-memory-mcp

Logs

❯ codebase-memory-mcp install
codebase-memory-mcp install 0.12.1

Binary is managed elsewhere by mise:
  $HOME/.local/share/mise/installs/github-deus-data-codebase-memory-mcp/latest/codebase-memory-mcp
Leaving it and your PATH untouched; configuring agents only.
  (use --force-binary to install a copy into $HOME/.local/bin anyway)

Found XX existing index(es). Keeping them. After install, re-index to pick up this version's improvements:
  [...]

No CBM session needs to stop for install: the published binary and indexes are unchanged.
Detected agents: OpenCode VS-Code Junie Copilot-CLI

OpenCode:
  mcp: $HOME/.config/opencode/opencode.jsonc
  instructions: $HOME/.config/opencode/AGENTS.md
  skill: $HOME/.config/opencode/skills/codebase-memory/SKILL.md (0 installed)
  agent: $HOME/.config/opencode/agents/codebase-memory-scout.md
  agent: $HOME/.config/opencode/agents/codebase-memory.md
  agent: $HOME/.config/opencode/agents/codebase-memory-auditor.md
  extension: $HOME/.config/opencode/plugins/cbm-augment.ts
VS Code:
  mcp: $HOME/Library/Application Support/Code/User/mcp.json
VS Code:
  mcp: $HOME/Library/Application Support/Code/User/profiles/builtin/mcp.json
Junie:
  mcp: $HOME/.junie/mcp/mcp.json
  skill: $HOME/.junie/skills/codebase-memory/SKILL.md (0 installed)
  agent: $HOME/.junie/agents/codebase-memory-scout.md
  agent: $HOME/.junie/agents/codebase-memory.md
  agent: $HOME/.junie/agents/codebase-memory-auditor.md
Copilot CLI:
  mcp: $HOME/.copilot/mcp-config.json
  instructions: $HOME/.copilot/copilot-instructions.md
  skill: $HOME/.copilot/skills/codebase-memory/SKILL.md (0 installed)
  agent: $HOME/.copilot/agents/codebase-memory-scout.agent.md
  agent: $HOME/.copilot/agents/codebase-memory.agent.md
  agent: $HOME/.copilot/agents/codebase-memory-auditor.agent.md
  hooks: SessionStart + SubagentStart (dynamic graph context)

Install complete. Please restart your coding-agent sessions to properly take this into account.
Restart your shell or run:
  source $HOME/.zshrc

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

  1. SC-CTS commented on Oct 22, 2026

    @SC-CTS
    Author

    This is NOT a windows specific issue, this is happening on macOS.

  2. DeusData commented on Oct 25, 2026

    @DeusData
    Owner

    Thank you for the mise installation output and for correcting the platform. The reported mismatch is between the detected managed binary and the path written into client configuration. Sorry for the delay; I’ll follow up on that integration path soon.

  3. DeusData commented on Oct 31, 2026

    @DeusData
    Owner

    Fixed on main by #2822 (merge commit 70f6de8), thanks to @divakantpandey: when codebase-memory-mcp is installed through mise, Homebrew, nix, asdf or cargo, install now writes the binary's real path into agent configs instead of a ~/.local/bin path that does not exist on those setups. After updating, run codebase-memory-mcp install once to rewrite existing entries. Thank you for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeditor/integrationEditor compatibility and CLI integrationux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions