Files
n8n-mcp/src
czlonkowski 0c050bda6d enhance: Add safety features to HTTP validation tools response
- Add TypeScript interface (MCPToolResponse) for type safety
- Implement 1MB response size validation and truncation
- Add warning logs for large validation responses
- Prevent memory issues with size limits (matches STDIO behavior)

This enhances PR #343's fix with defensive measures:
- Size validation prevents DoS/memory exhaustion
- Truncation ensures HTTP transport stability
- Type safety improves code maintainability

All changes are backward compatible and non-breaking.

Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en
2025-10-21 20:02:49 +02:00
..
2025-07-01 08:54:35 +02:00