Skip to content

Commit e03a3d4

Browse files
committed
docs: add project to CLI examples
Signed-off-by: Blank_Answer <97771966+blankanswer@users.noreply.github.com>
1 parent b637e33 commit e03a3d4

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
@@ -186,7 +186,7 @@ Removes all agent configs, skills, hooks, and instructions. Does not remove the
186186
- **Single static binary, zero infrastructure**: SQLite-backed, persists to `~/.cache/codebase-memory-mcp/`
187187
- **Auto-sync**: Background watcher detects file changes and re-indexes automatically
188188
- **Route nodes**: REST endpoints are first-class graph entities
189-
- **CLI mode**: `codebase-memory-mcp cli search_graph '{"name_pattern": ".*Handler.*"}'`
189+
- **CLI mode**: `codebase-memory-mcp cli search_graph '{"project": "my-project", "name_pattern": ".*Handler.*"}'`
190190
- **Available on**: npm, PyPI, Homebrew, Scoop, Winget, Chocolatey, AUR, `go install`
191191

192192
## Team-Shared Graph Artifact
@@ -397,11 +397,13 @@ Every MCP tool can be invoked from the command line:
397397

398398
```bash
399399
codebase-memory-mcp cli index_repository '{"repo_path": "/path/to/repo"}'
400-
codebase-memory-mcp cli search_graph '{"name_pattern": ".*Handler.*", "label": "Function"}'
401-
codebase-memory-mcp cli trace_path '{"function_name": "Search", "direction": "both"}'
402-
codebase-memory-mcp cli query_graph '{"query": "MATCH (f:Function) RETURN f.name LIMIT 5"}'
403400
codebase-memory-mcp cli list_projects
404-
codebase-memory-mcp cli --raw search_graph '{"label": "Function"}' | jq '.results[].name'
401+
402+
# Use the "name" returned by list_projects as the project value.
403+
codebase-memory-mcp cli search_graph '{"project": "my-project", "name_pattern": ".*Handler.*", "label": "Function"}'
404+
codebase-memory-mcp cli trace_path '{"project": "my-project", "function_name": "Search", "direction": "both"}'
405+
codebase-memory-mcp cli query_graph '{"project": "my-project", "query": "MATCH (f:Function) RETURN f.name LIMIT 5"}'
406+
codebase-memory-mcp cli --raw search_graph '{"project": "my-project", "label": "Function"}' | jq '.results[].name'
405407
```
406408

407409
## MCP Tools

0 commit comments

Comments
 (0)