From 4610551d742e3adb8c01bf48ca15e2188b396061 Mon Sep 17 00:00:00 2001 From: Teknium Date: Tue, 14 Apr 2026 17:18:53 -0700 Subject: [PATCH] fix: update stale comment referencing removed _sync_mcp_toolsets --- cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli.py b/cli.py index d679b24b5c..b8f34c9bb5 100644 --- a/cli.py +++ b/cli.py @@ -1713,9 +1713,9 @@ class HermesCLI: # Parse and validate toolsets self.enabled_toolsets = toolsets if toolsets and "all" not in toolsets and "*" not in toolsets: - # Validate each toolset — MCP server names are added by - # _get_platform_tools() but aren't registered in TOOLSETS yet - # (that happens later in _sync_mcp_toolsets), so exclude them. + # Validate each toolset — MCP server names are resolved via + # live registry aliases (registered during discover_mcp_tools), + # but discovery hasn't run yet at this point, so exclude them. mcp_names = set((CLI_CONFIG.get("mcp_servers") or {}).keys()) invalid = [t for t in toolsets if not validate_toolset(t) and t not in mcp_names] if invalid: