#!/bin/bash # Run Playwright MCP tests directly without docker-compose echo "=== Starting Playwright MCP Server ===" # Create directories mkdir -p .test/screenshots/{baseline,current,diff} .test/reports # Build and run container echo "Building Docker image..." docker build -t playwright-mcp -f Dockerfile.playwright . 2>&1 | tail -5 echo "" echo "Running Playwright MCP (headed mode - browser will be visible)..." echo "" # Run with DISPLAY for headed mode docker run --rm -it \ --ipc=host \ --shm-size=2g \ -v $(pwd):/app \ -e DISPLAY=$DISPLAY \ -p 8931:8931 \ playwright-mcp echo "" echo "Playwright MCP stopped."