refactor(hermes_cli): mcp_config — readable schema_chars comprehension

This commit is contained in:
Teknium
2026-09-02 20:51:04 -07:00
parent df0688c9cc
commit 5e595c0121

View File

@@ -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):