diff --git a/pentestagent/mcp/manager.py b/pentestagent/mcp/manager.py index 6e1eb80..bd4f533 100644 --- a/pentestagent/mcp/manager.py +++ b/pentestagent/mcp/manager.py @@ -326,8 +326,8 @@ class MCPManager: or (config.command and "third_party/hexstrike" in str(config.command)) or any("third_party/hexstrike" in str(a) for a in (config.args or [])) ) - if launch_disabled and is_hex: - print(f"[MCP] Skipping auto-connection for {name} due to LAUNCH_HEXTRIKE={launch_env}") + if launch_hex_disabled and is_hex: + print(f"[MCP] Skipping auto-connection for {name} due to LAUNCH_HEXTRIKE={launch_hex_env}") continue # Optionally auto-start vendored servers (e.g., HexStrike subtree or MetasploitMCP) if getattr(config, "start_on_launch", False):