@mobilenext/mobile-mcp 0.0.59 → 0.0.61
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/index.js +9 -0
- package/lib/ios.js +1 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -64,6 +64,15 @@ const startStdioServer = async () => {
|
|
|
64
64
|
const transport = new stdio_js_1.StdioServerTransport();
|
|
65
65
|
const server = (0, server_1.createMcpServer)();
|
|
66
66
|
await server.connect(transport);
|
|
67
|
+
// Exit cleanly on termination signals so node flushes pending work
|
|
68
|
+
// (including NODE_V8_COVERAGE output). Node's default SIGINT/SIGTERM
|
|
69
|
+
// handling terminates the process without writing the coverage file,
|
|
70
|
+
// which makes the `test:mcp` report come back all zeros.
|
|
71
|
+
const shutdown = () => {
|
|
72
|
+
process.exit(0);
|
|
73
|
+
};
|
|
74
|
+
process.on("SIGINT", shutdown);
|
|
75
|
+
process.on("SIGTERM", shutdown);
|
|
67
76
|
(0, logger_1.error)("mobile-mcp server running on stdio");
|
|
68
77
|
}
|
|
69
78
|
catch (err) {
|
package/lib/ios.js
CHANGED
|
@@ -190,7 +190,7 @@ class IosManager {
|
|
|
190
190
|
try {
|
|
191
191
|
const output = (0, node_child_process_1.execFileSync)(getGoIosPath(), ["version"], { stdio: ["pipe", "pipe", "ignore"] }).toString();
|
|
192
192
|
const json = JSON.parse(output);
|
|
193
|
-
return json.version !== undefined && (json.version
|
|
193
|
+
return json.version !== undefined && (/^v?\d+\.\d+\.\d+/.test(json.version) || json.version === "local-build");
|
|
194
194
|
}
|
|
195
195
|
catch (error) {
|
|
196
196
|
return false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mobilenext/mobile-mcp",
|
|
3
3
|
"mcpName": "io.github.mobile-next/mobile-mcp",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.61",
|
|
5
5
|
"description": "Mobile MCP",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"qs": "^6.15.0",
|
|
33
33
|
"zod": "^4.1.13",
|
|
34
34
|
"zod-to-json-schema": "3.25.0",
|
|
35
|
-
"mobilewright": "0.0.
|
|
35
|
+
"mobilewright": "0.0.45"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@eslint/eslintrc": "^3.2.0",
|