mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
fix: use npx.cmd on Windows for Playwright MCP server
On Windows with Git Bash, 'npx' is not resolved as a command. Using 'npx.cmd' ensures the MCP server starts correctly, enabling Playwright browser tools for QA testing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
4
.github/workflows/qa-claude.yaml
vendored
4
.github/workflows/qa-claude.yaml
vendored
@@ -124,8 +124,10 @@ jobs:
|
||||
- name: Create MCP config
|
||||
shell: bash
|
||||
run: |
|
||||
NPX_CMD="npx"
|
||||
if [ "$RUNNER_OS" = "Windows" ]; then NPX_CMD="npx.cmd"; fi
|
||||
cat > "${{ runner.temp }}/mcp-config.json" <<EOF
|
||||
{"mcpServers":{"playwright":{"command":"npx","args":["@playwright/mcp@0.0.68"]}}}
|
||||
{"mcpServers":{"playwright":{"command":"${NPX_CMD}","args":["@playwright/mcp@0.0.68"]}}}
|
||||
EOF
|
||||
|
||||
- name: Write QA prompt
|
||||
|
||||
Reference in New Issue
Block a user