@nbakka/mcp-appium 1.0.15 → 1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nbakka/mcp-appium",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Selenium WebDriver MCP Server",
5
5
  "type": "module",
6
6
  "main": "src/lib/server.js",
package/src/lib/server.js CHANGED
@@ -52,7 +52,7 @@ server.tool(
52
52
 
53
53
  const response = await axios.post(`${APPIUM_URL}/session`, payload);
54
54
  state.sessionId = response.data.value.sessionId;
55
- await delay(20000);
55
+ await delay(10000);
56
56
  return { content: [{ type: "text", text: `Session started: ${state.sessionId}` }] };
57
57
  } catch (e) {
58
58
  return { content: [{ type: "text", text: `Error starting session: ${e.message}` }] };
@@ -120,7 +120,7 @@ server.tool(
120
120
  async ({ deepLink }) => {
121
121
  if (!state.sessionId) return { content: [{ type: "text", text: "No active session" }] };
122
122
  try {
123
- await axios.post(`${APPIUM_URL}/session/${state.sessionId}/execute/shell`, {
123
+ await axios.post(`${APPIUM_URL}/session/${state.sessionId}/execute_shell`, {
124
124
  command: 'am',
125
125
  args: ['start', '-a', 'android.intent.action.VIEW', '-d', deepLink],
126
126
  });