How seawandererind-hash/testpilot-mcp works
TestPilot is an MCP-based test-automation assistant. Its main journey guides a team through setup, importing and reviewing cases, planning, generating tests, running and triaging them, and reporting or syncing results. The graph also retains the live-testing, AI-driven testing, quality, coverage, add-on, and browser UI capabilities described in the README. Source excerpts show MCP tool registration and selected internal calls; other links follow the README’s workflow, so unsampled implementation details are not inferred.
Main entry points: playwright.ts Test execution · wizard.ts Guided setup · quickstart.ts Quick start · import.ts Case import
Components 27
Entry points
- MCP server
src/server.ts - MCP tool handlers
src/tools/common.ts - Browser app
src/ui-app/server.ts
Project setup
- Guided setup
src/core/wizard.ts - Quick start
src/tools/quickstart.ts - Project state
src/core/store.ts - Environment config
src/core/env.ts - Framework scaffold
src/scaffold/engine.ts
Cases and planning
- Case import
src/testcases/import.ts - Case format adapters
src/testcases/importers - Case review
src/testcases/review.ts - Automation plan
src/plan/plan.ts
Test automation
- App exploration
src/explore/web.ts - Live testing
src/live/engine.ts - Test generation
src/generate/playwright.ts - AI-driven tests
src/ai/midscene.ts - Test execution
src/run/playwright.ts - Locator healing
src/heal/locators.ts
Quality and results
- Quality checks
src/quality/gate.ts - Coverage map
src/insights/coverage.ts - Reports and CI
src/report/report.ts - Result publishing
src/integrations/sync.ts - Add-on capabilities
src/capabilities/index.ts
Other components
- QA team
- Application under test
- Test management services
- CI pipeline
Connections 32
- QA team → MCP server: asks for help
README.md - MCP server → MCP tool handlers: registers tools
src/server.ts - QA team → Browser app: opens app
README.md - QA team → Guided setup: chooses setup
README.md - Guided setup → Project state: saves choices
README.md - Guided setup → Environment config: configures keys
README.md - QA team → Quick start: requests quick check
README.md - Quick start → Project state: records setup
src/tools/quickstart.ts - Quick start → App exploration: explores app
src/tools/quickstart.ts - Guided setup → Framework scaffold: creates framework
README.md - QA team → Case import: supplies cases
README.md - Case import → Case format adapters: uses adapters
- Case import → Case review: normalizes cases
- Case review → Automation plan: scores and plans
README.md - QA team → App exploration: requests exploration
README.md - App exploration → Application under test: inspects pages
README.md - QA team → Live testing: watches test
README.md - QA team → Test generation: approves generation
README.md - Automation plan → Test generation: guides test generation
README.md - Test generation → Test execution: writes runnable tests
README.md - QA team → AI-driven tests: describes test
README.md - AI-driven tests → Application under test: drives app
README.md - QA team → Test execution: runs tests
README.md - Test execution → Application under test: exercises app
README.md - Test execution → Locator healing: feeds failures
README.md - Test execution → Quality checks: checks test code
src/quality/gate.ts - Test execution → Coverage map: supplies run results
src/insights/coverage.ts - Test execution → Reports and CI: produces results
README.md - Reports and CI → CI pipeline: supports pipelines
README.md - QA team → Result publishing: approves publishing
README.md - Result publishing → Test management services: sends results
README.md - QA team → Add-on capabilities: requests add-ons
README.md