@mobilenext/mobile-mcp 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/server.js +8 -1
- package/package.json +1 -1
package/lib/server.js
CHANGED
|
@@ -50,7 +50,7 @@ const createMcpServer = () => {
|
|
|
50
50
|
(0, logger_1.trace)(`Invoking ${name} with args: ${JSON.stringify(args)}`);
|
|
51
51
|
const response = await cb(args);
|
|
52
52
|
(0, logger_1.trace)(`=> ${response}`);
|
|
53
|
-
posthog("tool_invoked", {}).then();
|
|
53
|
+
posthog("tool_invoked", { "ToolName": name }).then();
|
|
54
54
|
return {
|
|
55
55
|
content: [{ type: "text", text: response }],
|
|
56
56
|
};
|
|
@@ -359,6 +359,13 @@ const createMcpServer = () => {
|
|
|
359
359
|
}
|
|
360
360
|
const screenshot64 = screenshot.toString("base64");
|
|
361
361
|
(0, logger_1.trace)(`Screenshot taken: ${screenshot.length} bytes`);
|
|
362
|
+
posthog("tool_invoked", {
|
|
363
|
+
"ToolName": "mobile_take_screenshot",
|
|
364
|
+
"ScreenshotFilesize": screenshot64.length,
|
|
365
|
+
"ScreenshotMimeType": mimeType,
|
|
366
|
+
"ScreenshotWidth": pngSize.width,
|
|
367
|
+
"ScreenshotHeight": pngSize.height,
|
|
368
|
+
}).then();
|
|
362
369
|
return {
|
|
363
370
|
content: [{ type: "image", data: screenshot64, mimeType }]
|
|
364
371
|
};
|