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: escape url when calling android's openUrl (#278)

Gil Megidish666b6584a169
diff --git a/src/android.ts b/src/android.ts
index 0b9af4a..bc9c794 100644
--- a/src/android.ts
+++ b/src/android.ts
@@ -382,7 +382,7 @@ export class AndroidRobot implements Robot {
}
public async openUrl(url: string): Promise<void> {
- this.adb("shell", "am", "start", "-a", "android.intent.action.VIEW", "-d", url);
+ this.adb("shell", "am", "start", "-a", "android.intent.action.VIEW", "-d", this.escapeShellText(url));
}
private isAscii(text: string): boolean {