Mobile MCP: let AI agents drive your iOS and Android apps. MCP server for simulators, emulators and real devices. Works with Claude Code, Codex, Cursor and any MCP client.
TypeScript agentandroidandroid-automationappium-alternativeclaude-codecodexcursoremulatoriosios-automationmcpmcp-servermobilemobile-automationmobile-testingreal-devicesimulatorskills
feat: Agent Plugin packaging, mobile-automation skill, MCPB bundle + Smithery CI (#416)
Gil Megidishd76955776d99
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 64c356f..d6e94e7 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -68,6 +68,53 @@ jobs:mcp-publisher publishmcp-publisher logout+ publish_mcpb:+ # macos runner (arm64) so sharp bundles darwin-arm64 native libs;+ # the bundle targets macOS Apple Silicon to fit Smithery's 25MB cap+ runs-on: macos-latest+ needs: build+ if: github.ref_type == 'tag'+ permissions:+ contents: read++ steps:+ - uses: actions/checkout@v5+ with:+ persist-credentials: false++ - name: Use Node.js 24+ uses: actions/setup-node@v5+ with:+ node-version: '24'++ - name: Build+ run: |+ npm ci --ignore-scripts+ npm run build++ - name: Pack mcpb bundle (darwin-arm64)+ env:+ VERSION: ${{ github.ref_name }}+ run: |+ mkdir -p /tmp/mcpb-stage+ cp -r lib package.json package-lock.json manifest.json icon.png /tmp/mcpb-stage/+ cd /tmp/mcpb-stage+ node -e "const fs=require('fs');const m=JSON.parse(fs.readFileSync('manifest.json'));m.version=process.env.VERSION;fs.writeFileSync('manifest.json',JSON.stringify(m,null,'\t'))"+ npm version "$VERSION" --no-git-tag-version+ npm ci --omit=dev --ignore-scripts+ # trim to darwin-arm64: other platforms' mobilecli binaries and the+ # sharp wasm fallback push the bundle past Smithery's 25MB cap+ rm -f node_modules/mobilecli/bin/*windows* node_modules/mobilecli/bin/*linux* node_modules/mobilecli/bin/mobilecli-darwin-amd64+ rm -rf node_modules/@img/sharp-wasm32+ npx -y @anthropic-ai/mcpb pack . /tmp/mobile-mcp.mcpb+ ls -lh /tmp/mobile-mcp.mcpb++ - name: Publish to Smithery+ env:+ SMITHERY_API_KEY: ${{ secrets.SMITHERY_API_KEY }}+ run: |+ npx -y @smithery/cli mcp publish /tmp/mobile-mcp.mcpb -n mobile-next/mobile-mcp+e2e_test:runs-on: self-hostedneeds: builddiff --git a/README.md b/README.mdindex fd76d3f..efd3e09 100644--- a/README.md+++ b/README.md@@ -553,3 +553,9 @@ Please also review our [Code of Conduct](CODE_OF_CONDUCT.md).<a href = "https://github.com/mobile-next/mobile-mcp/graphs/contributors"><img src = "https://contrib.rocks/image?repo=mobile-next/mobile-mcp"/></a>++## Privacy Policy++Mobile MCP runs locally and communicates only with the devices you connect.+See the Mobile Next privacy policy at https://mobilenext.ai/privacy for data+collection, usage, retention, and contact information.diff --git a/icon.png b/icon.pngnew file mode 100644index 0000000..bd22ee7Binary files /dev/null and b/icon.png differdiff --git a/manifest.json b/manifest.jsonnew file mode 100644index 0000000..1faf622--- /dev/null+++ b/manifest.json@@ -0,0 +1,27 @@+{+ "manifest_version": "0.3",+ "name": "mobile-mcp",+ "display_name": "Mobile MCP",+ "version": "1.0.2",+ "description": "Mobile automation for AI agents: control Android and iOS devices, emulators and simulators — launch apps, tap, swipe, type, take screenshots, read the accessibility tree.",+ "author": {+ "name": "Mobile Next",+ "url": "https://mobilenext.ai"+ },+ "homepage": "https://mobilenext.ai/docs",+ "license": "Apache-2.0",+ "icon": "icon.png",+ "keywords": ["mobile", "android", "ios", "automation", "testing"],+ "compatibility": {+ "platforms": ["darwin"]+ },+ "privacy_policies": ["https://mobilenext.ai/privacy"],+ "server": {+ "type": "node",+ "entry_point": "lib/index.js",+ "mcp_config": {+ "command": "node",+ "args": ["${__dirname}/lib/index.js"]+ }+ }+}diff --git a/mcp.json b/mcp.jsonnew file mode 100644index 0000000..cc29542--- /dev/null+++ b/mcp.json@@ -0,0 +1,10 @@+{+ "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",+ "mcpServers": {+ "mobile-mcp": {+ "type": "stdio",+ "command": "npx",+ "args": ["-y", "@mobilenext/mobile-mcp@latest"]+ }+ }+}diff --git a/plugin.json b/plugin.jsonnew file mode 100644index 0000000..d457441--- /dev/null+++ b/plugin.json@@ -0,0 +1,13 @@+{+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",+ "name": "mobile-mcp",+ "description": "Mobile automation for AI agents: control Android and iOS devices, emulators and simulators — launch apps, tap, swipe, type, take screenshots, read the accessibility tree.",+ "author": {+ "name": "Mobile Next",+ "url": "https://mobilenext.ai"+ },+ "homepage": "https://mobilenext.ai/docs",+ "repository": "https://github.com/mobile-next/mobile-mcp",+ "license": "Apache-2.0",+ "keywords": ["mobile", "android", "ios", "automation", "testing", "mcp"]+}diff --git a/skills/mobile-automation/SKILL.md b/skills/mobile-automation/SKILL.mdnew file mode 100644index 0000000..b306e26--- /dev/null+++ b/skills/mobile-automation/SKILL.md@@ -0,0 +1,48 @@+---+name: mobile-automation+description: Control Android and iOS devices, emulators and simulators — launch apps, tap, swipe, type, take screenshots, read the accessibility tree. Use when a task involves a mobile device or app, mobile UI testing, or reproducing a bug on a phone.+metadata:+ openclaw:+ requires:+ bins:+ - npx+---++# Mobile Automation with Mobile MCP++Tools for driving real phones, emulators and simulators. All tools are+prefixed `mobile_`.++## Workflow++1. **Pick a device.** Call `mobile_list_available_devices` and use one of the+ returned devices for every subsequent call. If no device is available, ask+ the user to connect one (Android: `adb devices` must show it; iOS:+ simulator booted or device paired).+2. **See the screen.** Prefer `mobile_list_elements_on_screen` — it returns+ the accessibility tree with element labels and coordinates. It is faster,+ cheaper, and more reliable than screenshots. Fall back to+ `mobile_take_screenshot` only when elements are missing or you need visual+ confirmation (games, canvas-drawn UI, image content).+3. **Act.** `mobile_click_on_screen_at_coordinates`, `mobile_swipe_on_screen`,+ `mobile_type_keys`, `mobile_press_button` (HOME, BACK, VOLUME, ENTER),+ `mobile_launch_app` / `mobile_terminate_app` / `mobile_list_apps`,+ `mobile_open_url`.+4. **Verify after every action.** Re-list elements (or re-screenshot) to+ confirm the UI changed as expected before the next step. Mobile UIs+ animate; if the expected element is not there yet, wait briefly and check+ again rather than tapping blind.++## Tips++- Click the **center** of an element's bounds, not its top-left corner.+- To type, first tap the input field, confirm it is focused, then+ `mobile_type_keys`.+- Use `mobile_save_screenshot` when the user wants the image as a file;+ `mobile_start_screen_recording` / `mobile_stop_screen_recording` for videos.+- App crashed? `mobile_list_crashes` and `mobile_get_crash` fetch crash logs.+- Screen size from `mobile_get_screen_size`; coordinates are in that space.+- Real devices in the cloud (no local hardware): `mobile_login_to_cloud_provider`,+ then `mobile_list_remote_devices` / `mobile_allocate_remote_device`, and+ release with `mobile_release_remote_device` when done. See+ https://mobilenext.ai/docs for details.