@nbakka/mcp-appium 4.0.9 → 4.0.10

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 +8 -1
  2. package/package.json +1 -1
package/lib/server.js CHANGED
@@ -1779,7 +1779,14 @@ tool(
1779
1779
  headers: { "Content-Type": "application/json" },
1780
1780
  }
1781
1781
  );
1782
- const results = response.data.results || {};
1782
+ // API returns either response.data or response.data.data
1783
+ const payload = response.data.data || response.data;
1784
+ // Support both response shapes: {moved_count, test_case_ids} and {results:{moved,errors}}
1785
+ if (payload.moved_count !== undefined) {
1786
+ const movedIds = payload.test_case_ids || [];
1787
+ return `✅ Moved ${payload.moved_count}/${testCaseIds.length} test case(s) to folder ${destinationFolderId}.${movedIds.length ? "\nMoved: " + movedIds.join(", ") : ""}`;
1788
+ }
1789
+ const results = payload.results || {};
1783
1790
  const moved = results.moved || [];
1784
1791
  const errors = results.errors || [];
1785
1792
  let msg = `✅ Moved ${moved.length}/${testCaseIds.length} test case(s) to folder ${destinationFolderId}.`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nbakka/mcp-appium",
3
- "version": "4.0.9",
3
+ "version": "4.0.10",
4
4
  "description": "Appium MCP",
5
5
  "engines": {
6
6
  "node": ">=18"