local-mcp 1.89.2 → 1.90.0
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/index.js +10 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* npx local-mcp status → muestra estado del servidor local
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
const {
|
|
14
|
+
const { spawn } = require('child_process')
|
|
15
15
|
const path = require('path')
|
|
16
16
|
const os = require('os')
|
|
17
17
|
|
|
@@ -86,20 +86,24 @@ async function main() {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
// Binario PyInstaller standalone — sin Python, sin dependencias externas
|
|
89
|
+
// Usar spawn (async) en lugar de spawnSync para que el event loop siga corriendo
|
|
90
|
+
// y ensureTray() pueda completar sus operaciones de red en background.
|
|
89
91
|
const { binPath } = runtime
|
|
90
92
|
// slice(3): skip node, index.js, and cmd ('stdio') — 'stdio' ya está hardcodeado abajo
|
|
91
93
|
const extraArgs = process.argv.slice(3)
|
|
92
|
-
const
|
|
94
|
+
const child = spawn(binPath, ['stdio', ...extraArgs], {
|
|
93
95
|
stdio: 'inherit',
|
|
94
96
|
env: process.env,
|
|
95
97
|
})
|
|
96
98
|
|
|
97
|
-
|
|
98
|
-
process.stderr.write(`Error ejecutando Local MCP: ${
|
|
99
|
+
child.on('error', (err) => {
|
|
100
|
+
process.stderr.write(`Error ejecutando Local MCP: ${err.message}\n`)
|
|
99
101
|
process.exit(1)
|
|
100
|
-
}
|
|
102
|
+
})
|
|
101
103
|
|
|
102
|
-
|
|
104
|
+
child.on('exit', (code) => {
|
|
105
|
+
process.exit(code ?? 0)
|
|
106
|
+
})
|
|
103
107
|
}
|
|
104
108
|
|
|
105
109
|
main().catch(err => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "local-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.90.0",
|
|
4
4
|
"description": "MCP server for macOS \u2014 connect Claude Desktop, Cursor, Windsurf to Mail, Calendar, Contacts, Teams, OneDrive. Privacy-first: all data stays on your Mac.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|