Gray-box end-to-end testing for mobile apps.
## Detox MCP Server: React Native End-to-End Testing The **Detox MCP Server** integrates gray-box end-to-end testing for React Native applications into Google Antigravity, enabling reliable mobile app testing with automatic synchronization and AI-assisted test development. ### Why Detox MCP? - **Gray-Box Testing**: Unique approach that monitors app internals for reliable synchronization without flakiness - **React Native Native**: Built specifically for React Native with deep framework integration - **Cross-Platform**: Test both iOS and Android platforms with shared test code - **CI/CD Ready**: Designed for automation with headless execution and parallel testing support - **Real Simulators**: Run tests on actual iOS simulators and Android emulators ### Key Features #### 1. Test Execution ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Run Detox tests on iOS simulator and Android emulator in parallel" }] ) ``` #### 2. Test Development ```python # Create tests response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Generate Detox tests for the onboarding flow with swipe gestures and form input" }] ) ``` #### 3. Element Matching ```python # Find elements response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Create element matchers for the settings screen using testID and accessibility labels" }] ) ``` #### 4. Device Control ```python # Control devices response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Test push notification handling by simulating background and foreground states" }] ) ``` ### Configuration ```json { "mcpServers": { "detox": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-detox"], "env": { "DETOX_CONFIGURATION": "ios.sim.release", "DETOX_LOGLEVEL": "verbose" } } } } ``` ### Use Cases **React Native Testing**: Comprehensive e2e testing specifically designed for React Native apps. **Release Validation**: Verify app functionality before App Store and Play Store submissions. **Regression Prevention**: Catch breaking changes in navigation, gestures, and native features. **CI Integration**: Automate mobile testing in CI/CD pipelines with reliable, repeatable results. The Detox MCP Server provides reliable React Native testing, eliminating the flakiness that plagues traditional mobile e2e testing approaches.
{
"mcpServers": {
"detox": {}
}
}