From fa4c60562e99bbdc7257cc7016c6eba5ac44d4d3 Mon Sep 17 00:00:00 2001 From: mubashir1osmani Date: Thu, 3 Sep 2026 16:31:24 -0400 Subject: [PATCH] fix(mcp): mark the request dict parameter mutable-ok with a reason --- litellm/proxy/litellm_pre_call_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/litellm_pre_call_utils.py b/litellm/proxy/litellm_pre_call_utils.py index 655a5166f9a..a9d2dcd9d63 100644 --- a/litellm/proxy/litellm_pre_call_utils.py +++ b/litellm/proxy/litellm_pre_call_utils.py @@ -2867,7 +2867,7 @@ def _add_guardrails_from_policies_in_metadata( def add_guardrails_from_auth_metadata( user_api_key_dict: UserAPIKeyAuth, - data: dict, + data: dict, # mutable-ok: writes guardrails into the live request dict, same contract as the helpers it wraps metadata_variable_name: str, ) -> None: """Resolve key, team, and project guardrails (direct and via policies) onto ``data[metadata_variable_name]``."""