ARTEX - AI autonomous penetration testing system (English translation; upstream: Autumn-27/ARTEX, AGPL-3.0)
Go aiai-agentsautonomous-agentsbug-bountydockergolanglinuxllmmcpnextjspenetration-testingpentestpostgresqlreareactred-teamsecuritysecurity-automationsqlitetypescript
chore(docker): 预装 Playwright MCP/CLI 及 chromium
Autumn-273f798ec74efe
diff --git a/Dockerfile b/Dockerfileindex aec7ee4..e45de8d 100644--- a/Dockerfile+++ b/Dockerfile@@ -18,6 +18,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \nodejs npm \dnsutils iputils-ping netcat-openbsd whois nmap \&& rm -rf /var/lib/apt/lists/*+# 预装 Playwright MCP 与 CLI(全局),运行时不再 npx 联网下载。+# @playwright/mcp:browser MCP 直接 `npx @playwright/mcp`(已全局装好,无需 -y/@latest)。+# @playwright/cli:提供 playwright-cli,装完顺带 --help 验证可执行。+# 再装 playwright(提供浏览器管理),装完用 --with-deps 预置 chromium 及其系统依赖,+# 这样容器内 MCP/CLI 首次启动即可用,不再联网下载浏览器。+RUN npm install -g @playwright/mcp@latest @playwright/cli@latest playwright@latest \+ && playwright-cli --help \+ && playwright install --with-deps chromium \+ && rm -rf /var/lib/apt/lists/*WORKDIR /app# 预编译好的对应架构二进制(dist/amd64/artex 或 dist/arm64/artex)COPY dist/${TARGETARCH}/artex /app/artexdiff --git a/db/db.go b/db/db.goindex f7c3078..4e2b959 100644--- a/db/db.go+++ b/db/db.go@@ -184,7 +184,7 @@ ON CONFLICT (agent_id, var_name) DO UPDATEINSERT INTO mcp_servers(name, transport, command, args, env, enabled)VALUES ('browser', 'stdio', 'npx', $1, '{}', false)ON CONFLICT (name) DO NOTHING`,- `["-y","@playwright/mcp@latest","--headless"]`); err != nil {+ `["@playwright/mcp","--headless"]`); err != nil {return fmt.Errorf("seed browser mcp: %w", err)}// NOTE: the placeholder ScopeSentry data-source MCP (empty URL + empty X-API-Key,