> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobileboost.io/llms.txt
> Use this file to discover all available pages before exploring further.

# PR Testing on remote devices

> Give your coding agent a test agent and real devices. Describe a feature, and MobileBoost tests it.

MobileBoost is a test agent and a device lab in one. Your coding agent sends us the build and a description of the feature, or a high-level test plan. That is all we need: the MobileBoost test agent starts on a real phone or a virtual device, checks what you described, and tries to break it. Your agent gets back a verdict, the bugs, screenshots and a recording.

```mermaid theme={null}
flowchart LR
    A["Your laptop<br/>agent writes code and builds"] -- "build + feature description" --> B["MobileBoost test agent<br/>on a real device"]
    B -- "verdict + bugs + report" --> A
```

> [card] A test agent, not just a device
>
> No test code and no steps to write. The test agent works out how to reach the feature, tests it adversarially and reports each bug with steps to reproduce.

> [card] Real phones on demand
>
> iPhones and Android phones, or emulators and simulators when a virtual device is enough.

> [card] Several features in parallel
>
> Testing runs on our devices, not your laptop, so your agent can build and verify several features at once.

> [card] 3x cheaper than your own agent
>
> A test costs about a third of what your own Claude Code spends testing the same feature. [See the comparison](https://mobileboost.io/pr-testing).

MobileBoost only receives the build, the description of the change and your agent's answers to the test agent's questions. Your code and repository stay on your side.

## Get started

Add the MobileBoost MCP server to your coding agent. Your browser opens once to sign in.

> [tab] Claude Code
>
> ```bash wrap theme={null}
> claude mcp add --transport http mobileboost-platform https://api.mobileboost.io/platform-mcp
> ```

> [tab] Cursor
>
> Add this to `~/.cursor/mcp.json`, or under **Settings → MCP → Add new MCP server**:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "mobileboost-platform": {
>       "url": "https://api.mobileboost.io/platform-mcp"
>     }
>   }
> }
> ```

> [tab] Codex
>
> ```bash wrap theme={null}
> codex mcp add mobileboost-platform --url https://api.mobileboost.io/platform-mcp
> ```

> [tab] Claude Desktop
>
> In **Settings → Connectors**, click **Add custom connector** and paste this as the server URL:
>
> ```text theme={null}
> https://api.mobileboost.io/platform-mcp
> ```
>
> Click **Add**, then **Connect**, and sign in. No terminal needed. See [Claude Desktop setup](https://docs.mobileboost.io/engineer-tooling/platform-mcp#integrate-the-server) for Team and Enterprise plans.

Using VS Code or another agent? See [connect your client](https://docs.mobileboost.io/engineer-tooling/platform-mcp#integrate-the-server).

## Two ways to use it

> [card] Engineer: while you build
>
> Mobile engineers let their coding agent test each feature before calling it done.

> [card] Engineer / QA: test a PR or a build
>
> Engineers and QA teams ask their agent to test any pull request, ticket or test plan.

### Engineer: while you build

For mobile engineers whose coding agent writes the feature.

> [tab] One sentence
>
> Add this to any feature request:
>
> ```text wrap theme={null}
> When it's built, test it on a MobileBoost device before you tell me it's done.
> ```
>
> Your agent uploads the build, describes the change, waits for the result, and fixes what failed.

> [tab] Every session
>
> Put this in your repository's `CLAUDE.md` or `AGENTS.md`:
>
> ```markdown wrap theme={null}
> ## Testing app changes
>
> A change users can see is not done until a MobileBoost feature test passes on it. If it fails, fix it and retry with the new build, at most 3 times. Put the verdict and the report link in the PR description.
> ```

### Engineer / QA: test a PR or a build

For engineers and QA teams who verify what others built. Mention `@claude` to hand the job to your Claude, which orchestrates the test on MobileBoost. You don't need to build the app or write test code: Claude uses a build your CI already made, either a CI artifact or a build already on MobileBoost.

> [tab] A pull request
>
> Comment on the pull request:
>
> ```text wrap theme={null}
> @claude Test this PR on a real phone with MobileBoost. Use the build CI made for it, write a test plan from the PR description, and post the verdict and the report link as a comment here.
> ```
>
> A `@claude` comment needs Claude Code GitHub Actions in the repository, with the MobileBoost MCP server added. In your own Claude session, name the PR instead: *"Test PR #123 ..."*.

> [tab] A Jira ticket
>
> ```text wrap theme={null}
> @claude Test the newest Android build on MobileBoost against the acceptance criteria in JIRA-123. Tell me which criteria pass, which fail, and the report link.
> ```
>
> Your agent reads the ticket through the MobileBoost MCP server if your organisation has connected Jira.

> [tab] Your test plan
>
> ```text wrap theme={null}
> @claude Run this test plan with MobileBoost on the newest iOS build, on a real iPhone:
> 1. Sign in with the account in TEST_EMAIL and TEST_PASSWORD.
> 2. Open Favourites and save the first meal.
> 3. Restart the app. The meal is still in Favourites.
> ```
>
> The test agent follows your steps and also tries what they leave out.

## What you get back

After 5 to 10 minutes, your agent gets:

* **A verdict**: passed, failed or not decided
* **Every check** the test agent made, each with a screenshot
* **The bugs** it found, with steps to reproduce them
* **A screen recording** and a report page your team can open

The test agent also tries what you didn't mention, such as the Back button, doing something twice, or restarting the app.

## Good to know

> [accordion] Test against a local server or staging system
>
> On a MobileBoost device, `localhost` is the device itself, and a staging system inside your network is out of reach. A [MobileBoost Local](https://docs.mobileboost.io/test-agent/local-testing.md) tunnel connects the device to your machine, and your coding agent sets it up for you. Just say where the app's backend is:
>
> ```text wrap theme={null}
> Test it against my API on localhost:3000.
> ```
>
> The MobileBoost MCP server tells your agent how to set up the tunnel. Your agent:
>
> 1. Downloads the `mb-local` binary and checks its checksum. Your agent may ask you once for permission to install it.
> 2. Starts a tunnel that only allows the hosts the app needs, such as `localhost:3000` or `staging.acme.internal`.
> 3. Points the debug build at `mb-local.net` instead of `localhost`, if the server runs on your machine.
> 4. Names the tunnel in the test, and stops the tunnel when the test is done.
>
> `mb-local` opens one outbound connection from your machine to MobileBoost. When the app on our device calls one of the allowed hosts, the request travels back down that connection and your machine makes it, resolving the hostname as it does for you. Calls to anything else, such as public APIs, use the device's normal internet connection. So the device reaches your laptop, a staging system behind your VPN or an internal API, without you opening a firewall port or giving MobileBoost access to your network.
>
> One thing to do yourself: the tunnel needs a full-access API key from **Settings → API keys** in `MOBILEBOOST_API_KEY`. Set it in the shell you start your agent from, never in the chat.
>
> More: [how MobileBoost Local works](https://docs.mobileboost.io/test-agent/local-testing.md#how-it-works), [what MobileBoost can and cannot see](https://docs.mobileboost.io/test-agent/local-testing.md#what-mobileboost-can-and-cannot-see), [a server that only accepts `Host: localhost`](https://docs.mobileboost.io/test-agent/local-testing#reach-a-service-on-your-own-machine), [troubleshooting](https://docs.mobileboost.io/test-agent/local-testing-troubleshooting.md).

> [accordion] Write a good description
>
> Your agent writes the description, but you can steer it. The test agent only knows what the description says, plus your organisation's test handbook if you have one. A good description answers three questions:
>
> * **What changed?** The feature, in a sentence or two.
> * **Where is it?** The screen, and how to get there from the start of the app.
> * **What should happen?** The expected behaviour, including the edge cases you care about.
>
> If the app needs a sign-in, store the credentials as [environment variables](https://docs.mobileboost.io/engineer-tooling/platform-mcp#environment-variables) and name them in the description: *"Sign in with the email in `TEST_EMAIL` and the password in `TEST_PASSWORD`."* Never put the values themselves in the description.

> [accordion] When the test agent has a question
>
> If something is unclear, the test agent asks your agent and keeps testing what it can in the meantime. The test's status changes to `waiting_for_answer`, and your agent answers with `platform_answer_feature_test_question`.
>
> The test agent waits about 100 seconds for each answer and asks at most 5 questions. If a question is still open near the end, it finishes with what it has, and the question goes into the report.

> [accordion] Test a build that is already on MobileBoost
>
> Your agent can skip the upload: `platform_list_builds` shows your builds with their `uploadId`. Without an `uploadId`, your organisation's newest build is tested, which usually doesn't contain the change.

> [accordion] Test on a slow or broken network
>
> Pass `networkConditions` to `platform_start_feature_test` to make the app's network slow, lossy or offline for the whole test. For example, `{"offline": true}` checks what the app does without a connection. This works on emulators and simulators only.

> [accordion] Limits
>
> * **Devices**: an Android emulator or iOS simulator unless you ask for a real phone (`usePhysicalDevice`). Real phones need to be set up for your organisation. Ask your MobileBoost contact.
> * **Time**: a test gets 20 minutes by default. Set `minutes` to anything from 5 to 25. Most tests finish in 3 to 6 minutes.
> * **Per month**: 100 PR tests by default, retries included. `platform_list_feature_tests` shows how many you have used. Ask your MobileBoost contact if you need more.

> [accordion] All PR Testing tools
>
> | Tool | Scope | What it does |
> | - | - | - |
> | `platform_start_feature_test` | `mcp:write` | Starts a test. Needs a `description`. Optional: `title`, `testPlan`, `context`, `uploadId`, `platform`, `minutes`, `usePhysicalDevice`, `device`, `networkConditions` and `tunnelName`. |
> | `platform_wait_for_feature_test` | `mcp:read` | Waits up to 40 seconds and returns the test's state. Call it again until the test is finished. |
> | `platform_answer_feature_test_question` | `mcp:write` | Answers the test agent's question while the status is `waiting_for_answer`. |
> | `platform_retry_feature_test` | `mcp:write` | Runs the same test again, usually on a fixed build. |
> | `platform_get_feature_test` | `mcp:read` | Reads a test again, with fresh screenshot and recording links. |
> | `platform_list_feature_tests` | `mcp:read` | Lists earlier feature tests and your usage this month. |
> | `platform_cancel_feature_test` | `mcp:write` | Stops a test that is still running. |
> | `platform_create_build_upload` | `mcp:write` | Gives your agent a link to upload a build file from your machine. |
> | `platform_upload_build` | `mcp:write` | Registers an uploaded build and returns its `uploadId`. |
> | `platform_get_tunnel_setup` | `mcp:read` | Gives the commands to open a MobileBoost Local tunnel from your machine. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.