Sanitize noisy MCP text fields by default
Clean control and invisible junk from tool result text fields to reduce token waste while preserving readable Unicode. Add an MCP_TEXT_SANITIZATION toggle and regression tests for enabled and disabled behavior.
This commit is contained in:
@@ -10,6 +10,7 @@ Required environment:
|
||||
```text
|
||||
REDMINE_URL=http://redmine.example.test
|
||||
REDMINE_API_KEY=...
|
||||
MCP_TEXT_SANITIZATION=true
|
||||
```
|
||||
|
||||
For Streamable HTTP MCP:
|
||||
|
||||
Reference in New Issue
Block a user