mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-04 18:58:00 +00:00
Merge pull request #947 from blankanswer/agent/docs-readme-project-examples
docs: add project to CLI examples
This commit is contained in:
1 file changed
+7
-5
@@ -193,7 +193,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
|
||||
@@ -404,11 +404,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