
Devicecloud
- Updated July 25, 2026
- RubenGlez/devicecloud-mcp
DeviceCloud is a MCP server that queries Maestro test uploads, results, analytics, and artifacts on DeviceCloud.
About
DeviceCloud MCP is a stdio npm server that lets coding agents query Maestro-oriented mobile test data hosted on DeviceCloud: uploads, results, analytics, and downloadable artifacts. developers shipping iOS or Android apps with Maestro flows use it during testing to diagnose flaky runs, summarize regression status, and pull evidence into fix PRs without opening five browser tabs. You generate a DeviceCloud API key in the console, set DEVICE_CLOUD_API_KEY as a secret env var, and register devicecloud-mcp in Claude Code or Cursor. The integration assumes you already upload Maestro suites to DeviceCloud; the MCP layer is read-oriented operational visibility. Intermediate setup reflects secret handling and mapping cloud run IDs to the branches you care about.
- devicecloud-mcp npm package v0.1.2 with stdio transport
- Requires DEVICE_CLOUD_API_KEY from console.devicecloud.dev/settings
- Surfaces Maestro test uploads, results, analytics, and artifacts
- Purpose-built for DeviceCloud—not a generic device farm abstraction
Devicecloud by the numbers
- Data as of Jul 26, 2026 (Skillselion catalog sync)
claude mcp add --env DEVICE_CLOUD_API_KEY=YOUR_DEVICE_CLOUD_API_KEY devicecloud-mcp -- npx -y devicecloud-mcpAdd your badge
Show developers this MCP server is listed on Skillselion. Paste this into your README.
| Package | devicecloud-mcp |
|---|---|
| Transport | STDIO |
| Auth | Required |
| Last updated | July 25, 2026 |
| Repository | RubenGlez/devicecloud-mcp ↗ |
What it does
Query Maestro mobile test uploads, pass-fail results, analytics, and artifacts from DeviceCloud without leaving your agent.
Who is it for?
Best when you use Maestro plus DeviceCloud and want MCP-native access to test history during release prep.
Skip if: Skip if you have no Maestro workflow or and only need local emulator control without a DeviceCloud account.
What you get
Your agent can list runs, inspect outcomes, and reference artifacts so you close test regressions faster before launch.
- Queryable test run results and analytics in agent threads
- References to artifacts for debugging failed Maestro flows
By the numbers
- Server version 0.1.2, npm identifier devicecloud-mcp
- 1 required secret env: DEVICE_CLOUD_API_KEY
- 4 query domains: uploads, results, analytics, artifacts
README.md
devicecloud-mcp
A small MCP server that exposes DeviceCloud as tools that any MCP-aware assistant — Claude Code, Cursor, Claude Desktop, etc. — can call directly. DeviceCloud is a platform for running Maestro flows on real devices.
It lets the assistant:
- list recent Maestro uploads, filter by name (commit message + short SHA) or date
- read the per-flow status and
failReasonfor any upload - pull the JUnit XML report
- download and auto-unzip the HTML report (with failure screenshots highlighted)
- download raw artifacts (logs, screenshots, video) as a zip
- query per-flow pass-rate analytics over a lookback window
- drill into run history for a specific flow file
The server is read-only against the DeviceCloud API.
Install
Add this to your MCP client config:
{
"mcpServers": {
"devicecloud": {
"command": "npx",
"args": ["-y", "devicecloud-mcp"],
"env": {
"DEVICE_CLOUD_API_KEY": "<your-key>"
}
}
}
}
Get your API key at console.devicecloud.dev/settings.
Configure your assistant
The config block above is the same for every client — only the file location differs.
Claude Code (project-scoped, .mcp.json)
Add to a .mcp.json at the root of any project where you want the tools available:
{
"mcpServers": {
"devicecloud": {
"command": "npx",
"args": ["-y", "devicecloud-mcp"],
"env": {
"DEVICE_CLOUD_API_KEY": "${DEVICE_CLOUD_API_KEY}"
}
}
}
}
Then export the key from your shell profile so Claude Code's child process inherits it:
# ~/.zshrc or ~/.bashrc
export DEVICE_CLOUD_API_KEY="<your-key>"
Setting it only in an interactive shell isn't enough — Claude Code spawns the MCP from its own environment, so the variable needs to be in the profile.
Claude Code (user-scoped, ~/.claude.json)
If you want it available everywhere instead of per-project, add the same devicecloud block under mcpServers in ~/.claude.json.
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows). Restart Claude Desktop after saving — a tools icon appears in the chat input once the server connects.
Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json at the project root (project-scoped).
Windsurf
Edit ~/.codeium/windsurf/mcp_config.json.
Other MCP-compatible clients
Any client that supports stdio MCP servers uses the same { command, args, env } shape. Consult the client's docs for the config file location.
Note: OpenAI products (ChatGPT, Codex, the Assistants API) use their own tool protocol and do not support MCP servers.
Verify
After restarting your assistant:
List recent DeviceCloud uploads, limit 3.
You should see a JSON-shaped response with an uploads array. If instead you get DEVICE_CLOUD_API_KEY env var is required, the variable isn't reaching the spawned process — re-check that it's exported from your shell profile (not just the current shell).
Available tools
| Tool | Purpose |
|---|---|
list_uploads |
List recent uploads. Filter by name (* wildcard), from, to, limit, offset. |
get_upload_status |
Overall status + per-test status, duration, failReason. Provide uploadId or name. |
get_results |
Per-flow rows for one upload: id, test_file_name, status, fail_reason, duration_seconds, retry_of. Optional client-side status filter. |
get_junit_report |
Raw JUnit XML for an upload. |
get_html_report |
Downloads + auto-unzips the HTML report. Returns the extraction dir and an inventory with failureScreenshots[] highlighted (these are the highest-signal debugging artifact). |
download_artifacts |
Zip of raw artifacts (logs, screenshots, video). results: "FAILED" (default) or "ALL". Saves to /tmp by default; not auto-unzipped. |
list_flow_analytics |
Per-flow pass rate, run counts, avg duration over a lookback window (default 14 days). Useful to tell flakes from genuinely-broken flows. |
get_flow_runs |
Individual run history for one flow file (fileName required). Returns status, duration, failReason, and the uploadId each run belongs to. Use to drill into a specific flow after list_flow_analytics. |
Upload-naming convention
Uploads are typically named after the commit or build that triggered them. A common convention is to include the short SHA:
fix(login): handle expired session (a1b2c3d4)
Filter with name = "*a1b2c3d4*" to find every upload for a specific commit. The wildcard is *, not %.
When uploads do and don't exist
DeviceCloud uploads are created when you trigger a run — via the CLI, a CI step, the GitHub Action, or the API directly. Whether a given commit has an upload depends entirely on your CI setup. If list_uploads returns nothing for a SHA you expect, the run probably wasn't triggered for that commit.
Troubleshooting
DEVICE_CLOUD_API_KEY env var is required— the variable isn't visible to the spawned MCP. Export it from~/.zshrc/~/.bashrc, restart your assistant.unzip failed(fromget_html_report) — theunzipbinary is missing or crashed. Install withbrew install unzip(macOS ships with it; Linux usually does too).- HTTP 401 / 403 — the API key is wrong or revoked. Regenerate it at console.devicecloud.dev/settings.
- Empty
list_uploadsfor your SHA — a run probably wasn't triggered for that commit. See "When uploads do and don't exist" above.
Recommended MCP Servers
How it compares
Maestro/DeviceCloud test observability MCP, not an in-editor unit-test runner skill.
FAQ
Who is DeviceCloud MCP for?
and small teams running Maestro mobile tests on DeviceCloud who want Claude Code or Cursor to read uploads, results, and artifacts.
When should I use DeviceCloud MCP?
Use it in ship-phase testing when reviewing CI uploads, summarizing failures, or pulling analytics before you tag a release.
How do I add DeviceCloud MCP to my agent?
Create an API key at console.devicecloud.dev/settings, set DEVICE_CLOUD_API_KEY, add stdio devicecloud-mcp to MCP config, and restart your agent.