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
Document get_usage_stats tool, clarify incremental reindexing in README, bump to 0.4.3
README was missing the 18th tool (get_usage_stats) and the mcporter performance
note made it sound like the server itself didn't handle change detection. Clarified
that incremental reindexing is automatic and the rebuild issue is mcporter-specific.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ A structural codebase indexer with an [MCP](https://modelcontextprotocol.io) ser
12
12
13
13
## What It Does
14
14
15
-
Indexes codebases by parsing source files into structural metadata -- functions, classes, imports, dependency graphs, and cross-file call chains -- then exposes 17 query tools via the Model Context Protocol, enabling Claude Code and other MCP clients to navigate codebases efficiently without reading entire files.
15
+
Indexes codebases by parsing source files into structural metadata -- functions, classes, imports, dependency graphs, and cross-file call chains -- then exposes 18 query tools via the Model Context Protocol, enabling Claude Code and other MCP clients to navigate codebases efficiently without reading entire files.
16
16
17
17
**Automatic incremental re-indexing:** In git repositories, the index stays up to date automatically. Before every query, the server checks `git diff` and `git status` (~1-2ms). If files changed, only those files are re-parsed and the dependency graph is rebuilt. No need to manually call `reindex` after edits, branch switches, or pulls.
18
18
@@ -97,9 +97,9 @@ Restart OpenClaw and verify the connection:
97
97
openclaw mcp list
98
98
```
99
99
100
-
All 17 tools will be available to your agent.
100
+
All 18 tools will be available to your agent.
101
101
102
-
**Performance note:** OpenClaw's default MCP integration via mcporter spawns a fresh server process per tool call, which means the index is rebuilt each time (~1-2s for small projects, longer for large ones). For persistent connections, use the [openclaw-mcp-adapter](https://github.com/androidStern-personal/openclaw-mcp-adapter) plugin, which connects once at startup and keeps the server running:
102
+
**Performance note:**The server automatically detects file changes via `git diff` before every query (~1-2ms) and incrementally re-indexes only what changed. However, OpenClaw's default MCP integration via mcporter spawns a fresh server process per tool call, which discards the in-memory index and forces a full rebuild each time (~1-2s for small projects, longer for large ones). This is a mcporter process lifecycle limitation, not a server limitation. For persistent connections, use the [openclaw-mcp-adapter](https://github.com/androidStern-personal/openclaw-mcp-adapter) plugin, which connects once at startup and keeps the server running:
103
103
104
104
```bash
105
105
pip install openclaw-mcp-adapter
@@ -150,7 +150,7 @@ over reading entire files when navigating the codebase.
150
150
151
151
This ensures the AI reaches for surgical indexed queries first, which saves tokens and context window.
152
152
153
-
### Available Tools (17)
153
+
### Available Tools (18)
154
154
155
155
| Tool | Description |
156
156
|------|-------------|
@@ -171,6 +171,7 @@ This ensures the AI reaches for surgical indexed queries first, which saves toke
171
171
|`get_file_dependents`| Files that import from a given file |
172
172
|`search_codebase`| Regex search across all files (max 100 results) |
173
173
|`reindex`| Force full re-index (rarely needed — incremental updates happen automatically in git repos) |
174
+
|`get_usage_stats`| Session efficiency stats: tool calls, characters returned vs total source, estimated token savings |
0 commit comments