Skip to content

Commit 8d00f4b

Browse files
authored
Merge pull request DeusData#947 from blankanswer/agent/docs-readme-project-examples
docs: add project to CLI examples
2 parents 0906b53 + e03a3d4 commit 8d00f4b

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

‎README.md‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Removes all agent configs, skills, hooks, and instructions. Does not remove the
193193
- **Single static binary, zero infrastructure**: SQLite-backed, persists to `~/.cache/codebase-memory-mcp/`
194194
- **Auto-sync**: Background watcher detects file changes and re-indexes automatically
195195
- **Route nodes**: REST endpoints are first-class graph entities
196-
- **CLI mode**: `codebase-memory-mcp cli search_graph '{"name_pattern": ".*Handler.*"}'`
196+
- **CLI mode**: `codebase-memory-mcp cli search_graph '{"project": "my-project", "name_pattern": ".*Handler.*"}'`
197197
- **Available on**: npm, PyPI, Homebrew, Scoop, Winget, Chocolatey, AUR, `go install`
198198

199199
## Team-Shared Graph Artifact
@@ -404,11 +404,13 @@ Every MCP tool can be invoked from the command line:
404404

405405
```bash
406406
codebase-memory-mcp cli index_repository '{"repo_path": "/path/to/repo"}'
407-
codebase-memory-mcp cli search_graph '{"name_pattern": ".*Handler.*", "label": "Function"}'
408-
codebase-memory-mcp cli trace_path '{"function_name": "Search", "direction": "both"}'
409-
codebase-memory-mcp cli query_graph '{"query": "MATCH (f:Function) RETURN f.name LIMIT 5"}'
410407
codebase-memory-mcp cli list_projects
411-
codebase-memory-mcp cli --raw search_graph '{"label": "Function"}' | jq '.results[].name'
408+
409+
# Use the "name" returned by list_projects as the project value.
410+
codebase-memory-mcp cli search_graph '{"project": "my-project", "name_pattern": ".*Handler.*", "label": "Function"}'
411+
codebase-memory-mcp cli trace_path '{"project": "my-project", "function_name": "Search", "direction": "both"}'
412+
codebase-memory-mcp cli query_graph '{"project": "my-project", "query": "MATCH (f:Function) RETURN f.name LIMIT 5"}'
413+
codebase-memory-mcp cli --raw search_graph '{"project": "my-project", "label": "Function"}' | jq '.results[].name'
412414
```
413415

414416
## MCP Tools

0 commit comments

Comments
 (0)