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: reduce stdout pollution from adb shell monkey (#211)

Gil Megidish06a5a7cf3f46
diff --git a/src/android.ts b/src/android.ts
index 844f6d4..ea4ca4e 100644
--- a/src/android.ts
+++ b/src/android.ts
@@ -120,7 +120,7 @@ export class AndroidRobot implements Robot {
}
public async launchApp(packageName: string): Promise<void> {
- this.adb("shell", "monkey", "-p", packageName, "-c", "android.intent.category.LAUNCHER", "1");
+ this.adb("shell", "monkey", "-p", packageName, "-c", "android.intent.category.LAUNCHER", "1", "1>/dev/null", "2>/dev/null");
}
public async listRunningProcesses(): Promise<string[]> {