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: adding iphone simulator support
gmegidish7c224e4c58bf
diff --git a/package-lock.json b/package-lock.jsonindex 85f6716..9a5a4c9 100644--- a/package-lock.json+++ b/package-lock.json@@ -11,6 +11,7 @@"dependencies": {"@modelcontextprotocol/sdk": "^1.6.1","commander": "^13.1.0",+ "fast-xml-parser": "^5.0.9","webdriverio": "^9.12.2","zod-to-json-schema": "^3.24.4"},@@ -2009,6 +2010,24 @@"node": ">=18.0.0"}},+ "node_modules/edgedriver/node_modules/fast-xml-parser": {+ "version": "4.5.3",+ "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.5.3.tgz",+ "integrity": "sha512-RKihhV+SHsIUGXObeVy9AXiBbFwkVk7Syp8XgwN5U3JV416+Gwp/GO9i0JYKmikykgz/UHRrrV4ROuZEo/T0ig==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/NaturalIntelligence"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "strnum": "^1.1.1"+ },+ "bin": {+ "fxparser": "src/cli/cli.js"+ }+ },"node_modules/edgedriver/node_modules/isexe": {"version": "3.1.1","resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz",@@ -2018,6 +2037,18 @@"node": ">=16"}},+ "node_modules/edgedriver/node_modules/strnum": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.1.2.tgz",+ "integrity": "sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/NaturalIntelligence"+ }+ ],+ "license": "MIT"+ },"node_modules/edgedriver/node_modules/which": {"version": "5.0.0","resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz",@@ -2772,9 +2803,9 @@"license": "MIT"},"node_modules/fast-xml-parser": {- "version": "4.5.3",- "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.5.3.tgz",- "integrity": "sha512-RKihhV+SHsIUGXObeVy9AXiBbFwkVk7Syp8XgwN5U3JV416+Gwp/GO9i0JYKmikykgz/UHRrrV4ROuZEo/T0ig==",+ "version": "5.0.9",+ "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.0.9.tgz",+ "integrity": "sha512-2mBwCiuW3ycKQQ6SOesSB8WeF+fIGb6I/GG5vU5/XEptwFFhp9PE8b9O7fbs2dpq9fXn4ULR3UsfydNUCntf5A==","funding": [{"type": "github",@@ -2783,7 +2814,7 @@],"license": "MIT","dependencies": {- "strnum": "^1.1.1"+ "strnum": "^2.0.5"},"bin": {"fxparser": "src/cli/cli.js"@@ -5901,9 +5932,9 @@}},"node_modules/strnum": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.1.2.tgz",- "integrity": "sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA==",+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/strnum/-/strnum-2.0.5.tgz",+ "integrity": "sha512-YAT3K/sgpCUxhxNMrrdhtod3jckkpYwH6JAuwmUdXZsmzH1wUyzTMrrK2wYCEEqlKwrWDd35NeuUkbBy/1iK+Q==","funding": [{"type": "github",diff --git a/package.json b/package.jsonindex 335220f..40023d1 100644--- a/package.json+++ b/package.json@@ -26,6 +26,7 @@"dependencies": {"@modelcontextprotocol/sdk": "^1.6.1","commander": "^13.1.0",+ "fast-xml-parser": "^5.0.9","webdriverio": "^9.12.2","zod-to-json-schema": "^3.24.4"},diff --git a/src/iphone-simulator.ts b/src/iphone-simulator.tsindex c324253..67a238d 100644--- a/src/iphone-simulator.ts+++ b/src/iphone-simulator.ts@@ -25,3 +25,19 @@ export const getConnectedDevices = (): Simulator[] => {}).filter(line => line !== null);}++export const getScreenshot = (simulatorUuid: string): Buffer => {+ return execSync(`xcrun simctl io "${simulatorUuid}" screenshot -`);+}++export const openUrl = (simulatorUuid: string, url: string) => {+ return execSync(`xcrun simctl openurl "${simulatorUuid}" "${url}"`);+}++export const launchApp = (simulatorUuid: string, packageName: string) => {+ return execSync(`xcrun simctl launch "${simulatorUuid}" "${packageName}"`);+}++export const listApps = (simulatorUuid: string) => {+ return execSync(`xcrun simctl list apps "${simulatorUuid}"`);+}