mirror of
https://github.com/GH05TCREW/pentestagent.git
synced 2026-03-07 14:23:20 +00:00
mcp: fix LAUNCH_* env handling in MCP manager (hexstrike/metasploit auto-start)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user