@mobilenext/mobile-mcp 0.0.47 → 0.0.48

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.
package/README.md CHANGED
@@ -33,7 +33,9 @@ This server allows Agents and LLMs to interact with native iOS/Android applicati
33
33
  </a>
34
34
  </h4>
35
35
 
36
- https://github.com/user-attachments/assets/c4e89c4f-cc71-4424-8184-bdbc8c638fa1
36
+
37
+ https://github.com/user-attachments/assets/bb084777-beb3-4930-ae6f-8d3fe694ddde
38
+
37
39
 
38
40
  <p align="center">
39
41
  <a href="https://github.com/mobile-next/">
package/lib/android.js CHANGED
@@ -466,12 +466,18 @@ class AndroidRobot {
466
466
  exports.AndroidRobot = AndroidRobot;
467
467
  class AndroidDeviceManager {
468
468
  getDeviceType(name) {
469
- const device = new AndroidRobot(name);
470
- const features = device.getSystemFeatures();
471
- if (features.includes("android.software.leanback") || features.includes("android.hardware.type.television")) {
472
- return "tv";
469
+ try {
470
+ const device = new AndroidRobot(name);
471
+ const features = device.getSystemFeatures();
472
+ if (features.includes("android.software.leanback") || features.includes("android.hardware.type.television")) {
473
+ return "tv";
474
+ }
475
+ return "mobile";
476
+ }
477
+ catch (error) {
478
+ // Fallback to mobile if we cannot determine device type
479
+ return "mobile";
473
480
  }
474
- return "mobile";
475
481
  }
476
482
  getDeviceVersion(deviceId) {
477
483
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mobilenext/mobile-mcp",
3
3
  "mcpName": "io.github.mobile-next/mobile-mcp",
4
- "version": "0.0.47",
4
+ "version": "0.0.48",
5
5
  "description": "Mobile MCP",
6
6
  "repository": {
7
7
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  "ajv": "^8.18.0",
29
29
  "commander": "14.0.0",
30
30
  "express": "5.1.0",
31
- "fast-xml-parser": "5.3.8",
31
+ "fast-xml-parser": "5.5.7",
32
32
  "qs": "^6.15.0",
33
33
  "zod": "^4.1.13",
34
34
  "zod-to-json-schema": "3.25.0"