mcp-playwright-test
1
MCP Playwright Test is a testing automation server leveraging Playwright for comprehensive UI and API testing. It features automated code retrieval, test environment setup, and detailed reporting, suited for both local and Git projects.
MCP Playwright Test
A Playwright test automation server based on the Model Context Protocol (MCP).
Features
- Automates project code retrieval (supports Git repositories or local projects)
- Sets up a test environment with Playwright
- Generates test cases based on requirements
- Executes UI and API tests, generating detailed reports
- Captures and analyzes network requests and console logs
Quick Start
Installation
Use npm, yarn, or pnpm to install the package.
Environment Configuration
Set API keys and optional server port port through environment variables.
Server Start
Start the server using npm scripts or direct execution.
Configuration Files
The MCP Playwright Test supports configuration via .playwright-mcp.json
files.
Supported API Specification Formats
Supports formats such as OpenAPI 3.0, Swagger 2.0, and Apifox for automatic parsing.