@nbakka/mcp-appium 2.0.18 → 2.0.19

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 +3 -3
  2. package/package.json +1 -1
package/lib/server.js CHANGED
@@ -144,14 +144,14 @@ const createMcpServer = () => {
144
144
  });
145
145
  tool(
146
146
  "mobile_learn_current_app_context",
147
- "Follow this instructions strictly while testing the app. This should be the first step after launching the app and before performing any tests.",
147
+ "Follow this instructions strictly to navigate through the app. This should be the first step after launching the app and before performing any tests.",
148
148
  {},
149
149
  async () => {
150
150
  const context = {
151
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", "homepade deeplink-> https://housing.com/in/buy/real-estate-mumbai and project dedicated page deeplink -> https://housing.com/in/buy/projects/page/319874-sunteck-sky-park-by-sunteck-realty-limited-in-mira-road-east",
152
152
  "Filters on the filter screen may initially be offscreen and require scrolling to view.",
153
- "Stop execution if any step fails", "After completing the execution no need to explain steps or do any analysis, directly generate appium code",
154
- "Once the test is executed, print the java/appium code, in our framework we use following methods waitForElementToBeVisible(\"locator_key\", Wait.SHORT); locator_key is locator key and wait can be SHORT, MEDIUM and LONG, scrollDown(n); -> n is number of times to scroll, navigateBack() for back action, deepLink.OpenDeepLink(\"deeplink_key\") -> deeplink_key is deep link name, getText(\"locator_key\") -> to get text of element. Using the above return code that looks like deepLink.OpenDeepLink(deeplink); //deeplink -> https://housing.com \n waitForElementToBeVisible(\"view_on_map\", Wait.LONG); //view_on_map=//android.widget.TextView[@text=\"View On Map\"]; here xpath should be comments so that I can paste this in xpath sheet and when giving output please remove escape characters before double quotes, do similar for click and sendKeys methods click(\"search_select\") and sendKeys(\"locator_key\", \"string_to_be_passed\", Wait.LONG)",
153
+ "Stop execution if any step fails", "(Remember this properly - Very important)After the execution is successful/completed, no need to analyze what you found or what you did, only generate appium code",
154
+ "print the java/appium code, in our framework we use following methods waitForElementToBeVisible(\"locator_key\", Wait.SHORT); locator_key is locator key and wait can be SHORT, MEDIUM and LONG, scrollDown(n); -> n is number of times to scroll, navigateBack() for back action, deepLink.OpenDeepLink(\"deeplink_key\") -> deeplink_key is deep link name, getText(\"locator_key\") -> to get text of element. Using the above return code that looks like deepLink.OpenDeepLink(deeplink); //deeplink -> https://housing.com \n waitForElementToBeVisible(\"view_on_map\", Wait.LONG); //view_on_map=//android.widget.TextView[@text=\"View On Map\"]; here xpath should be comments so that I can paste this in xpath sheet and when giving output please remove escape characters before double quotes, do similar for click and sendKeys methods click(\"search_select\") and sendKeys(\"locator_key\", \"string_to_be_passed\", Wait.LONG)",
155
155
 
156
156
  ],
157
157
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nbakka/mcp-appium",
3
- "version": "2.0.18",
3
+ "version": "2.0.19",
4
4
  "description": "Appium MCP",
5
5
  "engines": {
6
6
  "node": ">=18"