Commit a7b8253
fix: allow read-only CALL db.* Cypher queries + fix egg-info exclusion
McpTools run_cypher:
- \bCALL\b blocked ALL Cypher CALL statements including read-only
fulltext search (CALL db.index.fulltext.queryNodes)
- Changed to \bCALL\s+(?!db\.)\b — blocks mutation procedures
while allowing CALL db.* (indexes, schema, fulltext search)
FileDiscovery:
- "*.egg-info" in DEFAULT_EXCLUDES never matched because
Set.contains() does exact match, not glob. Real dirs are named
like "mypackage.egg-info"
- Removed glob from set, added suffix match in isExcluded()
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a3f141e commit a7b8253
2 files changed
Lines changed: 8 additions & 3 deletions
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
234 | 239 | | |
235 | 240 | | |
236 | 241 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
0 commit comments