@mobilenext/mobile-mcp 0.0.57 → 0.0.58

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/lib/server.js +3 -0
  2. package/package.json +4 -6
package/lib/server.js CHANGED
@@ -140,6 +140,7 @@ const createMcpServer = () => {
140
140
  const iosDevices = iosManager.listDevices();
141
141
  const iosDevice = iosDevices.find(d => d.deviceId === deviceId);
142
142
  if (iosDevice) {
143
+ posthog("get_robot", { "DevicePlatform": "ios", "DeviceType": "real" }).then();
143
144
  return new ios_1.IosRobot(deviceId);
144
145
  }
145
146
  // Check if it's an Android device
@@ -147,6 +148,7 @@ const createMcpServer = () => {
147
148
  const androidDevices = androidManager.getConnectedDevices();
148
149
  const androidDevice = androidDevices.find(d => d.deviceId === deviceId);
149
150
  if (androidDevice) {
151
+ posthog("get_robot", { "DevicePlatform": "android" }).then();
150
152
  return new android_1.AndroidRobot(deviceId);
151
153
  }
152
154
  // Check if it's a simulator (will later replace all other device types as well)
@@ -165,6 +167,7 @@ const createMcpServer = () => {
165
167
  }
166
168
  agentVerifiedSimulators.add(deviceId);
167
169
  }
170
+ posthog("get_robot", { "DevicePlatform": "ios", "DeviceType": "simulator" }).then();
168
171
  return new mobile_device_1.MobileDevice(deviceId);
169
172
  }
170
173
  }
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.57",
4
+ "version": "0.0.58",
5
5
  "description": "Mobile MCP",
6
6
  "repository": {
7
7
  "type": "git",
@@ -15,7 +15,7 @@
15
15
  "build": "tsc && chmod +x lib/index.js",
16
16
  "lint": "eslint .",
17
17
  "fixlint": "eslint . --fix",
18
- "test": "nyc mocha --require ts-node/register test/*.ts",
18
+ "test": "c8 playwright test",
19
19
  "watch": "tsc --watch",
20
20
  "clean": "rm -rf lib",
21
21
  "prepare": "husky"
@@ -37,22 +37,20 @@
37
37
  "devDependencies": {
38
38
  "@eslint/eslintrc": "^3.2.0",
39
39
  "@eslint/js": "^9.19.0",
40
+ "@playwright/test": "^1.49.0",
40
41
  "@stylistic/eslint-plugin": "^3.0.1",
41
42
  "@types/commander": "^2.12.0",
42
43
  "@types/express": "^5.0.3",
43
- "@types/mocha": "^10.0.10",
44
44
  "@types/node": "^22.13.10",
45
45
  "@typescript-eslint/eslint-plugin": "^8.28.0",
46
46
  "@typescript-eslint/parser": "^8.26.1",
47
47
  "@typescript-eslint/utils": "^8.26.1",
48
+ "c8": "^10.1.3",
48
49
  "eslint": "^9.19.0",
49
50
  "eslint-plugin": "^1.0.1",
50
51
  "eslint-plugin-import": "^2.31.0",
51
52
  "eslint-plugin-notice": "^1.0.0",
52
53
  "husky": "^9.1.7",
53
- "mocha": "^11.1.0",
54
- "nyc": "^17.1.0",
55
- "ts-node": "^10.9.2",
56
54
  "typescript": "5.8.2"
57
55
  },
58
56
  "main": "index.js",