mcp-playwright-server

girlCoder8/mcp-playwright-server

3.1

If you are the rightful owner of mcp-playwright-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Model Context Protocol (MCP) server is a robust framework designed to facilitate automated testing and scenario management using Playwright, Postman, and other integrations.

mcp-playwright-server

Automation framework using Playwright and Model Context Protocol for test execution and scenario management.

Project Structure

mcp-playwright-server/
ā”œā”€ā”€ README.md
ā”œā”€ā”€ .gitignore
ā”œā”€ā”€ .env
ā”œā”€ā”€ package.json
ā”œā”€ā”€ .github/
│   └── workflows/
│       └── ci.yml
ā”œā”€ā”€ examples/
ā”œā”€ā”€ logs/
ā”œā”€ā”€ postman/
│   ā”œā”€ā”€ sample.postman.json
│   └── sample-env.postman.json
ā”œā”€ā”€ screenshots/
ā”œā”€ā”€ scripts/
│   ā”œā”€ā”€ run-postman.js
│   └── headspin-test.sh
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ config/
│   │   ā”œā”€ā”€ appium-config.ts
│   │   └── headspin-config.ts
│   ā”œā”€ā”€ integrations/
│   │   ā”œā”€ā”€ postman.ts
│   │   └── zephyr.ts
│   ā”œā”€ā”€ middleware/
│   ā”œā”€ā”€ playwright/
│   ā”œā”€ā”€ server/
│   └── utils/

What the Automation Framework Entails

  • Playwright Integration: Enables browser automation for end-to-end testing.
  • Model Context Protocol (MCP): Manages test scenarios and execution context.
  • Postman Integration: Supports API testing using Postman collections.
  • Zephyr Integration: Connects with Zephyr for test management.
  • Appium & Headspin Support: Allows mobile automation and remote device testing.
  • Logging & Reporting: Captures logs and screenshots for test runs.

Installation

  1. Clone the repository:

    git clone https://github.com/your-org/mcp-playwright-server.git
    cd mcp-playwright-server
    
  2. Install dependencies:

    npm install
    
  3. Set up environment variables:

    • Copy sample environment files from postman/ if needed.
    • Configure any required credentials in src/config/.

Usage

  • Run Playwright tests:

    npm run test
    
  • Execute Postman collections:

    node scripts/run-postman.js
    
  • Run Headspin tests:

    bash scripts/headspin-test.sh
    

Contributing

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/your-feature).
  3. Commit your changes.
  4. Push to the branch (git push origin feature/your-feature).
  5. Open a pull request.

License

This project is licensed under the MIT License.


For more details, see the documentation in each folder or contact the