Skip to main content
OpenCode is an open-source coding agent. Connect Mobilerun so its agent can inspect a phone and run mobile tasks.

Setup

  1. Set up a phone and install OpenCode.
  2. Register the remote MCP server from your project directory using OpenCode v2:
    Alternatively, merge this into opencode.json:
    opencode.json
  3. Run opencode mcp auth mobilerun and complete sign-in. Configuration differs in older versions.
Alternatively, use the mobile-harness skill for Python-based device control.

First task

List my Mobilerun devices and take a screenshot of the ready device.
Review tool permissions before approving actions. See MCP Server for available tools and authentication. See the OpenCode v2 MCP documentation.