claude-in-mobile 2.3.0 → 2.3.1

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 +76 -30
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,18 +1,19 @@
1
1
  # Claude Mobile
2
2
 
3
- MCP server for mobile device automation — Android (via ADB) and iOS Simulator (via simctl). Like [Claude in Chrome](https://www.anthropic.com/news/claude-for-chrome) but for mobile devices.
3
+ MCP server for mobile and desktop automation — Android (via ADB), iOS Simulator (via simctl), and Desktop (Compose Multiplatform). Like [Claude in Chrome](https://www.anthropic.com/news/claude-for-chrome) but for mobile devices and desktop apps.
4
4
 
5
- Control your Android phone, emulator, or iOS Simulator with natural language through Claude.
5
+ Control your Android phone, emulator, iOS Simulator, or Desktop applications with natural language through Claude.
6
6
 
7
7
  ## Features
8
8
 
9
- - **Unified API** — Same commands work for both Android and iOS
9
+ - **Unified API** — Same commands work for Android, iOS, and Desktop
10
10
  - **Smart screenshots** — Auto-compressed for optimal LLM processing (no more oversized images!)
11
11
  - **Device logs** — Read logcat/system logs with filters for debugging
12
12
  - **UI interactions** — Tap, long press, swipe by coordinates or element text
13
13
  - **Text input** — Type into focused fields
14
14
  - **App control** — Launch, stop, and install apps
15
- - **Platform selection** — Explicitly target Android or iOS, or auto-detect
15
+ - **Platform selection** — Explicitly target Android, iOS, or Desktop
16
+ - **Desktop support** — Test Compose Multiplatform desktop apps with window management, clipboard, and performance metrics
16
17
 
17
18
  ## Installation
18
19
 
@@ -40,9 +41,11 @@ npx claude-in-mobile
40
41
  git clone https://github.com/AlexGladkov/claude-in-mobile.git
41
42
  cd claude-in-mobile
42
43
  npm install
43
- npm run build
44
+ npm run build:all # Builds TypeScript + Desktop companion
44
45
  ```
45
46
 
47
+ > **Note:** For Desktop support, you need to run `npm run build:desktop` (or `build:all`) to compile the Desktop companion app.
48
+
46
49
  ### Manual configuration
47
50
 
48
51
  Add to your Claude Code settings (`~/.claude.json` or project settings):
@@ -74,30 +77,54 @@ claude mcp add --transport stdio mobile -- cmd /c npx -y claude-in-android
74
77
  - macOS with Xcode installed
75
78
  - iOS Simulator (no physical device support yet)
76
79
 
80
+ ### Desktop
81
+ - macOS (Windows/Linux support planned)
82
+ - JDK 17+ for building the Desktop companion
83
+ - Compose Multiplatform desktop application to test
84
+
77
85
  ## Available Tools
78
86
 
79
- | Tool | Android | iOS | Description |
80
- |------|---------|-----|-------------|
81
- | `list_devices` | | | List all connected devices |
82
- | `set_device` | ✅ | ✅ | Select active device |
83
- | `screenshot` | ✅ | ✅ | Take screenshot |
84
- | `tap` | ✅ | ✅ | Tap at coordinates or by text |
85
- | `long_press` | ✅ | ✅ | Long press gesture |
86
- | `swipe` | ✅ | ✅ | Swipe in direction or coordinates |
87
- | `input_text` | ✅ | ✅ | Type text |
88
- | `press_key` | ✅ | ✅ | Press hardware buttons |
89
- | `launch_app` | ✅ | ✅ | Launch app |
90
- | `stop_app` | ✅ | ✅ | Stop app |
91
- | `install_app` | ✅ | ✅ | Install APK/.app |
92
- | `get_ui` | ✅ | ⚠️ | Get UI hierarchy (limited on iOS) |
93
- | `find_element` | ✅ | | Find elements by text/id |
94
- | `get_current_activity` | ✅ | | Get foreground activity |
95
- | `open_url` | ✅ | ✅ | Open URL in browser |
96
- | `shell` | ✅ | | Run shell command |
97
- | `wait` | ✅ | ✅ | Wait for duration |
98
- | `get_logs` | ✅ | ✅ | Get device logs (logcat/system log) |
99
- | `clear_logs` | ✅ | ⚠️ | Clear log buffer |
100
- | `get_system_info` | ✅ | ❌ | Battery, memory info |
87
+ ### Core Tools (All Platforms)
88
+
89
+ | Tool | Android | iOS | Desktop | Description |
90
+ |------|---------|-----|---------|-------------|
91
+ | `list_devices` | ✅ | ✅ | | List all connected devices |
92
+ | `set_device` | ✅ | ✅ | | Select active device |
93
+ | `screenshot` | ✅ | ✅ | | Take screenshot |
94
+ | `tap` | ✅ | ✅ | | Tap at coordinates or by text |
95
+ | `long_press` | ✅ | ✅ | | Long press gesture |
96
+ | `swipe` | ✅ | ✅ | | Swipe in direction or coordinates |
97
+ | `input_text` | ✅ | ✅ | | Type text |
98
+ | `press_key` | ✅ | ✅ | | Press hardware buttons |
99
+ | `launch_app` | ✅ | ✅ | | Launch app (use `launch_desktop_app` for Desktop) |
100
+ | `stop_app` | ✅ | | | Stop app (use `stop_desktop_app` for Desktop) |
101
+ | `install_app` | ✅ | | | Install APK/.app |
102
+ | `get_ui` | ✅ | ⚠️ | ✅ | Get UI hierarchy (limited on iOS) |
103
+ | `find_element` | ✅ | ❌ | ✅ | Find elements by text/id |
104
+ | `get_current_activity` | ✅ | | | Get foreground activity |
105
+ | `open_url` | ✅ | ✅ | | Open URL in browser |
106
+ | `shell` | ✅ | ✅ | | Run shell command |
107
+ | `wait` | ✅ | | | Wait for duration |
108
+ | `get_logs` | ✅ | ✅ | ❌ | Get device logs (logcat/system log) |
109
+ | `clear_logs` | ✅ | ⚠️ | ❌ | Clear log buffer |
110
+ | `get_system_info` | ✅ | ❌ | ❌ | Battery, memory info |
111
+
112
+ ### Desktop-Specific Tools
113
+
114
+ | Tool | Description |
115
+ |------|-------------|
116
+ | `set_target` | Set target platform (android/ios/desktop) |
117
+ | `get_target` | Get current target platform |
118
+ | `launch_desktop_app` | Launch a Compose Desktop application |
119
+ | `stop_desktop_app` | Stop the running desktop application |
120
+ | `get_window_info` | Get desktop window position and size |
121
+ | `focus_window` | Bring desktop window to front |
122
+ | `resize_window` | Resize desktop window |
123
+ | `get_clipboard` | Get system clipboard content |
124
+ | `set_clipboard` | Set system clipboard content |
125
+ | `get_performance_metrics` | Get CPU/memory usage of desktop app |
126
+
127
+ > For detailed Desktop API documentation, see [Desktop Specification](docs/SPEC_DESKTOP.md)
101
128
 
102
129
  ## Usage Examples
103
130
 
@@ -123,6 +150,7 @@ You can explicitly specify the platform:
123
150
  ```
124
151
  "Screenshot on android" → Uses Android device
125
152
  "Screenshot on ios" → Uses iOS simulator
153
+ "Screenshot on desktop" → Uses Desktop app
126
154
  "Screenshot" → Uses last active device
127
155
  ```
128
156
 
@@ -131,6 +159,21 @@ Or set the active device:
131
159
  ```
132
160
  "Use the iPhone 15 simulator"
133
161
  "Switch to the Android emulator"
162
+ "Switch to desktop"
163
+ ```
164
+
165
+ ### Desktop Examples
166
+
167
+ ```
168
+ "Launch my desktop app from /path/to/app"
169
+ "Take a screenshot of the desktop app"
170
+ "Get window info"
171
+ "Resize window to 1280x720"
172
+ "Tap at coordinates 100, 200"
173
+ "Get clipboard content"
174
+ "Set clipboard to 'test text'"
175
+ "Get performance metrics"
176
+ "Stop the desktop app"
134
177
  ```
135
178
 
136
179
  ## How It Works
@@ -141,13 +184,16 @@ Or set the active device:
141
184
  │ │ │ MCP Server │ └─────────────────┘
142
185
  │ │ │ │ ┌─────────────────┐
143
186
  │ │ │ │────▶│ iOS (simctl) │
187
+ │ │ │ │ └─────────────────┘
188
+ │ │ │ │ ┌─────────────────┐
189
+ │ │ │ │────▶│ Desktop (Compose)│
144
190
  └─────────────┘ └──────────────────┘ └─────────────────┘
145
191
  ```
146
192
 
147
193
  1. Claude sends commands through MCP protocol
148
- 2. Server routes to appropriate platform (ADB or simctl)
149
- 3. Commands execute on your device
150
- 4. Results (screenshots, UI data) return to Claude
194
+ 2. Server routes to appropriate platform (ADB, simctl, or Desktop companion)
195
+ 3. Commands execute on your device or desktop app
196
+ 4. Results (screenshots, UI data, metrics) return to Claude
151
197
 
152
198
  ## License
153
199
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-in-mobile",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "MCP server for mobile and desktop automation - Android (ADB), iOS Simulator (simctl), and Desktop (Compose)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -14,7 +14,7 @@
14
14
  "watch": "tsc --watch",
15
15
  "start": "node dist/index.js",
16
16
  "dev": "tsc && node dist/index.js",
17
- "prepublishOnly": "npm run build"
17
+ "prepublishOnly": "npm run build:all"
18
18
  },
19
19
  "keywords": [
20
20
  "mcp",