mirror of
https://github.com/lukaszraczylo/filepuff-mcp.git
synced 2026-10-12 04:54:27 +00:00
perf(tools): lower default result sizes to cut response tokens
The default limits let broad queries flood the model context. This change sets smaller defaults. An explicit parameter still overrides each one. - file_search: max_results 1000 to 50, context_lines 2 to 0. - ast_query: max_results 100 to 50. - ast_query compact output omits the node type unless verbose is set. On a fixed seven-call suite, response size fell from 198529 to 61960 bytes.
This commit is contained in:
@@ -283,7 +283,7 @@ Search for text patterns in files using ripgrep.
|
||||
- `file_types`: File types to search (e.g., ["go", "ts", "py"])
|
||||
- `ignore_case`: Case insensitive search
|
||||
- `regex`: Treat pattern as regex (default: true)
|
||||
- `context_lines`: Number of context lines around matches (default: 2)
|
||||
- `context_lines`: Number of context lines around matches (default: 0)
|
||||
- `max_results`: Maximum number of results to return
|
||||
|
||||
---
|
||||
@@ -352,7 +352,7 @@ Search for AST patterns in code files using structural pattern matching.
|
||||
- `name_matches`: Regex pattern to filter by name
|
||||
- `name_exact`: Exact name to match
|
||||
- `kind_in`: Node types to match (e.g., function_declaration)
|
||||
- `max_results`: Maximum number of results (default: 100)
|
||||
- `max_results`: Maximum number of results (default: 50)
|
||||
|
||||
**Examples**:
|
||||
```json
|
||||
|
||||
Reference in New Issue
Block a user