codebase-memory-mcp icon indicating copy to clipboard operation
codebase-memory-mcp copied to clipboard

install.sh silently drops --clients and configures every detected client

Open bmcnaboe opened this issue 3 months ago • 1 comments

Repro

curl -fsSL https://.../install.sh | bash -s -- --clients=claude,codex

on a machine with many MCP-capable clients installed/detected.

Expected

Only the two named clients (claude, codex) get configured.

Actual

Every detected client on the machine gets configured — 43 surfaces on the machine this was observed on. --clients=… is silently ignored by install.sh; the flag is accepted (no error) but has no effect on which clients get written to.

Notes

The binary's own installer (codebase-memory-mcp install --clients=claude,codex, the = form) honors the flag correctly — this is specific to the install.sh shell wrapper's flag parsing/passthrough, not the underlying Go/C installer logic. Also worth tightening while in that code: unrecognized install.sh-level flags are currently accepted silently rather than erroring, and --skip-config should keep its current behavior.

Low severity/simple fix — happy to send a PR.

bmcnaboe avatar Aug 20 '26 02:08 bmcnaboe

Fixed on main in e2251f30 (PR #1846, "fix(install): forward clients selector").

Thank you for the report. This is a bad failure mode precisely because it is silent: passing --clients and getting every detected client configured looks like the flag worked until you notice config written for editors you never asked about. A selector that is accepted and then ignored is worse than one that errors, and you caught it by actually checking what got written rather than trusting the exit code.

DeusData avatar Aug 29 '26 09:08 DeusData