Commit fc872ca
committed
Add iOS device deployment tools with JSON-based device discovery
Add complete physical device support with 5 new MCP tools for end-to-end iOS device workflows:
• Device discovery and management via list_devices tool with JSON-based output
• Native device building with build_ios_dev_proj/ws tools supporting incremental builds
• App deployment via install_app_device and launch_app_device tools
• Real-time console log capture with start/stop_device_log_cap session management
• Physical device testing with test_ios_dev_proj/ws tools and detailed result parsing
Key implementation details:
- Standardized parameter naming (deviceId, bundleId, appPath) across all device tools
- Added DEVICE_MANAGEMENT tool group for selective enablement parallel to simulator tools
- Console output capture via xcrun devicectl with --terminate-existing flag for reliability
- Proper error handling and session management for log capture workflows
- Enhanced example iOS app with comprehensive startup and interaction logging
Documentation and testing:
- Updated README with device management features section and code signing prerequisites
- Added code signing configuration guide for Xcode setup requirements
- End-to-end tested complete device workflow: discover → build → install → launch → log capture → test
- Verified console log capture works for both debugPrint and print statements1 parent 6f86874 commit fc872ca
15 files changed
Lines changed: 1008 additions & 368 deletions
File tree
- example_projects/iOS_Calculator/CalculatorApp.xcodeproj
- src
- tools
- types
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
78 | | - | |
79 | | - | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
84 | 93 | | |
85 | | - | |
86 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
87 | 99 | | |
88 | 100 | | |
89 | 101 | | |
| |||
93 | 105 | | |
94 | 106 | | |
95 | 107 | | |
96 | | - | |
| 108 | + | |
97 | 109 | | |
98 | 110 | | |
99 | 111 | | |
| |||
132 | 144 | | |
133 | 145 | | |
134 | 146 | | |
| 147 | + | |
135 | 148 | | |
136 | 149 | | |
137 | 150 | | |
| |||
173 | 186 | | |
174 | 187 | | |
175 | 188 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | 189 | | |
180 | 190 | | |
181 | 191 | | |
| |||
203 | 213 | | |
204 | 214 | | |
205 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
206 | 228 | | |
207 | 229 | | |
208 | 230 | | |
| |||
Lines changed: 18 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
62 | 47 | | |
63 | 48 | | |
64 | 49 | | |
| |||
180 | 165 | | |
181 | 166 | | |
182 | 167 | | |
| 168 | + | |
183 | 169 | | |
184 | 170 | | |
185 | 171 | | |
| |||
188 | 174 | | |
189 | 175 | | |
190 | 176 | | |
191 | | - | |
192 | 177 | | |
193 | 178 | | |
194 | 179 | | |
| |||
370 | 355 | | |
371 | 356 | | |
372 | 357 | | |
| 358 | + | |
373 | 359 | | |
| 360 | + | |
374 | 361 | | |
375 | 362 | | |
376 | 363 | | |
| |||
382 | 369 | | |
383 | 370 | | |
384 | 371 | | |
| 372 | + | |
385 | 373 | | |
386 | 374 | | |
387 | 375 | | |
| |||
394 | 382 | | |
395 | 383 | | |
396 | 384 | | |
| 385 | + | |
397 | 386 | | |
| 387 | + | |
398 | 388 | | |
399 | 389 | | |
400 | 390 | | |
| |||
406 | 396 | | |
407 | 397 | | |
408 | 398 | | |
| 399 | + | |
409 | 400 | | |
410 | 401 | | |
411 | 402 | | |
| |||
417 | 408 | | |
418 | 409 | | |
419 | 410 | | |
| 411 | + | |
420 | 412 | | |
421 | 413 | | |
| 414 | + | |
422 | 415 | | |
423 | 416 | | |
424 | 417 | | |
425 | 418 | | |
| 419 | + | |
426 | 420 | | |
427 | 421 | | |
428 | 422 | | |
| |||
434 | 428 | | |
435 | 429 | | |
436 | 430 | | |
| 431 | + | |
437 | 432 | | |
438 | 433 | | |
| 434 | + | |
439 | 435 | | |
440 | 436 | | |
441 | 437 | | |
442 | 438 | | |
| 439 | + | |
443 | 440 | | |
444 | 441 | | |
445 | 442 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
158 | 171 | | |
159 | | - | |
160 | | - | |
| 172 | + | |
| 173 | + | |
161 | 174 | | |
162 | 175 | | |
163 | 176 | | |
| |||
248 | 261 | | |
249 | 262 | | |
250 | 263 | | |
251 | | - | |
| 264 | + | |
252 | 265 | | |
253 | | - | |
254 | | - | |
| 266 | + | |
| 267 | + | |
255 | 268 | | |
256 | 269 | | |
257 | | - | |
258 | | - | |
| 270 | + | |
| 271 | + | |
259 | 272 | | |
260 | 273 | | |
261 | 274 | | |
262 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
263 | 280 | | |
264 | 281 | | |
265 | 282 | | |
| |||
268 | 285 | | |
269 | 286 | | |
270 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
271 | 295 | | |
272 | 296 | | |
273 | 297 | | |
274 | | - | |
| 298 | + | |
275 | 299 | | |
276 | 300 | | |
277 | 301 | | |
278 | 302 | | |
279 | 303 | | |
280 | 304 | | |
281 | 305 | | |
282 | | - | |
| 306 | + | |
283 | 307 | | |
284 | | - | |
285 | | - | |
| 308 | + | |
| 309 | + | |
286 | 310 | | |
287 | 311 | | |
288 | | - | |
289 | | - | |
| 312 | + | |
| 313 | + | |
290 | 314 | | |
291 | 315 | | |
292 | 316 | | |
293 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
294 | 322 | | |
295 | 323 | | |
296 | 324 | | |
| |||
299 | 327 | | |
300 | 328 | | |
301 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
302 | 337 | | |
303 | 338 | | |
304 | 339 | | |
305 | | - | |
| 340 | + | |
306 | 341 | | |
307 | 342 | | |
308 | 343 | | |
| |||
0 commit comments