Mobile testing, mobile automation, mobile QA, and mobile test automation framework powered by AI agents and MCP tooling.
This repository provides an AI-powered framework for mobile testing and mobile test automation (plus web validation) using:
- Planner Agent: explores a target app or site and generates a structured Markdown test plan for mobile QA.
- Generator Agent: converts the Markdown test plan into executable Playwright or Mobilewright tests for mobile automation workflows.
- Healer Agent: runs tests, detects failures, and attempts automated repair cycles to improve mobile test automation stability.
- Android and iOS Orchestrators: run Planner -> Generator -> Healer as end-to-end pipelines for each platform and mobile testing lifecycle.
- MCP Server: exposes the framework as callable MCP tools over stdio for AI clients and automation platforms.
The framework is designed to accelerate mobile test authoring, improve test stability, and provide an extensible baseline for AI-assisted mobile QA workflows.
The automation stack runs against Android and iOS app binaries/devices. In practice, this means support is based on platform runtime behavior rather than only the app framework.
| Native app development framework | Support status | Notes |
|---|---|---|
| Android native (Kotlin/Java) | Supported | Run with the Android Mobilewright flow (npm run test:android / Android orchestrator). |
| iOS native (Swift/Objective-C) | Supported | Run with the iOS Mobilewright flow (npm run test:ios / iOS orchestrator). |
| React Native | Supported (via Android/iOS builds) | Test the compiled Android/iOS app using platform-specific selectors and flows. |
| Flutter | Supported (via Android/iOS builds) | Works through generated native app binaries on Android/iOS devices/simulators. |
| .NET MAUI / Xamarin | Supported (via Android/iOS builds) | Use Android/iOS pipelines after producing platform app builds. |
| Ionic / Cordova / Capacitor | Supported (via Android/iOS builds) | Treat as mobile app binaries; use web-context selectors where applicable. |
Notes:
- This project currently provides platform orchestrators for Android and iOS.
- Framework support is validated at runtime through the produced Android/iOS app package and testability of UI selectors.
For a fast web-ready setup:
npm install && npx playwright install chromiumThen run the default web test:
npm run test:webOptional environment setup:
cp .env.example .envOn Windows PowerShell:
Copy-Item .env.example .env- Node.js 20.18.1+ (recommended to satisfy current package engine requirements)
- npm 9+
- Playwright Chromium browser
- mobilewright ^0.0.33
- @playwright/test ^1.59.1
- playwright ^1.59.1
- @modelcontextprotocol/sdk ^1.29.0
- zod ^4.4.3
- openai ^6.37.0
- dotenv ^17.4.2
- fs-extra ^11.3.5
- chalk ^5.6.2
- axios ^1.16.0
- cheerio ^1.2.0
- No additional setup after installing dependencies and Chromium.
- Android SDK installed
- ADB available on PATH
- ANDROID_HOME configured
- At least one connected Android device or emulator
Useful checks:
npm run doctor
npm run devices- macOS host for local iOS automation
- Xcode + Command Line Tools
- Booted iOS Simulator (or compatible cloud/mobile device provider)
Mobile-App-Testing-AI-Agent-MCP-Server/
βββ agents/
β βββ planner.js
β βββ generator.js
β βββ healer.js
βββ mcp/
β βββ server.js
βββ orchestrators/
β βββ android-orchestrator.js
β βββ ios-orchestrator.js
βββ tests/
β βββ generated/
β βββ uselessweb/
β βββ uselessweb.spec.js
β βββ uselessweb-android.test.js
β βββ uselessweb-ios.test.js
βββ plans/
β βββ uselessweb-org--web-test-plan.md
βββ reports/
βββ mobilewright.config.js
βββ playwright.config.js
βββ .env.example
βββ package.json
- agents: AI agent implementations for planning, generation, and healing in mobile test automation pipelines.
- mcp: stdio MCP server exposing planner, generator, healer, and orchestrator tools.
- orchestrators: platform-specific pipeline runners for Android and iOS mobile automation.
- tests: executable specs, including generated tests and curated examples for mobile QA.
- plans: Markdown test plans used as source input for code generation.
- reports: mobile testing and healing run artifacts.
npm run test:webnpm run test:mobile-chrome
npm run test:mobile-safarinpm run test:android
npm run test:iosnpm run agent:planner
npm run agent:planner:android
npm run agent:planner:iosDirect CLI example:
node agents/planner.js --url=https://uselessweb.org/ --platform=web --out=plans/npm run agent:generator
npm run agent:generator:android
npm run agent:generator:iosDirect CLI example:
node agents/generator.js --plan=plans/uselessweb-org--web-test-plan.md --platform=web --out=tests/generated/npm run agent:healer
npm run agent:healer:android
npm run agent:healer:iosDirect CLI example:
node agents/healer.js --spec=tests/uselessweb/uselessweb.spec.js --platform=web --retries=3Use this flow when you want to create tests for a new target URL in your mobile QA process.
- Generate an Android test plan:
node agents/planner.js --url=https://uselessweb.org --platform=android --out=plans/- Generate Android tests from the plan:
node agents/generator.js --plan=plans/example-com-android-test-plan.md --platform=android --out=tests/generated/- Run the generated Android test:
npx mobilewright test tests/generated/example-com-android-test-plan.test.js- Auto-heal failing Android tests:
node agents/healer.js --spec=tests/generated/example-com-android-test-plan.test.js --platform=android --retries=3- Generate an iOS test plan:
node agents/planner.js --url=https://uselessweb.org --platform=ios --out=plans/- Generate iOS tests from the plan:
node agents/generator.js --plan=plans/example-com-ios-test-plan.md --platform=ios --out=tests/generated/- Run the generated iOS test:
npx mobilewright test tests/generated/example-com-ios-test-plan.test.js- Auto-heal failing iOS tests:
node agents/healer.js --spec=tests/generated/example-com-ios-test-plan.test.js --platform=ios --retries=3npm run orchestrate:android -- --url=https://uselessweb.org --retries=3
npm run orchestrate:ios -- --url=https://uselessweb.org --retries=3npm run orchestrate:androidnpm run orchestrate:iosnpm run pipeline:webThis executes Planner -> Generator -> Healer for web.
For end-to-end mobile test automation on each platform:
npm run orchestrate:android
npm run orchestrate:iosnpm run mcp:startThe server runs on stdio and exposes tools including:
- health_check
- run_planner
- run_generator
- run_healer
- run_orchestrator
- list_repo_commands
npm run mcp:inspectUse this in an MCP-capable client configuration file:
{
"mcpServers": {
"mobile-testing-ai-agent": {
"command": "node",
"args": ["mcp/server.js"],
"cwd": "."
}
}
}This repository now includes a CI/CD workflow at .github/workflows/ci-cd.yml.
CI behavior:
- Runs on pushes to main and pull requests targeting main.
- Installs dependencies with npm ci.
- Installs Playwright Chromium.
- Executes the web suite with npm run test:web.
- Uploads Playwright report artifacts when available.
CD behavior:
- Runs after CI on pushes to main.
- Triggers deployment only if DEPLOY_WEBHOOK_URL is configured as a repository secret.
- Safely skips deployment when the secret is not set.
To enable deployment, add this repository secret:
- DEPLOY_WEBHOOK_URL
Contributions are welcome. Please follow the workflow below:
- Fork the repository.
- Create a feature branch from main.
- Keep changes focused and well-scoped.
- Add or update tests for new behavior.
- Run relevant checks before opening a PR:
- npm run test:web
- npm run test:all
- npm run doctor (for mobile environments)
- Open a pull request with:
- clear problem statement
- implementation summary
- validation evidence (logs, test output, screenshots where useful)
- Prefer small, reviewable pull requests.
- Avoid unrelated refactors in the same PR.
- Preserve script and folder naming conventions.
- Document new commands and agent behaviors in this README.
This project is built on top of the excellent Mobilewright ecosystem.
- Mobilewright framework: https://github.com/mobile-next/mobilewright
- Mobilewright documentation: https://mobilewright.dev
Special thanks to the Mobilewright maintainers and contributors for enabling practical mobile automation workflows across Android and iOS.
ISC
Mobile test automation is the practice of using tools and scripts to validate mobile apps and mobile web experiences automatically across Android and iOS.
This project supports mobile QA with AI-driven planning, test generation, and self-healing execution, plus Android and iOS orchestration flows.
Yes. It is built for teams that need scalable mobile automation, repeatable test pipelines, and faster feedback cycles for releases.
This framework focuses on practical workflows for mobile testing, mobile automation, mobile QA, and mobile test automation.
If you have any questions:
- π¬ Open a GitHub Discussion
- π Report bugs via GitHub Issues
- π§ Email: padmaraj dot nidagundi at gmail.com
Response time: Typically 24-48 hours.
New to open source? No problem! Look for issues tagged with good-first-issue or help-wanted. We provide mentorship and guidance to help you succeed.
Thank you for making test automation better for everyone! π