You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mcp server is not available in Claude Code after install #77
Is the binary on your PATH? Run: which codebase-memory-mcp
Does codebase-memory-mcp --version work?
Check if the MCP config was created: cat ~/.claude/.mcp.json
Try restarting Claude Code completely (quit and reopen, not just reload)
The install command writes to ~/.claude/.mcp.json which Claude Code reads on startup. If the file exists with the correct binary path and Claude Code was fully restarted, it should appear in /mcp.
Also: we recently removed the repo-level .mcp.json (it had a hardcoded path). Make sure you're using the version installed via codebase-memory-mcp install, not a stale repo config.
I tested a fix proposed in #109 (comment) which seems to work. Note this was only tested on macOS and it's generated by claude and only tested with claude code.
index this project
⏺ Skill(codebase-memory-reference)
⎿ Successfully loaded skill
⏺ The codebase-memory-mcp tools don't appear to be available in this session — the server may not be connected. You can check with /mcp to see which MCP servers are active and reconnect if needed.
Or like this:
index this project
⏺ Skill(codebase-memory-exploring)
⎿ Successfully loaded skill
⏺ The codebase-memory-mcp tools don't appear to be available in the current MCP server list. The /mcp command showed it reconnected, but the tools aren't being exposed.
You can check the MCP connection status by running /mcp again, or verify the server is properly configured in your Claude Code settings. The codebase-memory-mcp server needs to be running and registered for index_repository to be available.
Even though terminal/claude code/mcp connection was restarted a few times.
Thi binary is in-place and running ok:
Fixed by PR #88 (commit 3658588): added cbm_get_home_dir() which falls back from HOME to USERPROFILE on Windows. The set HOME=%USERPROFILE% workaround is no longer needed. Also fixed dual MCP config location (both ~/.claude/.mcp.json and ~/.claude.json) in v0.5.5.
Will be included in the next release. Thanks @razenpok for reporting!
Activity
razenpok commentedon Mar 20, 2026
DeusData commentedon Mar 20, 2026
Could you verify a few things?
which codebase-memory-mcpcodebase-memory-mcp --versionwork?cat ~/.claude/.mcp.jsonThe install command writes to
~/.claude/.mcp.jsonwhich Claude Code reads on startup. If the file exists with the correct binary path and Claude Code was fully restarted, it should appear in/mcp.Also: we recently removed the repo-level
.mcp.json(it had a hardcoded path). Make sure you're using the version installed viacodebase-memory-mcp install, not a stale repo config.razenpok commentedon Mar 20, 2026
It looks like claude code ignores
~/.claude/.mcp.json?razenpok commentedon Mar 20, 2026
If I copy

.mcp.jsonto the project folder, it gets picked up, but it gets stuck in the "connecting" stateDivere commentedon Mar 20, 2026
same, last version of claude code doesn't work
williamwissemann commentedon Mar 20, 2026
I have been bumping into the same issue since yesterday; it's just stuck connecting.
indy-singh commentedon Mar 20, 2026
Yep, exactly the same here.
Then
Then
Then
indy-singh commentedon Mar 20, 2026
Finally got it to work:-
That places a file in
"C:\Users\REDACTED\.claude.json"which I then tweaked to use the path var:-{ ...trunc "feedbackSurveyState": { "lastShownTime": 1773704779926 }, "lastPlanModeUse": 1773956222556, "mcpServers": { "codebase-memory-mcp": { "command": "codebase-memory-mcp" } } }The pwsh script didn't work and just doing
codebase-memory-mcp installgave me the errorerror: HOME not set.I guess the binary needs to be updated to use %USERPROFILE% on Windows?
fix(platform): fall back to USERPROFILE when HOME is unset (DeusData#77)
DeusData commentedon Mar 21, 2026
@razenpok Is this still happening on v0.5.5?
Since your report, we've made two changes that may have fixed this:
installnow writes to both~/.claude/.mcp.jsonand~/.claude.json(Claude Code >=2.1.80 changed the config path)If you're still experiencing this, could you share:
codebase-memory-mcp --version)cat ~/.claude.json(or~/.claude/.mcp.json)cristicalin commentedon Mar 22, 2026
@DeusData I have the same problem.
Just tested with
codebase-memory-mcpversion0.5.5(cli version, w/o ui) and claude code2.1.81.cristicalin commentedon Mar 22, 2026
I tested a fix proposed in #109 (comment) which seems to work. Note this was only tested on macOS and it's generated by claude and only tested with claude code.
Zorato commentedon Mar 23, 2026
I have problem on Claude Code v2.1.74 (I'm on stable release channel) and Codebase momery mcp v0.5.5:
Or like this:
Even though terminal/claude code/mcp connection was restarted a few times.
Thi binary is in-place and running ok:
Auuufff commentedon Mar 23, 2026
any updates on that? have the same issue
Claude Code v2.1.81
codebase-memory-mcp 0.5.5
DeusData commentedon Mar 23, 2026
Fixed by PR #88 (commit 3658588): added cbm_get_home_dir() which falls back from HOME to USERPROFILE on Windows. The
set HOME=%USERPROFILE%workaround is no longer needed. Also fixed dual MCP config location (both ~/.claude/.mcp.json and ~/.claude.json) in v0.5.5.Will be included in the next release. Thanks @razenpok for reporting!
fix(platform): fall back to USERPROFILE when HOME is unset
fix(platform): fall back to USERPROFILE when HOME is unset
fix(platform): fall back to USERPROFILE when HOME is unset
fix(platform): fall back to USERPROFILE when HOME is unset
fix(platform): fall back to USERPROFILE when HOME is unset