Setup device

From JubaKitiashvili/everything-react-native-expo · View interactive version

Setup device is an AI agent skill from the GitHub repository JubaKitiashvili/everything-react-native-expo. Install and configure agent-device MCP server for simulator/emulator control

How to use this skill

Skill file

/setup-device — Setup Device Control

You are executing the /setup-device command. This is script-driven — it sets up the agent-device MCP server.

What This Does

Installs and configures the agent-device MCP server so commands like /debug, /perf, /component, and /deploy gain visual device interaction capabilities.

Process

Step 1: Check Prerequisites

# iOS: Check for Xcode and simulator
xcodebuild -version
xcrun simctl list devices

# Android: Check for Android Studio and emulator
adb version
emulator -list-avds

Step 2: Install agent-device MCP

Check if already configured in .claude/settings.json:

{
  "mcpServers": {
    "agent-device": {
      "command": "npx",
      "args": ["-y", "agent-device"]
    }
  }
}

If not present, add the configuration.

Step 3: Verify Connection

# Boot a simulator (iOS)
xcrun simctl boot "iPhone 16 Pro"

# Or start an emulator (Android)
emulator -avd Pixel_8_API_35 &

Test that agent-device can:

Step 4: Configure Command Integration

After setup, these commands gain enhanced capabilities:

| Command | Enhancement |

|---------|-------------|

| /debug | Screenshot reproduction steps, tap through UI |

| /perf | Measure real FPS, capture actual jank frames |

| /component | Render on device, visual verification screenshot |

| /deploy | Launch preview build, verify UI before submit |

| /build-fix | Build, install, and launch to verify fix |

Output

## agent-device Setup Complete

### Status
- MCP server: Configured ✓
- iOS Simulator: Available (iPhone 16 Pro)
- Android Emulator: Available (Pixel 8 API 35)

### Capabilities Enabled
- Screenshot capture
- Tap/type/swipe interaction
- App navigation
- Visual verification

### Commands Enhanced
/debug, /perf, /component, /deploy, /build-fix
now have visual device control.

Troubleshooting

| Problem | Solution |

|---------|----------|

| iOS simulator not found | Install Xcode, run xcode-select --install |

| Android emulator not found | Install Android Studio, create AVD in AVD Manager |

| agent-device fails to connect | Check MCP server config in .claude/settings.json |

| Screenshots are black | Wait for device to finish booting, retry |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.