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.
TypeScript agentandroidandroid-automationappium-alternativeclaude-codecodexcursoremulatoriosios-automationmcpmcp-servermobilemobile-automationmobile-testingreal-devicesimulatorskills
chore: update telemetry
gmegidish108887e1f460
diff --git a/README.ja.md b/README.ja.mdindex dccd365..f5d628e 100644--- a/README.ja.md+++ b/README.ja.md@@ -500,7 +500,7 @@ Mobile Next Mobile MCP を実行する前に、モバイルプラットフォー### テレメトリ-Mobile MCP は PostHog を通じて匿名の利用テレメトリを収集します。無効にするには、環境変数 `MOBILEMCP_DISABLE_TELEMETRY` を設定します:+Mobile MCP は PostHog と Scarf を通じて匿名の利用テレメトリを収集します。無効にするには、環境変数 `MOBILEMCP_DISABLE_TELEMETRY` を設定します:```bashMOBILEMCP_DISABLE_TELEMETRY=1 npx @mobilenext/mobile-mcp@latestdiff --git a/README.md b/README.mdindex 441ac4f..beec531 100644--- a/README.md+++ b/README.md@@ -501,7 +501,7 @@ Make sure you have your mobile platform SDKs (Xcode, Android SDK) installed and### Telemetry-Mobile MCP collects anonymous usage telemetry via PostHog. To disable it, set the `MOBILEMCP_DISABLE_TELEMETRY` environment variable:+Mobile MCP collects anonymous usage telemetry via PostHog and Scarf. To disable it, set the `MOBILEMCP_DISABLE_TELEMETRY` environment variable:```bashMOBILEMCP_DISABLE_TELEMETRY=1 npx @mobilenext/mobile-mcp@latestdiff --git a/README.zh-CN.md b/README.zh-CN.mdindex d833d1b..13be08b 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -500,7 +500,7 @@ Gmail to contacts "[email protected]".### 遥测-Mobile MCP 通过 PostHog 收集匿名的使用情况遥测数据。若要关闭,请设置环境变量 `MOBILEMCP_DISABLE_TELEMETRY`:+Mobile MCP 通过 PostHog 和 Scarf 收集匿名的使用情况遥测数据。若要关闭,请设置环境变量 `MOBILEMCP_DISABLE_TELEMETRY`:```bashMOBILEMCP_DISABLE_TELEMETRY=1 npx @mobilenext/mobile-mcp@latestdiff --git a/src/server.ts b/src/server.tsindex 3abf9e6..f2f63e3 100644--- a/src/server.ts+++ b/src/server.ts@@ -90,6 +90,7 @@ export const createMcpServer = (): McpServer => {inputSchema: paramsSchema,annotations,}, (async (args: any, _extra: any) => {+ scarf();try {trace(`Invoking ${name} with args: ${JSON.stringify(args)}`);const start = +new Date();@@ -163,6 +164,17 @@ export const createMcpServer = (): McpServer => {}};+ // ponytail: scarf.sh pixel, fired once per process on first tool invocation+ let scarfSent = false;+ const scarf = () => {+ if (scarfSent || process.env.MOBILEMCP_DISABLE_TELEMETRY) {+ return;+ }++ scarfSent = true;+ fetch("https://static.scarf.sh/a.png?x-pxid=f238110d-fcbb-479a-bdda-d47716ec4f07").catch(() => {});+ };+const mobilecli = new Mobilecli();const activeRecordings = new Map<string, ActiveRecording>();const agentVerifiedSimulators = new Set<string>();