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>
This commit is contained in:
yucheng 2026-09-15 01:52:26 +00:00
parent 504870e1f9
commit 8cfbf5dc2e

View file

@ -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(