Skip to content

Mobile MCP: let AI agents drive your iOS and Android apps. MCP server for simulators, emulators and real devices. Works with Claude Code, Codex, Cursor and any MCP client.

fix: swipe up/down mixed

gmegidish777ef85f1bd9
diff --git a/src/android.ts b/src/android.ts
index 9d38a7d..83ab6d2 100644
--- a/src/android.ts
+++ b/src/android.ts
@@ -121,12 +121,12 @@ export const swipe = (direction: "up" | "down" | "left" | "right") => {
let x0, y0, x1, y1: number;
switch (direction) {
- case "down":
+ case "up":
x0 = x1 = centerX;
y0 = Math.floor(screenSize[1] * 0.80);
y1 = Math.floor(screenSize[1] * 0.20);
break;
- case "up":
+ case "down":
x0 = x1 = centerX;
y0 = Math.floor(screenSize[1] * 0.20);
y1 = Math.floor(screenSize[1] * 0.80);