mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-04 10:48:20 +00:00
docs: add project to CLI examples
Signed-off-by: Blank_Answer <97771966+blankanswer@users.noreply.github.com>
This commit is contained in:
1 parent
b637e3330c
commit
e03a3d41ed
1 file changed
+7
-5
@@ -186,7 +186,7 @@ Removes all agent configs, skills, hooks, and instructions. Does not remove the
|
||||
- **Single static binary, zero infrastructure**: SQLite-backed, persists to `~/.cache/codebase-memory-mcp/`
|
||||
- **Auto-sync**: Background watcher detects file changes and re-indexes automatically
|
||||
- **Route nodes**: REST endpoints are first-class graph entities
|
||||
- **CLI mode**: `codebase-memory-mcp cli search_graph '{"name_pattern": ".*Handler.*"}'`
|
||||
- **CLI mode**: `codebase-memory-mcp cli search_graph '{"project": "my-project", "name_pattern": ".*Handler.*"}'`
|
||||
- **Available on**: npm, PyPI, Homebrew, Scoop, Winget, Chocolatey, AUR, `go install`
|
||||
|
||||
## Team-Shared Graph Artifact
|
||||
@@ -397,11 +397,13 @@ Every MCP tool can be invoked from the command line:
|
||||
|
||||
```bash
|
||||
codebase-memory-mcp cli index_repository '{"repo_path": "/path/to/repo"}'
|
||||
codebase-memory-mcp cli search_graph '{"name_pattern": ".*Handler.*", "label": "Function"}'
|
||||
codebase-memory-mcp cli trace_path '{"function_name": "Search", "direction": "both"}'
|
||||
codebase-memory-mcp cli query_graph '{"query": "MATCH (f:Function) RETURN f.name LIMIT 5"}'
|
||||
codebase-memory-mcp cli list_projects
|
||||
codebase-memory-mcp cli --raw search_graph '{"label": "Function"}' | jq '.results[].name'
|
||||
|
||||
# Use the "name" returned by list_projects as the project value.
|
||||
codebase-memory-mcp cli search_graph '{"project": "my-project", "name_pattern": ".*Handler.*", "label": "Function"}'
|
||||
codebase-memory-mcp cli trace_path '{"project": "my-project", "function_name": "Search", "direction": "both"}'
|
||||
codebase-memory-mcp cli query_graph '{"project": "my-project", "query": "MATCH (f:Function) RETURN f.name LIMIT 5"}'
|
||||
codebase-memory-mcp cli --raw search_graph '{"project": "my-project", "label": "Function"}' | jq '.results[].name'
|
||||
```
|
||||
|
||||
## MCP Tools
|
||||
|
||||
Reference in new issue
Block a user