What callstackincubator/agent-device does
callstackincubator/agent-device acts as an MCP discovery router for the agent-device command-line tool. Its purpose is to help an AI coding agent identify the available device-automation setup and understand how to use it, rather than replacing the full agent-device runtime with a separate execution layer.
The server covers workflows involving iOS, Android, HarmonyOS, tvOS, Android TV, Fire TV, Amazon Vega OS TV, web, macOS, and Linux. Those workflows can involve simulators, emulators, physical devices, or remote device services, depending on the surrounding agent-device setup.
How it works
The MCP entry point is started with the agent-device mcp command. It communicates over standard input and output and exposes the installed agent-device commands as structured MCP tools. This lets compatible coding agents use MCP rather than manually constructing shell commands, while retaining the CLI’s execution path and session model.
The router provides status information, installation guidance, help selected for the installed agent-device version, reusable prompts, and resources. Version-matched help is useful when command behavior or available options depend on the locally installed CLI. The resulting guidance can direct an agent toward workflows such as debugging, replay, profiling, or device setup.
Agent-device itself represents device state through sessions. Its wider command set can inspect accessibility snapshots, interact with visible controls, capture screenshots and video, collect logs and traces, gather performance or crash data, and save repeatable workflows. The MCP server provides the discovery surface for those capabilities; the CLI and its related APIs provide the underlying operations.
Setup and configuration
Install the agent-device package globally with npm, then verify the environment before connecting an MCP client:
npm install -g agent-device@latest
agent-device doctor
agent-device mcp
An MCP client can launch the server with a configuration equivalent to:
{
"mcpServers": {
"agent-device": {
"command": "agent-device",
"args": ["mcp"]
}
}
}
Node.js 22.12 or newer is required. Web automation requires Node.js 24 or newer. The agent-device doctor command should be run before handing the environment to an agent, because device targets and platform tooling need to be available separately.
Tools and capabilities
The discovery surface includes:
- Status checks for the agent-device installation and environment.
- Installation and setup guidance for supported automation targets.
- Help content selected for the installed CLI version.
- Prompts that describe common debugging, replay, and profiling workflows.
- Resources that provide agent-device guidance and workflow references.
- MCP access to the installed command path through the official stdio server.
The broader agent-device toolset can be used to inspect accessibility trees, act through refs and selectors, fill fields, press controls, wait for UI state, capture evidence, and save replay scripts. Accessibility refs are tied to the latest command output, so an agent should use updated refs after settled interactions.
Limitations and notes
This server is most useful when the agent-device CLI and its platform-specific dependencies are installed and reachable from the MCP process. Device access, application builds, simulators, emulators, physical devices, and remote clouds remain environmental concerns rather than resources supplied by the MCP router.
The quality of UI inspection depends on the application’s accessibility tree, labels, roles, and test identifiers. Screenshots or video may be needed when accessibility data is incomplete. Available commands and evidence types can vary by target platform. The package is licensed under MIT.