fix: update stale comment referencing removed _sync_mcp_toolsets
This commit is contained in:
6
cli.py
6
cli.py
@@ -1713,9 +1713,9 @@ class HermesCLI:
|
|||||||
# Parse and validate toolsets
|
# Parse and validate toolsets
|
||||||
self.enabled_toolsets = toolsets
|
self.enabled_toolsets = toolsets
|
||||||
if toolsets and "all" not in toolsets and "*" not in toolsets:
|
if toolsets and "all" not in toolsets and "*" not in toolsets:
|
||||||
# Validate each toolset — MCP server names are added by
|
# Validate each toolset — MCP server names are resolved via
|
||||||
# _get_platform_tools() but aren't registered in TOOLSETS yet
|
# live registry aliases (registered during discover_mcp_tools),
|
||||||
# (that happens later in _sync_mcp_toolsets), so exclude them.
|
# but discovery hasn't run yet at this point, so exclude them.
|
||||||
mcp_names = set((CLI_CONFIG.get("mcp_servers") or {}).keys())
|
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]
|
invalid = [t for t in toolsets if not validate_toolset(t) and t not in mcp_names]
|
||||||
if invalid:
|
if invalid:
|
||||||
|
|||||||
Reference in New Issue
Block a user