react-native-ai-debugger 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +96 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -13,26 +13,18 @@ An MCP (Model Context Protocol) server for AI-powered React Native debugging. En
13
13
  - **Execute JavaScript** directly in the running app (REPL-style)
14
14
  - **Inspect global objects** like Apollo Client, Redux store, Expo Router
15
15
  - **Discover debug globals** available in the app
16
+ - **Android device control** - screenshots, tap, swipe, text input, key events via ADB
17
+ - **iOS simulator control** - screenshots, app management, URL handling via simctl
16
18
 
17
19
  ## Requirements
18
20
 
19
21
  - Node.js 18+
20
22
  - React Native app running with Metro bundler
21
23
 
22
- ## Installation
23
-
24
- ```bash
25
- npm install -g react-native-ai-debugger
26
- ```
27
-
28
- Or install locally in your project:
29
-
30
- ```bash
31
- npm install --save-dev react-native-ai-debugger
32
- ```
33
-
34
24
  ## Claude Code Setup
35
25
 
26
+ No installation required - Claude Code uses `npx` to run the latest version automatically.
27
+
36
28
  ### Global (all projects)
37
29
 
38
30
  ```bash
@@ -95,6 +87,34 @@ Restart Claude Code after adding the configuration.
95
87
  | `inspect_global` | Inspect a global object to see its properties and callable methods |
96
88
  | `reload_app` | Reload the app (like pressing 'r' in Metro or shaking the device) |
97
89
 
90
+ ### Android (ADB)
91
+
92
+ | Tool | Description |
93
+ |------|-------------|
94
+ | `list_android_devices` | List connected Android devices and emulators via ADB |
95
+ | `android_screenshot` | Take a screenshot from an Android device/emulator |
96
+ | `android_install_app` | Install an APK on an Android device/emulator |
97
+ | `android_launch_app` | Launch an app by package name |
98
+ | `android_list_packages` | List installed packages (with optional filter) |
99
+ | `android_tap` | Tap at specific coordinates on screen |
100
+ | `android_long_press` | Long press at specific coordinates |
101
+ | `android_swipe` | Swipe from one point to another |
102
+ | `android_input_text` | Type text at current focus point |
103
+ | `android_key_event` | Send key events (HOME, BACK, ENTER, etc.) |
104
+ | `android_get_screen_size` | Get device screen resolution |
105
+
106
+ ### iOS (Simulator)
107
+
108
+ | Tool | Description |
109
+ |------|-------------|
110
+ | `list_ios_simulators` | List available iOS simulators |
111
+ | `ios_screenshot` | Take a screenshot from an iOS simulator |
112
+ | `ios_install_app` | Install an app bundle (.app) on a simulator |
113
+ | `ios_launch_app` | Launch an app by bundle ID |
114
+ | `ios_open_url` | Open a URL (deep links or web URLs) |
115
+ | `ios_terminate_app` | Terminate a running app |
116
+ | `ios_boot_simulator` | Boot a simulator by UDID |
117
+
98
118
  ## Usage
99
119
 
100
120
  1. Start your React Native app:
@@ -265,6 +285,70 @@ execute_in_app with expression="AsyncStorage.getItem('userToken')"
265
285
 
266
286
  Set `awaitPromise=false` for synchronous execution only.
267
287
 
288
+ ## Device Interaction
289
+
290
+ ### Android (requires ADB)
291
+
292
+ List connected devices:
293
+ ```
294
+ list_android_devices
295
+ ```
296
+
297
+ Take a screenshot:
298
+ ```
299
+ android_screenshot
300
+ ```
301
+
302
+ Tap on screen (coordinates in pixels):
303
+ ```
304
+ android_tap with x=540 y=960
305
+ ```
306
+
307
+ Swipe gesture:
308
+ ```
309
+ android_swipe with startX=540 startY=1500 endX=540 endY=500
310
+ ```
311
+
312
+ Type text (tap input field first):
313
+ ```
314
+ android_tap with x=540 y=400
315
+ android_input_text with text="hello@example.com"
316
+ ```
317
+
318
+ Send key events:
319
+ ```
320
+ android_key_event with key="BACK"
321
+ android_key_event with key="HOME"
322
+ android_key_event with key="ENTER"
323
+ ```
324
+
325
+ ### iOS Simulator (requires Xcode)
326
+
327
+ List available simulators:
328
+ ```
329
+ list_ios_simulators
330
+ ```
331
+
332
+ Boot a simulator:
333
+ ```
334
+ ios_boot_simulator with udid="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
335
+ ```
336
+
337
+ Take a screenshot:
338
+ ```
339
+ ios_screenshot
340
+ ```
341
+
342
+ Launch an app:
343
+ ```
344
+ ios_launch_app with bundleId="com.example.myapp"
345
+ ```
346
+
347
+ Open a deep link:
348
+ ```
349
+ ios_open_url with url="myapp://settings"
350
+ ```
351
+
268
352
  ## Supported React Native Versions
269
353
 
270
354
  | Version | Runtime | Status |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ai-debugger",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "MCP server for AI-powered React Native debugging - logs, REPL, state inspection",
5
5
  "type": "module",
6
6
  "main": "build/index.js",