litellm/litellm/proxy/guardrails
yucheng-berri e7f41442d0
feat(guardrails): add pre_mcp_call support to Content Filter (#32936)
* feat(guardrails): add pre_mcp_call support to Content Filter

* test(guardrails): cover canonical MCP key gate under pre_mcp_call mode

* fix(guardrails): scan MCP arguments per value and gate mixed-mode scans by call type

* fix(guardrails): cap MCP argument scan depth and register the walker with the recursion detector

* test(guardrails): update LIT-4226 UI settings tests for content filter pre_mcp_call support

* fix(guardrails): use builtin generics in MCP scan annotations to satisfy strict-rule budget

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 16:17:49 -07:00
..
guardrail_hooks feat(guardrails): add pre_mcp_call support to Content Filter (#32936) 2026-07-11 16:17:49 -07:00
_content_utils.py fix(guardrails): walk Responses-API text taxonomy in shared content helpers (#32542) 2026-07-08 23:24:11 -07:00
guardrail_endpoints.py fix(guardrails): filter Add-Guardrail mode dropdown per provider (#32712) 2026-07-11 14:51:27 -07:00
guardrail_helpers.py style: unify ruff format width on 120 (#31518) 2026-06-27 12:39:29 -07:00
guardrail_initializers.py style: unify ruff format width on 120 (#31518) 2026-06-27 12:39:29 -07:00
guardrail_registry.py fix(guardrails): filter Add-Guardrail mode dropdown per provider (#32712) 2026-07-11 14:51:27 -07:00
init_guardrails.py style: unify ruff format width on 120 (#31518) 2026-06-27 12:39:29 -07:00
tool_name_extraction.py style: unify ruff format width on 120 (#31518) 2026-06-27 12:39:29 -07:00
usage_endpoints.py style: unify ruff format width on 120 (#31518) 2026-06-27 12:39:29 -07:00
usage_tracking.py style: unify ruff format width on 120 (#31518) 2026-06-27 12:39:29 -07:00