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: make sure webdriver returns 200 and 'ready', do not log error if it's not running

gmegidish79d2a71b24a3
diff --git a/src/webdriver-agent.ts b/src/webdriver-agent.ts
index d52d119..31d121c 100644
--- a/src/webdriver-agent.ts
+++ b/src/webdriver-agent.ts
@@ -31,9 +31,10 @@ export class WebDriverAgent {
const url = `http://${this.host}:${this.port}/status`;
try {
const response = await fetch(url);
- return response.status === 200;
+ const json = await response.json();
+ return response.status === 200 && json.value?.ready === true;
} catch (error) {
- console.error(`Failed to connect to WebDriverAgent: ${error}`);
+ // console.error(`Failed to connect to WebDriverAgent: ${error}`);
return false;
}
}