@nbakka/mcp-appium 2.0.11 → 2.0.13

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 +17 -0
  2. package/package.json +1 -1
package/lib/server.js CHANGED
@@ -142,6 +142,23 @@ const createMcpServer = () => {
142
142
  const screenSize = await robot.getScreenSize();
143
143
  return `Screen size is ${screenSize.width}x${screenSize.height} pixels`;
144
144
  });
145
+ tool(
146
+ "mobile_learn_current_app_context",
147
+ "Capture and store contextual knowledge about the current app screen or deeplink to inform intelligent automation decisions. This should be the first step after launching the app and before performing any tests.",
148
+ {},
149
+ async () => {
150
+ const context = {
151
+ notes: ["when asked to open buy srp use deeeplink to open https://housing.com/in/buy/mumbai/<locality name> For eg: if asked to open "Mira Road East" buy srp then open following deep link https://housing.com/in/buy/mumbai/mira_road_east",
152
+ "Filters on the filter screen may initially be offscreen and require scrolling to view.",
153
+ "Stop execution if any step fails and don’t print explanations before or after the steps.",
154
+ "Once done just print all the xpaths for elements that have been interacted with. For eg: You clicked on Filters then xpath include the tag name (android.widget.TextView) like //android.widget.TextView[@text="Filters"]",
155
+ ],
156
+ };
157
+
158
+ return `App context learned`;
159
+ }
160
+ );
161
+
145
162
 
146
163
  tool("mobile_list_elements_on_screen", "List elements on screen and their coordinates, with display text or accessibility label. Do not cache this result.", {}, async ({}) => {
147
164
  requireRobot();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nbakka/mcp-appium",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "description": "Appium MCP",
5
5
  "engines": {
6
6
  "node": ">=18"