llm-tools/mcps/playwright_mcp/launch_playwright_mcp.sh
Gregory Gauthier b8aa12c37c chore(config): update MCP server paths to new ~/Projects/local/mcp_servers/ location
Relocate references and commands for MCP servers from ./mcps/ to ~/Projects/local/mcp_servers/ across context files, README, CLAUDE.md, config JSON, and launch scripts. This includes cd commands, tool prefixes, and prompt references to reflect the new directory structure while maintaining provider-agnostic workflows. No functional changes to MCP behavior.
2026-04-17 14:13:33 +01:00

27 lines
613 B
Bash
Executable File

#!/usr/bin/env zsh
if [[ "$(uname)" == "Linux" ]]; then
PATH_PREFIX="/data/Projects"
elif [[ "$(uname)" == "Darwin" ]]; then
PATH_PREFIX="/Users/gregory.gauthier/Projects"
else
# Default fallback
PATH_PREFIX="/data/Projects"
fi
# shellcheck disable=SC2164
cd "${PATH_PREFIX}/local/mcp_servers/playwright_mcp"
# 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