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: detect arch on macos and run the correct binary
gmegidish21b6b5ba6105
diff --git a/src/mobilecli.ts b/src/mobilecli.tsindex 804f66d..6478540 100644--- a/src/mobilecli.ts+++ b/src/mobilecli.ts@@ -6,24 +6,31 @@ export const getMobilecliPath = (): string => {return process.env.MOBILECLI_PATH;}+ const arch = process.arch;const platform = process.platform;let binaryName = "mobilecli";switch (platform) {case "darwin":- binaryName += "-darwin";+ if (arch === "arm64") {+ binaryName += "-darwin-arm64";+ } else {+ binaryName += "-darwin-amd64";+ }break;+case "linux":- const arch = process.arch;if (arch === "arm64") {binaryName += "-linux-arm64";} else {binaryName += "-linux-amd64";}break;+case "win32":binaryName += "-windows-amd64.exe";break;+default:throw new Error(`Unsupported platform: ${platform}`);}