GUI-PlaywrightMCP-Framework

mcp
Security Audit
Warn
Health Warn
  • License Ò€” License: MIT
  • Description Ò€” Repository has a description
  • Active repo Ò€” Last push 0 days ago
  • Low visibility Ò€” Only 5 GitHub stars
Code Warn
  • fs module Ò€” File system access in package.json
  • process.env Ò€” Environment variable access in playwright/playwright.config.ts
Permissions Pass
  • Permissions Ò€” No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

πŸŽ­πŸ€– AI QA agent template: Claude + Playwright MCP that remembers your app. One prompt per job β€” exploratory, smoke, regression, GitHub-issue validation β€” with PDF reports.

README.md

πŸŽ­πŸ€– QA Agent Template

Claude + Playwright MCP β€” an AI tester that remembers your app

CI
License: MIT
Playwright
Claude Code
Node
PRs Welcome
GitHub stars

English Β· EspaΓ±ol

One prompt per job: Explore, Smoke, Regression, Change validation, Report

Why?

Most AI testing setups rediscover your application from scratch on every run β€” burning tokens and producing inconsistent results.

This template gives the agent a persistent knowledge base (knowledge/) that it writes once during exploration and reuses on every later run. Each release, it gets faster, cheaper and more consistent.

Without this template With this template
Agent re-explores the app every run Reads app_map.md, user_flows.md, business_rules.md
Reports known bugs again and again Skips anything in known_issues.md
Ad-hoc prompts, ad-hoc output One prompt per job, standard PDF report
No history between releases knowledge/releases/ tracks what changed

✨ Features

  • πŸ” Exploratory testing that builds an app map, user flows, business rules and UI inventory
  • πŸ’¨ Smoke and πŸ” regression runs driven by that knowledge
  • πŸ› Change validation from a GitHub issue URL β€” the agent reads the issue and tries to reproduce it
  • πŸ“„ PDF reports with executive summary, screenshots, console errors and metrics
  • πŸ” Persistent login via Playwright storage state
  • 🧠 Token-efficient: knowledge first, exploration only when asked

βš™οΈ How it works

flowchart LR
    C[project_config/*.yaml] --> A
    K[(knowledge/)] --> A
    P[prompts/*.md] --> A
    A[Claude Code<br/>+ Playwright MCP] -->|drives| B[🌐 Your web app]
    A -->|learns| K
    A --> R[πŸ“„ reports/generated<br/>HTML + PDF]

πŸš€ Quick start

Requirements: Node 20+, Claude Code (or Claude Desktop with MCP).

# 1. Use this template (or clone it)
git clone https://github.com/GonzaloAlarconRoldan/GUI-PlaywrightMCP-Framework.git my-qa-agent
cd my-qa-agent

# 2. Install deps + browser, create your local credentials file
npm install
npm run setup

# 3. Fill in your app
#    project_config/application.yaml   β†’ name, base_url, login_url
#    project_config/credentials.yaml   β†’ test user (git-ignored)
#    knowledge/testing_scope.md        β†’ what matters

# 4. Start Claude Code β€” CLAUDE.md and .mcp.json are picked up automatically
claude

Then just tell the agent which job to run:

Execute prompts/exploratory.md

🧰 Jobs

Prompt What it does Output
exploratory.md Discovers modules, forms, tables, dashboards and flows knowledge/* + baseline screenshots
smoke.md Login, dashboard, main navigation Report
regression.md Critical flows, business rules, forms Report + regressions found
change_validation.md Paste a GitHub issue URL β†’ reproduce it Verdict + evidence
generate_report.md Consolidates evidence HTML + PDF

Example:

Execute prompts/change_validation.md
Issue: https://github.com/acme/web-app/issues/142

πŸ“ Project structure

Click to expand
.
β”œβ”€β”€ CLAUDE.md                 # Entry point β€” Claude Code loads it automatically
β”œβ”€β”€ CLAUDE_SYSTEM_PROMPT.md   # Agent role and browser rules
β”œβ”€β”€ CLAUDE_CONTEXT.md         # What to read before acting
β”œβ”€β”€ CLAUDE_REPORTING.md       # Report format and severity levels
β”œβ”€β”€ .mcp.json                 # Playwright MCP server
β”œβ”€β”€ project_config/           # Your app: URLs, environments, test data, credentials
β”œβ”€β”€ knowledge/                # The agent's memory of your app (auto-maintained)
β”‚   └── releases/             # Release notes for regression comparisons
β”œβ”€β”€ prompts/                  # One prompt per testing job
β”œβ”€β”€ playwright/
β”‚   β”œβ”€β”€ playwright.config.ts
β”‚   β”œβ”€β”€ auth/                 # Saved login session (git-ignored)
β”‚   └── tests/                # Scripted tests + framework integrity checks
β”œβ”€β”€ reports/                  # templates/, generated/, evidence/
β”œβ”€β”€ screenshots/baseline/     # Visual baseline
β”œβ”€β”€ generate_pdf.js           # HTML β†’ PDF
└── docs/                     # Full guide and assets

πŸ“– Documentation

πŸ—ΊοΈ Roadmap

  • Exploratory, smoke, regression, change validation and report prompts
  • PDF reports with screenshots
  • CI with framework integrity tests
  • Visual regression against baseline screenshots
  • Accessibility audit prompt (axe-core)
  • Turn discovered flows into reusable Playwright .spec.ts tests
  • Example project against a public demo app

Got an idea? Open an issue.

🀝 Contributing

PRs are welcome β€” new prompts and report templates are the easiest place to start. See CONTRIBUTING.md.

⭐ Support

If this template saves you time, give it a star β€” it helps other QA engineers find it.

Star History Chart

πŸ“ License

MIT Β© Gonzalo AlarcΓ³n RoldΓ‘n

Reviews (0)

No results found