> ## 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.

# Platform MCP server

> Connect your MobileBoost Platform test library to Cursor, Claude Code, and other MCP clients

> [!NOTE]
>
> The Platform MCP server is in early access. The tools below are stable, but the set will grow. Tell your MobileBoost contact what you need next.

The Platform MCP server lets your AI coding agent work with your MobileBoost Platform test library directly: read and write test specs, upload builds, start autotest runs on real devices, read back what happened on those devices step by step, and manage the environment variables your tests read their credentials from. Any client that supports the [Model Context Protocol](https://modelcontextprotocol.io) can connect to it.

## How Platform tests work

A Platform test is a **spec**: a plain-language description of the flow you want verified. Creating a test, or editing its description, automatically asks an agent to explore your app on a real device, write the pytest file, verify that it passes several times in a row, and commit it to your test repository. That committed file is what a run executes.

Two things follow from this, and they shape how you prompt your agent:

* Write descriptions that describe **behaviour, not steps to type**. Given/When/Then reads well. The agent works out the taps itself.
* A test whose automation has not been written yet **cannot be run**. `platform_run_tests` refuses a selection that contains one, so generate first.

## Prerequisites

* A MobileBoost Platform account
* An MCP-compatible client (Cursor, Claude Code, Claude Desktop, VS Code, or any other MCP client)
* A build to test against: either an uploaded build, or an app already installed on your reserved device (see [Builds](#builds))

## Server details

| Field | Value |
| - | - |
| URL | `https://api.mobileboost.io/platform-mcp` |
| Transport | Streamable HTTP |
| Authentication | OAuth 2.1 (browser sign-in), or an API key for CI |
| Protocol revision | `2025-06-18` |

## Integrate the server

Pick your client below and follow the steps. The first time you connect, your browser opens a MobileBoost sign-in page; after that, the client refreshes tokens automatically.

> [tab] Cursor
>
> **1. Open the MCP configuration**
>
> In Cursor, open **Settings → MCP → Add new MCP server**, or edit `~/.cursor/mcp.json` directly.
>
> **2. Add the Platform server**
>
> Paste the following entry:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "mobileboost-platform": {
>       "url": "https://api.mobileboost.io/platform-mcp"
>     }
>   }
> }
> ```
>
> **3. Sign in**
>
> Save the file. Cursor opens a browser tab. Sign in with your MobileBoost account and approve the requested scopes. The server then shows up with a green status indicator under **Settings → MCP**.

> [tab] Claude Code
>
> **1. Add the server with the CLI**
>
> ```bash theme={null}
> claude mcp add --transport http mobileboost-platform https://api.mobileboost.io/platform-mcp
> ```
>
> **2. Sign in**
>
> Claude Code opens your browser on first use. Sign in to MobileBoost and approve access.
>
> **3. Verify the connection**
>
> ```bash theme={null}
> claude mcp list
> ```
>
> The `mobileboost-platform` entry should report as connected.

> [tab] Claude Desktop
>
> Add the Platform server as a [custom connector](https://support.claude.com/en/articles/11175166). No config file editing needed.
>
> **1. Open Connectors settings**
>
> In Claude Desktop, click your profile icon and choose **Settings**, then go to **Connectors** in the sidebar. You can also open it directly at [claude.ai/customize/connectors](https://claude.ai/customize/connectors).
>
> **2. Add a custom connector**
>
> Scroll to the bottom of the connector list and click **Add custom connector**.
>
> **3. Enter the Platform URL**
>
> In the **Remote MCP server URL** field, paste:
>
> ```
> https://api.mobileboost.io/platform-mcp
> ```
>
> Leave **Advanced settings** untouched. MobileBoost uses Dynamic Client Registration, so no OAuth client ID or secret is required.
>
> **4. Save and connect**
>
> Click **Add** to save the connector, then click **Connect** next to it in the list. A browser window opens for you to sign in to MobileBoost and approve the requested scopes.
>
> **5. Enable in chat**
>
> Open a new chat, click the **+** button in the message composer, choose **Connectors**, and toggle the connector on.
>
> > [!NOTE]
> >
> > Custom connectors connect from Anthropic's cloud, not your local machine. The Platform MCP server is publicly reachable, so this works out of the box.
>
> > [!NOTE]
> >
> > On Team and Enterprise plans, an Owner must first add the connector under **Organization settings → Connectors** before members can connect to it.

> [tab] VS Code
>
> **1. Create the MCP config**
>
> In your project root, create `.vscode/mcp.json`:
>
> ```json theme={null}
> {
>   "servers": {
>     "mobileboost-platform": {
>       "type": "http",
>       "url": "https://api.mobileboost.io/platform-mcp"
>     }
>   }
> }
> ```
>
> **2. Start the server**
>
> Open the Command Palette and run **MCP: List Servers**, select **mobileboost-platform**, and click **Start**. VS Code opens your browser to complete sign-in.

> [tab] Other clients
>
> Any MCP-compatible client can connect. Use:
>
> * **URL**: `https://api.mobileboost.io/platform-mcp`
> * **Transport**: Streamable HTTP
>
> For clients that only support stdio, use the `mcp-remote` bridge:
>
> ```bash theme={null}
> npx -y mcp-remote https://api.mobileboost.io/platform-mcp
> ```
>
> The client (or `mcp-remote`) discovers the authorization server, registers itself, and runs the browser sign-in flow automatically.

### Connect with an API key

A CI job or a headless agent can't open a browser. It can use a full-access API key from **Settings → API keys** in the Platform app instead:

```bash theme={null}
claude mcp add --transport http mobileboost-platform https://api.mobileboost.io/platform-mcp   --header "Authorization: Bearer $MOBILEBOOST_API_KEY"
```

The key reaches every Platform MCP tool. The admin tools (environment variables, launch parameters, app reset) work while the person who created the key is an admin of your organisation. Audit keys are refused. Keep the key in an environment variable or your CI's secret store, never in the chat or the repository.

## Verify the integration

Once connected, ask your agent something that requires Platform data, for example:

```
List my MobileBoost Platform tests.
```

The agent should call `platform_list_tests` and return your test library. If the call fails with an authentication error, sign out and reconnect from your client's MCP settings.

## A typical session

Everything below is one conversation with your agent. You describe the outcome; the agent picks the tools.

**1. Add a test**

> Add a Platform test: a signed-in user with an item in the basket can complete checkout with a saved card and lands on the order confirmation screen. Tag it `checkout` and `smoke`.

The agent calls `platform_create_test`. Writing the automation starts straight away against your newest build, and the result reports how that generation went under `automation`.

**2. Watch it get written**

> What is the automation state of my checkout tests?

`platform_list_tests` filtered by tag, or `platform_get_test` for one test, reports `none`, `queued`, `generating`, `ready`, `blocked` or `failed`, along with any notes the agent raised while it was exploring your app. The state comes for the test as a whole and, under `platforms`, for iOS and Android separately, so a test that is ready on one and failed on the other shows both.

**3. Run the suite**

> Upload the build at [https://ci.example.com/artifacts/app-1234.apk](https://ci.example.com/artifacts/app-1234.apk) and run every test tagged `smoke` against it.

`platform_upload_build` returns an `uploadId`, and `platform_run_tests` starts the run and returns a `runId`.

**4. Check the result**

> How did that run go?

`platform_get_run_status` reports the overall status plus which tests succeeded, failed or were blocked.

## Test a PR on a device

Your agent can also hand what it just built to the MobileBoost test agent, which tries it on one of our devices and reports a verdict, bugs and evidence, with no test code written. See [PR Testing on remote devices](https://docs.mobileboost.io/engineer-tooling/feature-testing.md).

## Read what happened on the device

A **session** is the record of one test run through a MobileBoost SDK (XCUI, Espresso, Appium TypeScript or Python). Every step it asked the agent to take is recorded with the prompt it was given, the agent's reasoning, the commands it issued, and the screenshot it was looking at.

Use `platform_list_sessions` to find sessions (filter by platform, status, test id, or a substring of either id), then `platform_get_session` to read the steps. It is the fastest way to answer "why did this fail?" without opening the dashboard, and it also lets an agent reconstruct what an older test actually does.

`platform_get_session` takes a `detail` level:

| Level | Returns |
| - | - |
| `prompts` | Just the natural-language instruction per step. The cheap choice when reconstructing a flow. |
| `standard` | Adds reasoning, the commands issued, and screenshot links. The default. |
| `full` | Adds the action history the agent was given. Usually only worth it when debugging a single step. |

Long sessions are paged with `stepOffset` and `stepLimit`, and the response reports `totalSteps` and `hasMoreSteps`.

> [!NOTE]
>
> Session tools are read-only. Nothing your agent does here can change a recorded run.

## Builds

Runs and generations need an app to install. There are two ways to name one:

* **`uploadId`** for an uploaded build. `platform_upload_build` takes a **public https URL** (a CI artifact, a presigned storage link) and downloads the file server-side, so the URL has to be reachable from the internet and point directly at the `.apk`, `.ipa`, `.zip` or `.tar.gz`. A build that only exists on your own disk cannot travel through MCP: POST it to [`/uploadBuild`](https://docs.mobileboost.io/api/getting-started) instead, then find it with `platform_list_builds`.
* **`bundleId`** for an app that is already installed on your organisation's reserved device, such as an App Store version on a dedicated handset. This needs the "run without a build" entitlement on your organisation. Ask your MobileBoost contact if you are not sure whether you have it.

With no build named at all, a generation targets every platform you have a build for.

## Available tools

All tools act on your MobileBoost organisation, the one your connection is signed in to.

| Tool | Scope | Description |
| - | - | - |
| `platform_list_tests` | `mcp:read` | List tests with id, title, tags, priority, folder, and automation state, overall and per platform. Filter by folder (with or without its subfolders, or `null` for the unfiled ones), tags, title substring, or automation state. |
| `platform_get_test` | `mcp:read` | Fetch one test: its description (the spec), tags, priority, dependencies, per-platform automation state, agent notes, and recent run history. |
| `platform_list_folders` | `mcp:read` | List the folders of the test library, each with its parent, its full path, and how many tests are in it counting its subfolders. |
| `platform_list_builds` | `mcp:read` | List uploaded builds, newest first, to find the `uploadId` that runs and generations take. |
| `platform_get_run_status` | `mcp:read` | Fetch an autotest run's status, and which tests succeeded, failed, or were blocked. |
| `platform_list_sessions` | `mcp:read` | List recent SDK sessions, newest first. |
| `platform_get_session` | `mcp:read` | Fetch one session with its steps: prompt, reasoning, commands, and screenshot. |
| `platform_list_env_vars` | `mcp:read` | List your environment variables: name, description, when each was last changed and last used. No value is returned. Admin only. |
| `platform_create_test` | `mcp:write` | Create a test from a plain-language description. Starts writing the automation automatically. |
| `platform_update_test` | `mcp:write` | Edit a test. Editing the description changes the spec, so it starts a regeneration; renaming or re-tagging does not. |
| `platform_set_test_tags` | `mcp:write` | Set, add, or remove tags on a test. |
| `platform_set_test_dependencies` | `mcp:write` | Replace the ordered list of tests that must run first, for example a login test before a checkout test. Cycles are refused. |
| `platform_delete_tests` | `mcp:write` | Delete tests permanently, and drop them from any surviving test's dependencies. |
| `platform_create_folder` | `mcp:write` | Create a folder, optionally nested inside another one. |
| `platform_update_folder` | `mcp:write` | Rename a folder, move it under another one, or both. |
| `platform_delete_folder` | `mcp:write` | Delete a folder. No test is deleted: its subfolders move up and its tests become unfiled. |
| `platform_move_tests` | `mcp:write` | File several tests into a folder at once, or unfile them. |
| `platform_upload_build` | `mcp:write` | Upload a build from a public https URL and return its `uploadId`. |
| `platform_run_tests` | `mcp:write` | Start an autotest run over tests selected by ids and/or tags. Returns a `runId`. |
| `platform_generate_test_automation` | `mcp:write` | Write or rewrite the pytest files for the given tests. Pass `platform` to retry one platform after a failed or blocked generation; the existing file is extended. Refused while the test is still being written on either platform. |
| `platform_cancel_test_automation` | `mcp:write` | Stop automation that is currently being written. |
| `platform_create_env_var` | `mcp:write` | Store a credential under a name, for your tests to read with `os.environ`. Write-only: no tool returns a value. Admin only. |
| `platform_update_env_var` | `mcp:write` | Rotate an environment variable's value, change its description, or both. Admin only. |
| `platform_delete_env_var` | `mcp:write` | Delete an environment variable and destroy its secret. Admin only. |

Clients that request only `mcp:read` see the eight read tools, and the write tools are hidden from them.

### Tags define your suites

`platform_run_tests` selects on tags, so tags are how a suite is defined. Tagging every checkout test `smoke` is what makes "run the smoke tests" a sentence your agent can act on.

### Folders keep the library readable

Folders are a tree, and your agent can rearrange it: ask it to file the tests it has just written, or to tidy a library that has grown flat. `platform_list_folders` gives it the whole tree in one call, each folder with its path (`Checkout / Payments`) and how many tests are in it.

A folder is a **label on a test, not a container that owns it**, which is what makes this safe to hand to an agent:

* deleting a folder deletes no test: its subfolders move up to its own parent, its tests become unfiled, and the result says which;
* moving a folder takes its subfolders and tests with it, and a move into its own subtree is refused;
* names are for people to read, so two folders may share one; everything that refers to a folder uses its id.

Use `platform_move_tests` for a batch, or `folderId` on `platform_create_test` and `platform_update_test` for one test. Changing a test's folder never starts a regeneration: it does not change what the test should do.

The same tree is on the API as [`/tests/folders`](https://docs.mobileboost.io/api/folders), so what your agent files is what the dashboard shows.

### Environment variables

A test that needs a login, an API key, or a staging base URL reads it from an **environment variable** rather than carrying it in its spec. Every variable your organisation has is set on the process that runs your tests, so generated code reads one with `os.environ["STRIPE_TEST_KEY"]`.

Your agent can manage them end to end:

* `platform_list_env_vars` returns names, descriptions, and when each was last changed and last used. It is how your agent finds out that the credential a new test needs is already there, under a name it should use.
* `platform_create_env_var` stores a value under a name. Ask your agent to add one, and give it the value when it asks.
* `platform_update_env_var` rotates the value, changes the description, or both. Omit the value and only the description changes, so a note can be fixed without anyone having to find the credential again.
* `platform_delete_env_var` removes a variable and destroys its secret.

Three things shape how this works, all deliberate:

**Values are write-only.** The value goes into a secret vault, and no tool or endpoint returns it, so an agent that has your whole test library still cannot read a credential back out. What comes back instead is a `fingerprint`: a salted hash, enough to tell whether two variables hold the same credential or whether a rotation landed, and useless for anything else. Compare the fingerprint before and after a rotation to confirm it took.

**Rotate rather than delete and recreate.** `platform_update_env_var` keeps the name, keeps the variable's history, and leaves the previous value recoverable for seven days. Deleting destroys the secret outright, and every test that reads the name then fails on a device rather than at the point you asked for it. Check `lastUsedAt` before deleting anything: a recent date means a run is still taking it. The name itself cannot be changed for the same reason a delete is dangerous - tests read a variable by name.

**Names are reserved where they would change how tests run.** Names are upper snake case, and anything the test runner or its runtime owns is refused with the reason: `PATH`, `HOME`, and every name starting with `PYTHON`, `LD_`, `DYLD_`, `AWS_`, `GOOGLE_`, `GPTDRIVER_` and similar. Setting those would change how the test process behaves rather than what it tests. Pick a different name rather than trying to work around the refusal.

All four tools need the **admin** role on your MobileBoost organisation (MobileBoost staff accounts pass too), the same rule the Environment variables screen follows: the list names every secret your organisation holds. A non-admin connection sees the tools and gets a refusal explaining why. Everything here is also on that screen, under **Settings > Environment variables**.

> [!NOTE]
>
> These are Platform environment variables, read by the generated test code. They are not the QA Studio [`{{env.KEY}}` values](https://docs.mobileboost.io/qa-studio/environment-variables), which are a separate feature on the QA Studio server.

### Verification rounds

`platform_generate_test_automation` takes `verificationRounds`: how many consecutive green runs a finished test has to produce before it is committed. It defaults to 3, and it is both the main quality dial and the main cost dial. Raise it for a flow you cannot afford to have flake, lower it when you are iterating quickly.

### One platform at a time

Both platforms share one test file, so a test has one agent writing it at a time. With no `platform` named, a generation writes the platforms in sequence: the first creates the file, the next adds its own selectors to it. Pass `platform` to write or retry a single platform, for example Android after `platform_list_tests` reports `platforms.android.state` as `failed` while iOS is `ready`. A request for a platform while either one is still `generating` is refused and names the busy platform; ask again once it has settled.

## Scopes

The server uses the same two OAuth scopes as the rest of MobileBoost:

* `mcp:read` - list and read tests, folders, builds, runs, sessions, and environment variable names
* `mcp:write` - create, update, delete, generate, upload, run, and manage environment variables

Most clients request both by default. To restrict an agent to read-only access, set the scope explicitly in your client config (see your client's documentation for the exact field).

## Platform MCP and QA Studio MCP

MobileBoost serves two separate MCP servers, and they cover different products:

| Server | URL | Covers |
| - | - | - |
| Platform | `https://api.mobileboost.io/platform-mcp` | Platform tests (specs plus generated pytest code), builds, autotest runs, SDK sessions |
| QA Studio | `https://api.mobileboost.io/mcp` | The QA Studio no-code tests and test suite runs |

Test ids are not interchangeable between them. You can connect both at once: the tool names on this server are all prefixed `platform_`, which is what keeps an agent from creating a QA Studio test when you asked for a Platform one.

> [card] [QA Studio MCP server](https://docs.mobileboost.io/engineer-tooling/mcp.md)
>
> Set up the MCP server for QA Studio no-code tests.


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