Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DETOX_PROJECT_PATH | No | Path to React Native project | Current directory |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| detox_build | Build the app for Detox testing. Runs the build command from your Detox configuration. |
| detox_test | Run Detox E2E tests with full options for configuration, retries, artifacts, and more. |
| detox_init | Initialize Detox in a React Native project. Creates e2e folder structure and configuration. |
| detox_read_config | Read and parse the current Detox configuration file (.detoxrc.js or similar). |
| detox_list_configurations | List all available Detox configurations (e.g., ios.sim.debug, android.emu.debug). |
| detox_validate_config | Validate Detox configuration for errors and warnings. |
| detox_create_config | Generate a new Detox configuration file for your React Native project. |
| detox_list_devices | List available iOS simulators and Android emulators. |
| detox_generate_test | Generate a complete Detox test file from a description. |
| detox_generate_matcher | Generate Detox matcher code for element selection (by.id, by.text, etc.). |
| detox_generate_action | Generate Detox action code (tap, typeText, scroll, etc.). |
| detox_generate_expectation | Generate Detox expectation/assertion code (toBeVisible, toHaveText, etc.). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| detox-test | Run Detox tests with smart defaults and formatted results |
| detox-generate | Generate Detox test code from a natural language description |
| detox-setup | Initialize and configure Detox in a React Native project |
| detox-debug | Debug a failing Detox test with screenshots and view hierarchy |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Detox Configuration | Current Detox configuration from .detoxrc.js or similar |
| Available Devices | List of iOS simulators and Android emulators |
| Test Files | List of Detox test files in the e2e directory |
| Matchers API | Detox element matchers reference (by.id, by.text, etc.) |
| Actions API | Detox element actions reference (tap, typeText, etc.) |
| Expectations API | Detox assertions reference (toBeVisible, toExist, etc.) |
| Device API | Detox device control reference (launchApp, setLocation, etc.) |