mcp: fix LAUNCH_* env handling in MCP manager (hexstrike/metasploit auto-start)

This commit is contained in:
giveen
2026-01-14 17:43:41 -07:00
parent ff152138e5
commit 6cf1ec43fe

View File

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