@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 +1 -1
- package/src/lib/server.js +2 -2
package/package.json
CHANGED
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(
|
|
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}/
|
|
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
|
});
|