pitbox
Runs, drives, and debugs Android apps on configured emulators and physical devices, including launching apps, taking text snapshots, and executing flows.
Runs, drives, and debugs Apple apps on simulators, using configured bundle IDs for launching, snapshots, and flow-based checks.
Helps manage Docker-backed app services in the local test stand, including starting/stopping Docker Compose services and checking Docker container health.
Supports Metro as a dev-server adapter for React Native projects, with configurable root and bytecode settings.
Provides extra instrumentation inside React Native apps, including React render visibility, network logs, console access, eval, logpoints, and hot updates.
Provides a Swift connect library for integrating Swift apps with pitbox so they can be driven and debugged on Apple platforms.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
pitbox
Run, drive and debug apps on emulators, simulators and devices from one MCP server — fast and token-lean.
pitbox gives a coding agent (and you) one tool for the whole local loop: the stand your app talks to, the devices it runs on, and the checks that tell you what is broken. It works with any framework; React Native gets extra reach inside the app.
Phones, foldables, tablets, TVs, watches, XR headsets, glasses and cars — Android emulators and devices, Apple simulators, native apps on the Mac, and web apps in a browser, behind the same tools.
Answers an agent can afford — the screen as short lines with refs, actions that wait for the UI to settle and reply with what changed, images only on request.
Flows — a line-per-step script run by the daemon: a whole pass in one call, one verdict.
Checks instead of screenshots — is the video playing, does the screen match its baseline, can the D-pad reach everything, which function made the frame janky.
The stand — services, mocks and backend states started from one config and kept warm between sessions.
Push notifications with no credentials —
pushon simulators and emulators, through the app's own FCM client on Android; a one-line verdict from the system UI,push tapto open it, and a gateway that takes the APNs and FCM requests of the project's server.Media — sound into the microphone, what the app plays captured and checked, screen recordings around a flow, the camera fed a picture or a clip, the gallery, phone calls and permissions.
Parallel sessions — every device is leased to the session that drives it: another session's simulator is never shut down or driven, and
bootgives each session a device of its own.Inside a React Native app with no app code — fresh code or stale, the network log and rules, the console,
evaland logpoints, hot updates, React renders.
Speed
What pitbox does to devices and builds by default, measured on an Apple-silicon Mac: before is the same step without it. Details and method: slim devices, warm templates and native builds.
Android emulator (API 36 Google APIs phone image, 2 GB, headless; median of three boots):
Before | pitbox | |
Boot | 15.0 s | 12.9 s |
Settings cold start | 207 ms | 117 ms |
App processes running | 46 | 28 |
Guest swap in use | 583 MB | 200 MB |
Emulator CPU while idle | 0.15 cores | 0.08 cores |
Shutdown | 3.1–3.8 s | 2.1 s |
Written to disk at every shutdown | 2.6 GB | none |
Background dexopt starting mid-run | 21 s at ~3 cores | never |
iOS simulator (iPhone 17, iOS 27.2):
Before | pitbox | |
Processes running | 207 | 122 |
Memory footprint on the Mac | 8.5 GB | 4.5 GB (3.8 GB with widgets off) |
A second session's own simulator: boot | 12.0–13.2 s | 1.9–2.0 s |
… boot to the app's first screen | 29.1–32.1 s | 21.6–22.9 s |
… its CPU over the minute after | 0.24–0.28 cores | 0.02–0.16 cores |
First UI action, 20 s or more after the boot | 17 s | 2.6 s |
iOS UI actions (the Apple example on an iPhone 17 Pro simulator, iOS 27.2; median of five):
Before | pitbox | |
Tap | 395 ms | 249 ms |
Fill a field | 3.67 s | 2.87 s |
Fill a field with a sentence | 5.39 s | 4.77 s |
Press a button under the keyboard after a fill | 3.10 s | 1.74 s |
Press that changes nothing | 2.25 s | 0.90 s |
Snapshot | 166 ms | 68 ms |
A call's time outside its action (finding the device, the crash check) | 340 ms | 40 ms |
UI runner start, to the first snapshot | 14.1 s | 3.4 s |
… after a daemon restart (the running runner is taken over) | 14.1 s | 0.24 s |
Relaunch of the app and the first snapshot after it | 2.49 s | 1.78 s |
A crash macOS saves no report of (it keeps 25 per app): the answer | after a 60 s wait | within 4 s |
Android UI actions (the Android example on an API 36 phone emulator; median of five, each call through the daemon):
Before | pitbox | |
Press that changes nothing | 1.58 s | 0.72 s |
Press that changes the screen | 0.40–0.68 s | 0.26 s |
Snapshot | 137 ms | 42 ms |
A call's time outside its action (finding the device) | 25–110 ms | 12 ms |
An action that changed nothing watches the screen 0.6 s after its input instead of 1.2 s; a later effect still reaches a flow, whose next step waits for the target it brings (features).
Native builds (the React Native example; once built, every checkout and session on the Mac reuses the build):
Android | iOS | |
Build | 12.0 s | 16.1 s |
Again, same native inputs | 0.24 s | 0.37 s |
After a JS-only edit | 0.08 s | 0.11 s |
In another checkout of the app | 0.26 s | 0.16 s |
Related MCP server: mobile-mcp
Quick start
yarn add -D @veksa/pitbox
npx pitbox init # writes pitbox.config.ts from what it finds in the projectAdd the MCP server to the project's .mcp.json:
{"mcpServers": {"pitbox": {"command": "npx", "args": ["pitbox", "mcp"]}}}Or drive it from the shell:
pitbox up # the stand: services, dev server
pitbox boot # the configured emulator, ports forwarded
pitbox open # launch the app
pitbox snapshot # the screen as text
pitbox run smoke # flows/smoke.flow, one verdictA config by hand:
// pitbox.config.ts
import {defineConfig} from '@veksa/pitbox';
export default defineConfig({
app: {android: 'com.example.app', apple: 'com.example.app'},
android: {avd: 'Pixel_8'},
services: {
db: {start: 'docker compose up -d db', stop: 'docker compose stop db', health: 'docker:db'},
api: {start: 'yarn --cwd server start', health: 'http://localhost:3000/health', expose: 3000, dependsOn: ['db']},
},
devserver: {adapter: 'metro', root: 'mobile', bytecode: true},
});Documentation
requirements, the MCP server, connect libraries for React Native, Swift and Android | |
everything pitbox does, by area | |
every field of | |
the flow language: steps, selectors, recording | |
| |
microphone, sound out, screen recording, camera, gallery, calls; what each platform can do | |
a phone and a Wear OS emulator paired through pitbox's Data Layer stand-in | |
how an agent gets the most out of the tools | |
device leases: several sessions on one machine, each on its own device | |
what pitbox measures and how | |
sample Android, Apple and React Native apps with their flows |
Contributing
See CONTRIBUTING.md.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Cloud iOS simulators and Android emulators your agent can create, drive, and throw away.
Drive real devices from your AI Coding tool. Embed a client SDK (Unity, Godot, Flutter, iOS/macOS, Android, React Native, Web) in your app, then capture screenshots, traverse the UI tree, inject taps and key events, and run automated test tasks on the physical device over a secure relay.
Agents that test your web and mobile app like real users, on every pull request.
Agents that test your web and mobile app like real users, on every pull request.
Related MCP Servers
AlicenseAqualityBmaintenanceRun several AI coding agents on one machine, each with its own ports, dev servers, database and simulator, emulator or browser. Works with Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI and Antigravity, on web, iOS and Android.3609 npm2MIT- AlicenseBqualityBmaintenanceEnables agents and LLMs to automate and develop native iOS and Android apps across simulators, emulators, and real devices through a single platform-agnostic, accessibility-first interface. Provides taps, swipes, text input, app install/launch, screenshots, screen recording, device logs, and crash reports without requiring any iOS- or Android-specific expertise.35Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables coding agents to list and boot iOS Simulators and Android Emulators, capture screenshots, drive device interactions through accessibility snapshots, and end sessions.MIT
- AlicenseAqualityBmaintenanceEnables AI coding agents to QA mobile apps on Android emulators and iOS simulators by booting devices, installing and launching apps, exercising real user flows, and producing reports with screenshots, logs, and UI dumps.55119 npmMIT