@mobilenext/mobile-mcp 0.0.30-beta → 0.0.31-beta

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 +7 -0
  2. package/package.json +1 -1
package/lib/server.js CHANGED
@@ -349,6 +349,13 @@ const createMcpServer = () => {
349
349
  const orientation = await robot.getOrientation();
350
350
  return `Current device orientation is ${orientation}`;
351
351
  });
352
+ tool("mobile_test_mobilecli", "Test mobilecli integration and report status", {
353
+ noParams,
354
+ }, async () => {
355
+ const path = (0, mobilecli_1.getMobilecliPath)();
356
+ const output = (0, node_child_process_1.execFileSync)(path, ["devices"], { encoding: "utf8" }).toString().trim();
357
+ return `Here are the available devices: ${output}`;
358
+ });
352
359
  // async report mobilecli version
353
360
  reportMobilecliVersion().then();
354
361
  const hook = server.connect;
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.30-beta",
4
+ "version": "0.0.31-beta",
5
5
  "description": "Mobile MCP",
6
6
  "repository": {
7
7
  "type": "git",