MCP server for iOS simulator control
## iOS Simulator MCP Server: iOS Development Automation The **iOS Simulator MCP Server** integrates iOS Simulator control into Google Antigravity, enabling developers to automate iOS app testing, capture screenshots, and interact with simulated devices programmatically. ### Why iOS Simulator MCP? - **Device control** - Boot, shutdown, and manage simulators - **App installation** - Install and launch iOS apps - **UI automation** - Interact with app interfaces - **Screenshot capture** - Capture simulator screens - **Log access** - Access simulator logs ### Key Features #### 1. Device Management ```python # List available devices devices = await mcp.call("ios-sim", "list_devices", {}) for device in devices: print(f"{device[\"name\"]}: {device[\"state\"]}") # Boot simulator await mcp.call("ios-sim", "boot", { "udid": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" }) # Shutdown simulator await mcp.call("ios-sim", "shutdown", { "udid": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" }) ``` #### 2. App Management ```python # Install app await mcp.call("ios-sim", "install_app", { "udid": "...", "app_path": "/path/to/MyApp.app" }) # Launch app await mcp.call("ios-sim", "launch_app", { "udid": "...", "bundle_id": "com.example.myapp" }) # Terminate app await mcp.call("ios-sim", "terminate_app", { "udid": "...", "bundle_id": "com.example.myapp" }) ``` #### 3. UI Interaction ```python # Tap screen await mcp.call("ios-sim", "tap", { "udid": "...", "x": 200, "y": 400 }) # Type text await mcp.call("ios-sim", "type_text", { "udid": "...", "text": "Hello World" }) # Take screenshot screenshot = await mcp.call("ios-sim", "screenshot", { "udid": "...", "output": "/tmp/screenshot.png" }) ``` #### 4. Device Utilities ```python # Open URL in Safari await mcp.call("ios-sim", "open_url", { "udid": "...", "url": "https://example.com" }) # Set location await mcp.call("ios-sim", "set_location", { "udid": "...", "latitude": 37.7749, "longitude": -122.4194 }) ``` ### Configuration ```json { "mcpServers": { "ios-sim": { "command": "npx", "args": ["-y", "@anthropic/mcp-ios-simulator"] } } } ``` ### Use Cases **App Testing**: Automate iOS app testing. **Screenshot Generation**: Capture app store screenshots. **CI/CD Testing**: Run tests in simulator. **Demo Recording**: Record app demonstrations. The iOS Simulator MCP Server enables iOS development automation.
{
"mcpServers": {
"ios-simulator": {
"mcpServers": {
"ios-simulator": {
"args": [
"-y",
"ios-simulator-mcp"
],
"command": "npx"
}
}
}
}
}