# Testa MCP server

> Allows AI agents to interact with the iOS Simulator by reading the screen, performing touch gestures, and replaying test flows in CI.

- Repository: https://github.com/valewnrt/testa
- Page: https://hostedmcp.org/servers/valewnrt/testa
- Transport: stdio
- Stars: 3
- License: MIT
- Latest version: 0.2.2

## Install

### Claude Code

```sh
claude mcp add testa -- npx -y @valewnrt/testa-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "testa": {
      "command": "npx",
      "args": [
        "-y",
        "@valewnrt/testa-mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "testa": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@valewnrt/testa-mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"testa","type":"stdio","command":"npx","args":["-y","@valewnrt/testa-mcp"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "testa": {
      "command": "npx",
      "args": [
        "-y",
        "@valewnrt/testa-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add testa -- npx -y @valewnrt/testa-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.testa]
command = "npx"
args = ["-y", "@valewnrt/testa-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user testa npx -- -y @valewnrt/testa-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "testa": {
      "command": "npx",
      "args": [
        "-y",
        "@valewnrt/testa-mcp"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `TESTA_MCP_FULL` | no | no | Set to 1 to expose all 40 tools instead of the 13-tool token-lean default. |
| `TESTA_UDID` | no | no | Target a specific simulator UDID instead of the booted one. |

## FAQ

### What apps can Testa test?

It works with React Native, Expo, and SwiftUI apps without requiring any additional testID additions.

### Does Testa require changes to my application code?

No, it reads the accessibility tree and uses on-device OCR for elements not found in the tree, such as system sheets or games.

### Can I run these tests in a CI environment?

Yes, you can record an agent's session as a flow file and replay it in CI using a GitHub Action.

### Does it support real Android devices?

No, Testa is limited to the iOS Simulator only and does not support real devices or Android.
