Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
* [Upload](cli/dcd-upload.md)
* [List](cli/dcd-list.md)
* [Login & Accounts](cli/dcd-login.md)
* [Settings](cli/dcd-settings.md)
* [Devices](cli/dcd-device.md)
* [Exit Codes](advanced/exit-codes.md)
* [Live Sessions](cli/dcd-live.md)
Expand All @@ -79,6 +80,7 @@
* [Uploads](api/uploads.md)
* [Results](api/results.md)
* [Flows](api/flows.md)
* [Team Settings](api/team-settings.md)
* [Device Sessions](api/device-sessions.md)
* [IP Addresses](api/ip-addresses.md)

Expand Down
1 change: 1 addition & 0 deletions api/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Check the `statusCode` field in the body as well as the HTTP status. A malformed
| [Uploads](uploads.md) | List uploads and poll run status |
| [Results](results.md) | Fetch results, reports, and artifacts for an upload |
| [Flows](flows.md) | Aggregated analytics and run history per flow file |
| [Team Settings](team-settings.md) | How your team is set up: concurrency, test runtime, integrations and more |
| [Device Sessions](device-sessions.md) | Start a device and drive it, for AI agents |
| [IP Addresses](ip-addresses.md) | Current egress IPs for firewall allow-listing (no API key required) |

Expand Down
76 changes: 76 additions & 0 deletions api/team-settings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Team Settings

The team settings endpoint returns how your team is set up: its concurrency limits, test runtime, sign-in requirement, retry escalation, overage limit and connected integrations. These are the settings the console shows under **Settings**.

It is read-only. Change settings in the console.

---

## Get team settings

```
GET /org/settings
```

Takes no parameters. An API key or any team member's login session can call it.

Some settings are shown only to team owners and admins in the console, and the API follows the same rule. For a standard member, `restricted` is `true` and `signInRequirement`, `retryEscalation` and `overage` are `null`. API keys see every setting.

**Example**

```bash
curl "https://api.devicecloud.dev/org/settings" \
-H "x-app-api-key: <key>"
```

**Response**

```json
{
"orgId": 7,
"name": "Acme",
"restricted": false,
"concurrency": {
"runners": [
{ "platform": "ios", "runnerType": "m4", "min": 0, "max": 2 },
{ "platform": "android", "runnerType": "gpu1", "min": 0, "max": 0 }
],
"pools": [
{
"name": "standard",
"min": 2,
"max": 12,
"members": [
{ "platform": "ios", "runnerType": "default" },
{ "platform": "android", "runnerType": "cpu1" }
]
}
]
},
"testRuntime": { "defaultMinutes": 10, "extendedMinutes": 20 },
"integrations": { "webhook": true, "slack": false, "github": true },
"signInRequirement": "passkey",
"retryEscalation": { "available": true, "target": "m1", "enabled": true },
"overage": { "hasSubscription": true, "limitUsd": 200 }
}
```

**Fields**

| Field | Description |
|-------|-------------|
| `orgId` | Your team's ID. It's the value a login session sends in `x-dcd-org`. |
| `name` | Your team's name, or `null` if it has none. |
| `restricted` | `true` when the caller is a standard member. The owner and admin settings below are then `null`. |
| `concurrency.runners` | Each runner type with its own limit. `min` is how many tests can always run at once, and `max` is how many can run when capacity allows. `max: 0` means the runner type isn't enabled for your team. See [Concurrency & Parallel Runs](../getting-started/concurrency-and-parallel-runs.md). |
| `concurrency.pools` | Limits that several runner types share. A runner type in a pool is listed under the pool, not in `runners`. |
| `testRuntime.defaultMinutes` | How long a flow can run by default. |
| `testRuntime.extendedMinutes` | How long a flow can run with [Extended Runtime](../configuration/extended-runtime.md), or `null` when extended runtime is off for your team. |
| `integrations` | Whether a [webhook](../notifications/webhook-notifications.md), [Slack](../notifications/slack-notifications.md) and [GitHub](../ci-cd/github-checks.md) are connected. |
| `signInRequirement` | How members must sign in to reach the team: `off`, `two_factor`, `passkey` or `passkey_and_code`. Owners and admins only. |
| `retryEscalation` | Owners and admins only. `available` says whether retry escalation can be turned on for your team. `target` is the runner type an Android test moves to when it is retried after an infrastructure failure (`m1` or `gpu1`). `enabled` says whether it is on. |
| `overage` | Owners and admins only. `hasSubscription` says whether the team has an active subscription. `limitUsd` is your [Overage Limit](../billing/overage.md#overage-limit) in US dollars per billing period, on top of your included credits, or `null` when it's uncapped or there's no subscription. |

A key limited to **Device sessions only** can't call this endpoint. It gets `403` with `"error": "API_KEY_SCOPE"`.

From the CLI, run [`dcd settings`](../cli/dcd-settings.md). AI agents can call the [`dcd_get_team_settings`](../mcp/tools.md#dcd-get-team-settings) MCP tool.
60 changes: 60 additions & 0 deletions cli/dcd-settings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# dcd settings

Show how your team is set up: concurrency limits, test runtime, sign-in requirement, retry escalation, overage limit and connected integrations. It reads the same settings the console shows under **Settings**.

`dcd settings` is read-only. Change settings in the console.

```bash
dcd settings
```

```
⏺ Team
⎿ name Acme
org id 7
sign-in requirement a passkey

⏺ Concurrency
⎿ iOS m4 min 0 · max 2
Android gpu1 not enabled
standard pool min 2 · max 12
standard pool is shared by iOS default and Android cpu1
min: always available · max: when capacity allows

⏺ Test Runtime
⎿ default 10 min per flow
extended 20 min per flow with EXTENDED_RUNTIME, charged at twice the rate

⏺ Retries & Billing
⎿ retry escalation on · Android retries move to M1 runners
overage limit $200 per billing period, on top of included credits

⏺ Integrations
⎿ webhook connected
slack not connected
github connected
```

## Owner and admin settings

The sign-in requirement, retry escalation and overage limit are shown only to team owners and admins, as in the console. A standard member sees `owner or admin only` for those three. An API key sees every setting.

## Flags

| Flag | Description |
|------|-------------|
| `--json` | Print the settings as one JSON object, the same object [`GET /org/settings`](../api/team-settings.md#get-team-settings) returns. |
| `--api-key` | API key to use instead of your `dcd login` session. Defaults to the `DEVICE_CLOUD_API_KEY` environment variable. |
| `--api-url` | API to talk to. Defaults to the one you logged in to, then `https://api.devicecloud.dev`. |

Without an API key, `dcd settings` uses your `dcd login` session and shows the team you have selected. Switch teams with `dcd switch-org`. See [Login & Accounts](dcd-login.md).

```bash
dcd settings --json | jq '.concurrency'
```

## Related

* [Concurrency & Parallel Runs](../getting-started/concurrency-and-parallel-runs.md)
* [Extended Runtime](../configuration/extended-runtime.md)
* [Overage Limit](../billing/overage.md#overage-limit)
2 changes: 1 addition & 1 deletion mcp/connect.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ With a `dcd login` session, the server works in your active team, the one [`dcd
The `dcd_*` tools are in beta, so they may change.
:::

`dcd mcp` serves the `dcd_*` tools: list devices, submit a cloud test run, list recent runs, check a run's status and download its artifacts. [Cloud Test Tools](tools.md) describes each one.
`dcd mcp` serves the `dcd_*` tools: list devices, submit a cloud test run, list recent runs, check a run's status, download its artifacts and read your team's settings. [Cloud Test Tools](tools.md) describes each one.

If your team is in the [Agent Devices](agent-devices.md) beta, `dcd mcp` also serves the device tools, which start and drive cloud devices. It passes them through from the hosted server, and adds what only a local process can do: `install_app` takes `app_path`, a build on your machine, and `run` takes `path`, a flow file or a directory of flows. [Agent Devices Tools](agent-devices-tools.md) describes each one.

Expand Down
3 changes: 2 additions & 1 deletion mcp/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@ A `dcd login` session ends 30 days after you log in, or after 7 days without use

## Tools

The server exposes five tools. Four are read-only; `dcd_run_cloud_test` submits a run and is billable.
The server exposes six tools. Five are read-only; `dcd_run_cloud_test` submits a run and is billable.

| Tool | What it does |
|------|--------------|
| [`dcd_list_devices`](tools.md#dcd-list-devices) | Discover available devices, OS versions, and Maestro versions |
| [`dcd_list_runs`](tools.md#dcd-list-runs) | List recent test runs (filter by name/date, paginated) |
| [`dcd_get_status`](tools.md#dcd-get-status) | Get the status and per-test results of a run |
| [`dcd_download_artifacts`](tools.md#dcd-download-artifacts) | Download a run's artifacts zip, and optionally a report, to disk |
| [`dcd_get_team_settings`](tools.md#dcd-get-team-settings) | Read your team's settings: concurrency, test runtime, integrations and more |
| [`dcd_run_cloud_test`](tools.md#dcd-run-cloud-test) | Submit a flow to run on the cloud (**billable**) |

See [Cloud Test Tools](tools.md) for every parameter, default, and return shape.
Expand Down
8 changes: 8 additions & 0 deletions mcp/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ Download a completed run's artifacts zip (videos, logs and screenshots) to local

Returns `{ uploadId, artifactsPath, reportPath, warnings }`. A **non-empty `warnings` array means a download could not be produced** — most often because the run has no results yet. An empty array means success. See [Artifacts & Downloads](../artifacts/artifacts.md) and [Report Formats](../artifacts/report-formats.md).

## dcd_get_team_settings

Read how your team is set up: concurrency limits, test runtime, sign-in requirement, retry escalation, overage limit and connected integrations. It changes nothing, so it stays available in [read-only mode](connect.md#read-only-mode). An agent can use it to check limits before it plans a run.

Takes no parameters.

Returns `{ orgId, name, restricted, concurrency: { runners, pools }, testRuntime: { defaultMinutes, extendedMinutes }, integrations: { webhook, slack, github }, signInRequirement, retryEscalation, overage }`, the same object as [`GET /org/settings`](../api/team-settings.md#get-team-settings) and `dcd settings --json`. When `restricted` is `true` (a standard team member), `signInRequirement`, `retryEscalation` and `overage` are `null`. Owners, admins and API keys see them.

## dcd_run_cloud_test

Submit a Maestro flow, or a directory of flows, to run on DeviceCloud.
Expand Down
Loading
Loading