Merge pull request #1697 from bompus/fix/claude-always-load

fix(mcp): keep codegraph_explore loaded in Claude Code and Copilot CLI
This commit is contained in:
Colby Mchenry
2026-09-08 08:58:51 -05:00
committed by GitHub
7 changed files with 86 additions and 6 deletions
+4 -1
View File
@@ -508,12 +508,15 @@ npm install -g @colbymchenry/codegraph
"codegraph": {
"type": "stdio",
"command": "codegraph",
"args": ["serve", "--mcp"]
"args": ["serve", "--mcp"],
"alwaysLoad": true
}
}
}
```
`alwaysLoad` keeps `codegraph_explore` loaded from the first prompt. Claude Code otherwise defers every MCP tool behind a tool-search step, so a fresh session sees only the tool's name until the model searches for it.
**Add to `~/.claude/settings.json` (optional, for auto-allow):**
```json
{