From 8cfbf5dc2eb55bc344ceb5adbea2adfba120b93e Mon Sep 17 00:00:00 2001 From: yucheng Date: Tue, 15 Sep 2026 01:52:26 +0000 Subject: [PATCH] fix(mcp): mark the listed-tools cache digest as a non-security hash Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/_experimental/mcp_server/mcp_server_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py b/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py index 1a90435203a..9de3179d053 100644 --- a/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py +++ b/litellm/proxy/_experimental/mcp_server/mcp_server_manager.py @@ -4598,7 +4598,7 @@ class MCPServerManager: if not any(inputs): return None material: Final = json.dumps(inputs, sort_keys=True, separators=(",", ":")) - return hashlib.sha256(material.encode()).hexdigest() + return hashlib.sha256(material.encode(), usedforsecurity=False).hexdigest() @staticmethod def _forwarded_header_values(