local-mcp 1.89.0 → 1.89.2
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/download.js +3 -1
- package/index.js +6 -2
- package/package.json +1 -1
package/download.js
CHANGED
|
@@ -217,7 +217,9 @@ function _writeTrayLaunchAgent(trayApp) {
|
|
|
217
217
|
try {
|
|
218
218
|
fs.mkdirSync(plistDir, { recursive: true })
|
|
219
219
|
fs.writeFileSync(plistPath, plist, 'utf8')
|
|
220
|
-
//
|
|
220
|
+
// Matar proceso viejo (si estaba corriendo por cualquier medio)
|
|
221
|
+
try { execFileSync('pkill', ['-x', 'LocalMCPTray'], { stdio: 'pipe' }) } catch { /* no estaba corriendo */ }
|
|
222
|
+
// Recargar LaunchAgent
|
|
221
223
|
try { execFileSync('launchctl', ['unload', plistPath], { stdio: 'pipe' }) } catch {}
|
|
222
224
|
execFileSync('launchctl', ['load', plistPath], { stdio: 'pipe' })
|
|
223
225
|
// launchctl load con RunAtLoad=true arranca el proceso — no necesitamos open()
|
package/index.js
CHANGED
|
@@ -71,7 +71,10 @@ async function main() {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
// Modo default: stdio MCP server
|
|
74
|
-
const { ensureRuntime } = require('./download')
|
|
74
|
+
const { ensureRuntime, ensureTray } = require('./download')
|
|
75
|
+
|
|
76
|
+
// Actualizar tray en background en cada startup (sin bloquear el arranque del servidor)
|
|
77
|
+
ensureTray().catch(() => { /* no crítico */ })
|
|
75
78
|
|
|
76
79
|
let runtime
|
|
77
80
|
try {
|
|
@@ -84,7 +87,8 @@ async function main() {
|
|
|
84
87
|
|
|
85
88
|
// Binario PyInstaller standalone — sin Python, sin dependencias externas
|
|
86
89
|
const { binPath } = runtime
|
|
87
|
-
|
|
90
|
+
// slice(3): skip node, index.js, and cmd ('stdio') — 'stdio' ya está hardcodeado abajo
|
|
91
|
+
const extraArgs = process.argv.slice(3)
|
|
88
92
|
const result = spawnSync(binPath, ['stdio', ...extraArgs], {
|
|
89
93
|
stdio: 'inherit',
|
|
90
94
|
env: process.env,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "local-mcp",
|
|
3
|
-
"version": "1.89.
|
|
3
|
+
"version": "1.89.2",
|
|
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": {
|