@nbakka/mcp-appium 3.0.14 → 3.0.16

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/android.js CHANGED
@@ -172,9 +172,9 @@ class AndroidRobot {
172
172
  }
173
173
  async getElementsOnScreen() {
174
174
  const parsedXml = await this.getUiAutomatorXml();
175
- const hierarchy = parsedXml.hierarchy;
176
- const elements = this.collectElements(hierarchy.node);
177
- return elements;
175
+ // const hierarchy = parsedXml.hierarchy;
176
+ // const elements = this.collectElements(hierarchy.node);
177
+ return parsedXml;
178
178
  }
179
179
  async terminateApp(packageName) {
180
180
  this.adb("shell", "am", "force-stop", packageName);
package/lib/server.js CHANGED
@@ -215,9 +215,9 @@ const createMcpServer = () => {
215
215
  }
216
216
  );
217
217
 
218
- tool("mobile_list_elements_on_screen", "List elements on screen and their coordinates, with display text or accessibility label. Returns the complete XML structure to maintain hierarchy for XPath creation. Do not cache this result.", {}, async ({}) => {
218
+ tool("mobile_list_elements_on_screennn", "List elements on screen and their coordinates, with display text or accessibility label. Returns the complete XML structure to maintain hierarchy for XPath creation. Do not cache this result.", {}, async ({}) => {
219
219
  requireRobot();
220
- const xmlStructure = await robot.getXmlStructure();
220
+ const xmlStructure = await robot.getElementsOnScreen();
221
221
  return `Complete XML structure of current screen:\n${xmlStructure}`;
222
222
  });
223
223
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nbakka/mcp-appium",
3
- "version": "3.0.14",
3
+ "version": "3.0.16",
4
4
  "description": "Appium MCP",
5
5
  "engines": {
6
6
  "node": ">=18"