llm-tools/mcps/playwright_mcp/launch_playwright_mcp.sh
Gregory Gauthier 2de32fe1e6 refactor(paths): use relative paths in configs and launch scripts
- Update README.md to reflect relative path usage.
- Change MCP server commands in claude_desktop_config.json to relative paths.
- Modify launch scripts to use `cd "$(dirname "$0")"` and relative paths, removing OS-specific absolute prefixes.
2026-04-17 14:25:42 +01:00

17 lines
327 B
Bash
Executable File

#!/usr/bin/env zsh
cd "$(dirname "$0")"
# 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