diff --git a/hermes_cli/mcp_config.py b/hermes_cli/mcp_config.py index 385b4d7fe2..4930db34b1 100644 --- a/hermes_cli/mcp_config.py +++ b/hermes_cli/mcp_config.py @@ -283,9 +283,9 @@ def _probe_single_server( from tools.mcp_tool import _convert_mcp_schema details["schema_chars"] = { - t.name: len(_json.dumps( - _convert_mcp_schema(name, t), separators=(",", ":"), default=str)) - for t in server._tools} + t.name: len(_json.dumps(_convert_mcp_schema(name, t), separators=(",", ":"), default=str)) + for t in server._tools + } except Exception: # pragma: no cover — display-only extra pass # Gate capability probes like runtime registration (_select_utility_schemas):