The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(mcp_tool_schema): preserve empty required arrays in _repair_object_shape
liangliang luo9f2a1ad8f382
diff --git a/tools/mcp_tool_schema.py b/tools/mcp_tool_schema.pyindex 8248047360e..c857d727fd0 100644--- a/tools/mcp_tool_schema.py+++ b/tools/mcp_tool_schema.py@@ -98,10 +98,7 @@ def _repair_object_shape(node):props = repaired.get("properties") or {}valid = [r for r in required if isinstance(r, str) and r in props]if len(valid) != len(required):- if valid:repaired["required"] = valid- else:- repaired.pop("required", None)return repaired