@mobilenext/mobile-mcp 0.0.43 → 0.0.44

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/lib/mobilecli.js CHANGED
@@ -71,6 +71,15 @@ class Mobilecli {
71
71
  return "failed " + error.message;
72
72
  }
73
73
  }
74
+ fleetListDevices() {
75
+ return this.executeCommand(["fleet", "list-devices"]);
76
+ }
77
+ fleetAllocate(platform) {
78
+ return this.executeCommand(["fleet", "allocate", "--platform", platform]);
79
+ }
80
+ fleetRelease(deviceId) {
81
+ return this.executeCommand(["fleet", "release", "--device", deviceId]);
82
+ }
74
83
  getDevices(options) {
75
84
  const args = ["devices"];
76
85
  if (options) {
package/lib/server.js CHANGED
@@ -214,6 +214,29 @@ const createMcpServer = () => {
214
214
  const out = { devices };
215
215
  return JSON.stringify(out);
216
216
  });
217
+ if (process.env.MOBILEFLEET_ENABLE === "1") {
218
+ tool("mobile_list_fleet_devices", "List Fleet Devices", "List devices available in the remote fleet", {
219
+ noParams
220
+ }, { readOnlyHint: true }, async ({}) => {
221
+ ensureMobilecliAvailable();
222
+ const result = mobilecli.fleetListDevices();
223
+ return result;
224
+ });
225
+ tool("mobile_allocate_fleet_device", "Allocate Fleet Device", "Reserve a device from the remote fleet", {
226
+ platform: zod_1.z.enum(["ios", "android"]).describe("The platform to allocate a device for"),
227
+ }, { destructiveHint: true }, async ({ platform }) => {
228
+ ensureMobilecliAvailable();
229
+ const result = mobilecli.fleetAllocate(platform);
230
+ return result;
231
+ });
232
+ tool("mobile_release_fleet_device", "Release Fleet Device", "Release a device back to the remote fleet", {
233
+ device: zod_1.z.string().describe("The device identifier to release back to the fleet"),
234
+ }, { destructiveHint: true }, async ({ device }) => {
235
+ ensureMobilecliAvailable();
236
+ const result = mobilecli.fleetRelease(device);
237
+ return result;
238
+ });
239
+ }
217
240
  tool("mobile_list_apps", "List Apps", "List all the installed apps on the device", {
218
241
  device: zod_1.z.string().describe("The device identifier to use. Use mobile_list_available_devices to find which devices are available to you.")
219
242
  }, { readOnlyHint: true }, async ({ device }) => {
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.43",
4
+ "version": "0.0.44",
5
5
  "description": "Mobile MCP",
6
6
  "repository": {
7
7
  "type": "git",
@@ -34,7 +34,7 @@
34
34
  "zod-to-json-schema": "3.25.0"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@mobilenext/mobilecli": "0.0.54"
37
+ "@mobilenext/mobilecli": "0.1.59"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@eslint/eslintrc": "^3.2.0",