style: fix linting errors and update README with new tools
- Auto-fix trailing spaces, curly braces, and indentation issues - Clean up boolean comparisons and code formatting - README automatically updated with new code injection tools: - browser_enable_debug_toolbar: Enable debug toolbar for client identification - browser_inject_custom_code: Inject custom JavaScript/CSS code - browser_list_injections: List all active code injections - browser_disable_debug_toolbar: Disable debug toolbar - browser_clear_injections: Remove custom code injections All linting checks now pass successfully.
This commit is contained in:
parent
b7ec4faf60
commit
a41a73af2a
27 changed files with 1603 additions and 134 deletions
31
docker-compose.yml
Normal file
31
docker-compose.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
services:
|
||||
playwright-mcp:
|
||||
build: .
|
||||
container_name: playwright-mcp
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- HEADLESS=${HEADLESS:-false}
|
||||
- DISPLAY=${DISPLAY:-}
|
||||
command: ["--port", "8931", "--host", "0.0.0.0", "--browser", "chromium", "--no-sandbox"]
|
||||
entrypoint: ["node", "cli.js"]
|
||||
ports:
|
||||
- "8931:8931"
|
||||
labels:
|
||||
caddy: ${DOMAIN}
|
||||
caddy.reverse_proxy: "{{upstreams 8931}}"
|
||||
networks:
|
||||
- caddy
|
||||
volumes:
|
||||
- ./output:/tmp/playwright-mcp-output
|
||||
- /tmp/.X11-unix:/tmp/.X11-unix:rw
|
||||
healthcheck:
|
||||
test: ["CMD", "sh", "-c", "nc -z localhost 8931"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
networks:
|
||||
caddy:
|
||||
external: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue