Skip to content
VS Code

ios-agent for VS Code

io.github.emazaheri/ios-agent

Drive a real iPhone or an iOS Simulator with an AI agent, through XCUIAutomation.

client:VS Code transport:stdio runtime:pypi

Install ios-agent in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "ios-mcp-policy--confirm-destructive",
      "description": "IOS_MCP_POLICY__CONFIRM_DESTRUCTIVE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ios-mcp-policy--enabled",
      "description": "IOS_MCP_POLICY__ENABLED",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ios-mcp-wda--bundle-id",
      "description": "IOS_MCP_WDA__BUNDLE_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ios-mcp-simulator--show-window",
      "description": "IOS_MCP_SIMULATOR__SHOW_WINDOW",
      "password": true
    }
  ],
  "servers": {
    "ios-agent": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "ios-mcp"
      ],
      "env": {
        "IOS_MCP_POLICY__CONFIRM_DESTRUCTIVE": "${input:ios-mcp-policy--confirm-destructive}",
        "IOS_MCP_POLICY__ENABLED": "${input:ios-mcp-policy--enabled}",
        "IOS_MCP_WDA__BUNDLE_ID": "${input:ios-mcp-wda--bundle-id}",
        "IOS_MCP_SIMULATOR__SHOW_WINDOW": "${input:ios-mcp-simulator--show-window}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

ios-agent in other clients