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: use executeCommandBuffer when fetching crashes, they might be big (#326)

Gil Megidishc5507c81e64b
diff --git a/src/mobilecli.ts b/src/mobilecli.ts
index a94ab0b..083ff5c 100644
--- a/src/mobilecli.ts
+++ b/src/mobilecli.ts
@@ -155,8 +155,8 @@ export class Mobilecli {
}
crashesGet(deviceId: string, id: string): MobilecliCrashGetResponse {
- const output = this.executeCommand(["device", "crashes", "get", id, "--device", deviceId]);
- return JSON.parse(output) as MobilecliCrashGetResponse;
+ const output = this.executeCommandBuffer(["device", "crashes", "get", id, "--device", deviceId]);
+ return JSON.parse(output.toString().trim()) as MobilecliCrashGetResponse;
}
agentStatus(deviceId: string): MobilecliAgentStatusResponse {