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: support remote devices (#273)
Gil Megidish62c9ff4614f2
diff --git a/package-lock.json b/package-lock.jsonindex a1768fc..ec74e02 100644--- a/package-lock.json+++ b/package-lock.json@@ -46,7 +46,7 @@"node": ">=18"},"optionalDependencies": {- "@mobilenext/mobilecli": "0.0.54"+ "@mobilenext/mobilecli": "0.1.59"}},"node_modules/@babel/code-frame": {@@ -755,9 +755,9 @@}},"node_modules/@mobilenext/mobilecli": {- "version": "0.0.54",- "resolved": "https://registry.npmjs.org/@mobilenext/mobilecli/-/mobilecli-0.0.54.tgz",- "integrity": "sha512-cOddXY+EA6KsTx7cBU3qnGLYhiWI98ZUBE9qmpKj2QngWdGzOT5Uy/K2aTBKz5sRXhL7KT3jPSkbbpg3AlMhqQ==",+ "version": "0.1.59",+ "resolved": "https://registry.npmjs.org/@mobilenext/mobilecli/-/mobilecli-0.1.59.tgz",+ "integrity": "sha512-kzLw4v1nbHQgfiyUYsQQ39aR8p6La+W1v8YBtQPk7Z+IGL7FMWvHK+sK5vWrXSj7MuQXp22/ZY2rOrcndW+drQ==","license": "MIT","optional": true,"bin": {diff --git a/package.json b/package.jsonindex 8278ef9..f91bbb7 100644--- a/package.json+++ b/package.json@@ -34,7 +34,7 @@"zod-to-json-schema": "3.25.0"},"optionalDependencies": {- "@mobilenext/mobilecli": "0.0.54"+ "@mobilenext/mobilecli": "0.1.59"},"devDependencies": {"@eslint/eslintrc": "^3.2.0",diff --git a/src/mobilecli.ts b/src/mobilecli.tsindex 7df96f8..2af0f43 100644--- a/src/mobilecli.ts+++ b/src/mobilecli.ts@@ -104,6 +104,18 @@ export class Mobilecli {}}+ fleetListDevices(): string {+ return this.executeCommand(["fleet", "list-devices"]);+ }++ fleetAllocate(platform: "ios" | "android"): string {+ return this.executeCommand(["fleet", "allocate", "--platform", platform]);+ }++ fleetRelease(deviceId: string): string {+ return this.executeCommand(["fleet", "release", "--device", deviceId]);+ }+getDevices(options?: MobilecliDevicesOptions): MobilecliDevicesResponse {const args = ["devices"];diff --git a/src/server.ts b/src/server.tsindex 3c7d7b5..62a0e6d 100644--- a/src/server.ts+++ b/src/server.ts@@ -256,6 +256,53 @@ export const createMcpServer = (): McpServer => {);+ if (process.env.MOBILEFLEET_ENABLE === "1") {+ tool(+ "mobile_list_fleet_devices",+ "List Fleet Devices",+ "List devices available in the remote fleet",+ {+ noParams+ },+ { readOnlyHint: true },+ async ({}) => {+ ensureMobilecliAvailable();+ const result = mobilecli.fleetListDevices();+ return result;+ }+ );++ tool(+ "mobile_allocate_fleet_device",+ "Allocate Fleet Device",+ "Reserve a device from the remote fleet",+ {+ platform: z.enum(["ios", "android"]).describe("The platform to allocate a device for"),+ },+ { destructiveHint: true },+ async ({ platform }) => {+ ensureMobilecliAvailable();+ const result = mobilecli.fleetAllocate(platform);+ return result;+ }+ );++ tool(+ "mobile_release_fleet_device",+ "Release Fleet Device",+ "Release a device back to the remote fleet",+ {+ device: z.string().describe("The device identifier to release back to the fleet"),+ },+ { destructiveHint: true },+ async ({ device }) => {+ ensureMobilecliAvailable();+ const result = mobilecli.fleetRelease(device);+ return result;+ }+ );+ }+tool("mobile_list_apps","List Apps",