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.

feat: collect tool failure statistics (#225)

Gil Megidish06c5e34f9a26
diff --git a/src/server.ts b/src/server.ts
index 654aaad..290fdec 100644
--- a/src/server.ts
+++ b/src/server.ts
@@ -55,6 +55,7 @@ export const createMcpServer = (): McpServer => {
content: [{ type: "text", text: response }],
};
} catch (error: any) {
+ posthog("tool_failed", { "ToolName": name }).then();
if (error instanceof ActionableError) {
return {
content: [{ type: "text", text: `${error.message}. Please fix the issue and try again.` }],