Commit b24a6fb
🐛 Fix MCP edit tool empty result bug (Issue #21)
FIXES:
- wrap get_function_tree result in MCP content format
- wrap smart_edit result in MCP content format
- Add compression hints to initialization
The edit tool was returning correct data in logs but Claude
saw empty results because the responses weren't wrapped in
the required MCP content format:
```json
{
"content": [{
"type": "text",
"text": "..."
}]
}
```
Also added smart compression hints:
- Server description now hints at using compress:true
- Suggests quantum mode for massive codebases
- Helps AI assistants save context automatically
Fixes #21
🤖 Generated with Claude Code
Co-Authored-By: Claude <[email protected]>1 parent 6d323d9 commit b24a6fb
File tree
4 files changed
+26
-7
lines changed- src/mcp
4 files changed
+26
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | | - | |
| 376 | + | |
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
384 | | - | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
385 | 388 | | |
386 | 389 | | |
387 | 390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
949 | | - | |
| 949 | + | |
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
956 | 964 | | |
957 | 965 | | |
958 | 966 | | |
| |||
970 | 978 | | |
971 | 979 | | |
972 | 980 | | |
973 | | - | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
974 | 990 | | |
975 | 991 | | |
976 | 992 | | |
| |||
Binary file not shown.
0 commit comments