Skip to content

Commit d9805ed

Browse files
prosdevclaude
andcommitted
docs: update all references for 5-tool MCP (dev_health → dev_status)
Sweep all docs for stale dev_health references and 6-tool counts: - CLAUDE.md, README.md, PLAN.md, TROUBLESHOOTING.md, examples/README.md - Website: homepage, tools index, dev-health (→ redirect), dev-patterns (query→filePath, add json format), troubleshooting - CLI help text and CURSOR_SETUP.md - packages/dev-agent/README.md - Add changeset for v0.10.4, release notes, update latest-version.ts Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c8dc8c8 commit d9805ed

16 files changed

Lines changed: 123 additions & 236 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@prosdevlab/dev-agent': patch
3+
---
4+
5+
MCP tools improvement: faster pattern analysis, merged health into status, agent usability
6+
7+
- `dev_patterns` is 10-30x faster — reads from Antfly index instead of re-scanning with ts-morph
8+
- `dev_health` merged into `dev_status` (use `section="health"`) — 6 tools reduced to 5
9+
- `dev_patterns` parameter renamed from `query` to `filePath` to prevent LLM misuse
10+
- New `format: "json"` option on `dev_patterns` for token-efficient agent workflows
11+
- All tools now return `suggestion` field on errors for agent recovery guidance
12+
- Removed stale GitHub code from health adapter
13+
- Extracted pure pattern analyzers for testability

CLAUDE.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Everything runs on your machine. No data leaves.
2323
packages/
2424
core/ # Scanner (ts-morph, tree-sitter), vector storage (Antfly), services
2525
cli/ # Commander.js CLI — dev index, dev mcp install, etc.
26-
mcp-server/ # MCP server with 6 built-in adapters
26+
mcp-server/ # MCP server with 5 built-in adapters
2727
subagents/ # Coordinator, explorer, planner, PR agents
2828
integrations/ # Claude Code, VS Code, Cursor
2929
logger/ # @prosdevlab/kero — centralized logging
@@ -139,16 +139,15 @@ See `.claude/da-plans/README.md` for status and format details.
139139

140140
---
141141

142-
## MCP tools (6 adapters)
142+
## MCP tools (5 adapters)
143143

144144
| Tool | Purpose |
145145
|------|---------|
146146
| `dev_search` | Hybrid code search — BM25 + vector + RRF (use FIRST for conceptual queries) |
147147
| `dev_refs` | Find callers/callees of functions |
148148
| `dev_map` | Codebase structure with change frequency |
149-
| `dev_patterns` | File pattern analysis (similar code, error handling, types) |
150-
| `dev_status` | Repository indexing status + Antfly stats + watcher status |
151-
| `dev_health` | Server health checks (Antfly connectivity) |
149+
| `dev_patterns` | File pattern analysis (similar code, error handling, types). Takes `filePath`, not `query`. |
150+
| `dev_status` | Repository indexing status + Antfly stats + health checks (`section="health"`) |
152151

153152
---
154153

PLAN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Dev-agent provides semantic code search, codebase intelligence, and GitHub integ
4747
| `dev_patterns` - File analysis | ✅ Done | MCP adapter |
4848
| `dev_plan` - Issue planning | ✅ Done | MCP adapter |
4949
| `dev_gh` - GitHub search | ✅ Done | MCP adapter |
50-
| `dev_health` - Health checks |Done | MCP adapter |
50+
| `dev_health` - Health checks |Merged into `dev_status` | MCP adapter |
5151
| Cursor integration | ✅ Done | CLI command |
5252
| Claude Code integration | ✅ Done | CLI command |
5353
| Rate limiting (token bucket) | ✅ Done | MCP server |

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
1111
## What it does
1212

13-
dev-agent indexes your codebase and provides 6 MCP tools to AI assistants. Instead of grepping through files, they can ask conceptual questions like "where do we handle authentication?"
13+
dev-agent indexes your codebase and provides 5 MCP tools to AI assistants. Instead of grepping through files, they can ask conceptual questions like "where do we handle authentication?"
1414

1515
- `dev_search` — Hybrid search (BM25 + vector + RRF) — returns code snippets, not just paths
1616
- `dev_refs` — Find callers/callees of any function
1717
- `dev_map` — Codebase structure with hot paths (most referenced files)
1818
- `dev_patterns` — Compare coding patterns against similar files
19-
- `dev_status` — Repository indexing status and health
20-
- `dev_health` — Server health checks
19+
- `dev_status` — Repository indexing status, health checks, and Antfly stats
2120

2221
## Quick Start
2322

@@ -110,13 +109,9 @@ Compare a file's coding patterns (imports, error handling, type coverage, testin
110109
Analyze patterns in src/auth/middleware.ts
111110
```
112111

113-
### `dev_status` — Repository Status
112+
### `dev_status` — Repository Status & Health
114113

115-
Indexing status, document counts, Antfly stats, and file watcher state.
116-
117-
### `dev_health` — Health Checks
118-
119-
Server health, Antfly connectivity, and repository access.
114+
Indexing status, document counts, Antfly stats, file watcher state, and health checks (`section="health"`).
120115

121116
## Supported Languages
122117

@@ -155,7 +150,7 @@ pnpm lint
155150
packages/
156151
core/ # Scanner, vector storage, indexer, services
157152
cli/ # Commander.js CLI
158-
mcp-server/ # MCP server with 6 tool adapters
153+
mcp-server/ # MCP server with 5 tool adapters
159154
subagents/ # Explorer, planner, PR agents
160155
integrations/ # Claude Code, VS Code, Cursor
161156
logger/ # @prosdevlab/kero centralized logging

TROUBLESHOOTING.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ killall dev
252252

253253
2. **Check health:**
254254
```
255-
Use dev_health tool to see rate limit status
255+
Use dev_status section="health" tool to see rate limit status
256256
```
257257

258258
3. **If persistent:**
@@ -446,7 +446,7 @@ Failed to fetch issues: spawnSync /bin/sh ENOBUFS
446446

447447
3. **Monitor health:**
448448
```
449-
dev_health --verbose
449+
dev_status section="health" format="verbose"
450450
```
451451

452452
---
@@ -466,7 +466,7 @@ Failed to fetch issues: spawnSync /bin/sh ENOBUFS
466466

467467
**Diagnosis:**
468468
```
469-
Use dev_health tool to check component status
469+
Use dev_status section="health" tool to check component status
470470
```
471471

472472
**Common causes:**
@@ -505,7 +505,7 @@ Check the tool's input schema:
505505

506506
3. Check server health:
507507
```
508-
dev_health
508+
dev_status section="health"
509509
```
510510

511511
---
@@ -573,9 +573,9 @@ claude mcp add --env LOG_LEVEL=debug dev-agent -- dev mcp start
573573
### Check component health
574574

575575
```
576-
Use dev_health tool with verbose flag:
576+
Use dev_status section="health" tool with verbose flag:
577577
578-
dev_health --verbose
578+
dev_status section="health" format="verbose"
579579
580580
Shows:
581581
- Vector storage status
@@ -596,7 +596,7 @@ dev mcp start --verbose
596596
# In another terminal, send test message
597597
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | dev mcp start
598598

599-
# Should list all 6 tools: dev_search, dev_refs, dev_map, dev_patterns, dev_status, dev_health
599+
# Should list all 5 tools: dev_search, dev_refs, dev_map, dev_patterns, dev_status
600600
```
601601

602602
### Inspect storage
@@ -666,7 +666,7 @@ If you encounter a bug:
666666

667667
2. **Get diagnostics:**
668668
```
669-
Use dev_health --verbose
669+
Use dev_status section="health" format="verbose"
670670
```
671671

672672
3. **Enable debug logs:**
@@ -720,7 +720,7 @@ dev index
720720
dev_status
721721

722722
# Verify health
723-
dev_health
723+
dev_status section="health"
724724
```
725725

726726
### Debugging search quality
@@ -855,7 +855,7 @@ dev index
855855

856856
## Health Check Guide
857857

858-
The `dev_health` tool provides comprehensive diagnostics:
858+
The `dev_status section="health"` tool provides comprehensive diagnostics:
859859

860860
### Interpreting Health Status
861861

@@ -919,7 +919,7 @@ du -sh ~/.dev-agent/indexes/
919919
- After major code changes (adding features, refactoring)
920920
- Weekly for active projects
921921
- Monthly for stable projects
922-
- Use `dev_health` to check if index is stale
922+
- Use `dev_status section="health"` to check if index is stale
923923

924924
### Q: Can multiple AI tools use dev-agent simultaneously?
925925

@@ -942,7 +942,7 @@ du -sh ~/.dev-agent/indexes/
942942

943943
2. **Use health check:**
944944
```
945-
dev_health --verbose
945+
dev_status section="health" format="verbose"
946946
```
947947

948948
3. **Enable debug logging:**
@@ -953,7 +953,7 @@ du -sh ~/.dev-agent/indexes/
953953

954954
Include:
955955
- `dev --version`
956-
- `dev_health --verbose` output
956+
- `dev_status section="health" format="verbose"` output
957957
- Steps to reproduce
958958
- Expected vs actual behavior
959959
- Debug logs (if applicable)

examples/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,18 @@ dev_status:
150150

151151
---
152152

153-
### `dev_health` - Health Check
153+
### Health Check (via `dev_status`)
154154

155155
Diagnose issues:
156156

157157
```
158-
dev_health
158+
dev_status:
159+
section: health
159160
160161
# Verbose output
161-
dev_health:
162-
verbose: true
162+
dev_status:
163+
section: health
164+
format: verbose
163165
```
164166

165167
---
@@ -230,7 +232,7 @@ dev_health:
230232
dev index
231233

232234
# Check health
233-
dev_health
235+
dev_status section="health"
234236
```
235237

236238
---
@@ -292,7 +294,7 @@ dev mcp install --cursor
292294

293295
- Reduce `limit`
294296
- Use `compact` format
295-
- Check `dev_health`
297+
- Check `dev_status section="health"`
296298

297299
---
298300

packages/cli/src/commands/mcp.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ Setup:
4848
2. Install MCP integration: dev mcp install --cursor
4949
3. Restart Cursor to activate
5050
51-
Available Tools (6):
51+
Available Tools (5):
5252
dev_search, dev_status, dev_patterns,
53-
dev_health, dev_refs, dev_map
53+
dev_refs, dev_map
5454
`
5555
)
5656
.addCommand(
@@ -161,9 +161,7 @@ Available Tools (6):
161161
await server.start();
162162

163163
logger.info(chalk.green('MCP server started successfully!'));
164-
logger.info(
165-
'Available tools: dev_search, dev_status, dev_patterns, dev_health, dev_refs, dev_map'
166-
);
164+
logger.info('Available tools: dev_search, dev_status, dev_patterns, dev_refs, dev_map');
167165

168166
if (options.transport === 'stdio') {
169167
logger.info('Server running on stdio transport (for AI tools)');

packages/dev-agent/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ When integrated with Cursor or Claude Code, you get 6 powerful tools:
3939
- `dev_refs` - Find callers/callees of functions
4040
- `dev_map` - Codebase structure with change frequency
4141
- `dev_patterns` - File analysis and pattern checking
42-
- `dev_status` - Repository status and health
43-
- `dev_health` - Component health checks
42+
- `dev_status` - Repository status, health checks, and Antfly stats
4443

4544
## Requirements
4645

@@ -110,11 +109,11 @@ All processing happens on your machine:
110109
# Find authentication-related code
111110
dev_search: "JWT token validation middleware"
112111

113-
# Find similar code patterns
114-
dev_patterns: { action: "compare", query: "src/auth/middleware.ts" }
112+
# Analyze coding patterns
113+
dev_patterns: { filePath: "src/auth/middleware.ts" }
115114

116115
# Check system health
117-
dev_health: verbose
116+
dev_status: { section: "health" }
118117
```
119118
120119
## Support

packages/mcp-server/CURSOR_SETUP.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,17 @@ Compare src/auth/middleware.ts with similar implementations
6666
- `limit`: Number of results (default: 10, for compare action)
6767
- `format`: Output format (`compact` or `verbose`)
6868

69-
### `dev_health` - Server Health Check
70-
Check the health of dev-agent MCP server and its components.
69+
### Health Checks (via `dev_status`)
70+
71+
Use `dev_status` with `section="health"` for server diagnostics:
7172

7273
```
73-
Check server health
74+
Check server health status
7475
```
7576

76-
**Parameters:**
77-
- `verbose`: Include detailed diagnostics (default: false)
78-
7977
**Checks:**
80-
- Vector storage (indexed code)
81-
- Repository accessibility
82-
- GitHub index status and age
78+
- Repository access
79+
- Antfly connectivity
8380

8481
## Management Commands
8582

0 commit comments

Comments
 (0)