llm-tools/mcps/playwright_mcp/launch_playwright_mcp.sh

17 lines
327 B
Bash
Raw Normal View History

2026-04-08 11:11:04 +00:00
#!/usr/bin/env zsh
cd "$(dirname "$0")"
2026-04-08 11:11:04 +00:00
# Install dependencies if not present
if [[ ! -d "node_modules" ]]; then
npm install @playwright/test @playwright/mcp
fi
# Ensure browsers are installed
npx playwright install chromium
# Launch the server
npx @playwright/mcp --browser chromium --headless 2> playwright_mcp.log