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
Copy file name to clipboardExpand all lines: README.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -358,6 +358,8 @@ When running as an MCP server, CodeGraph exposes these tools to Claude Code:
358
358
|`codegraph_files`| Get indexed file structure (faster than filesystem scanning) |
359
359
|`codegraph_status`| Check index health and statistics |
360
360
361
+
You can hide specific MCP tools per-project via `.codegraph/config.json` (see Configuration below). Hidden tools are removed from `tools/list` and are treated as unknown if called directly.
362
+
361
363
---
362
364
363
365
## Library Usage
@@ -396,7 +398,10 @@ The `.codegraph/config.json` file controls indexing:
396
398
"frameworks": [],
397
399
"maxFileSize": 1048576,
398
400
"extractDocstrings": true,
399
-
"trackCallSites": true
401
+
"trackCallSites": true,
402
+
"mcp": {
403
+
"disabledTools": ["codegraph_explore"]
404
+
}
400
405
}
401
406
```
402
407
@@ -408,6 +413,13 @@ The `.codegraph/config.json` file controls indexing:
408
413
|`maxFileSize`| Skip files larger than this (bytes) |`1048576` (1MB) |
409
414
|`extractDocstrings`| Extract docstrings from code |`true`|
410
415
|`trackCallSites`| Track call site locations |`true`|
416
+
|`mcp.disabledTools`| MCP tool names to hide/disable for this project |`[]`|
417
+
418
+
Example disabled tool names: `codegraph_explore`, `codegraph_context`, `codegraph_files`.
419
+
420
+
Notes:
421
+
- This setting is project-local only (no global override).
422
+
- Unknown tool names are ignored (lenient behavior).
0 commit comments