local-mcp 3.0.215 → 3.0.217

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.
Files changed (2) hide show
  1. package/download.js +5 -0
  2. package/package.json +1 -1
package/download.js CHANGED
@@ -351,6 +351,11 @@ async function ensureTray() {
351
351
  if (fs.readFileSync(verFile, 'utf8').trim() === version) return trayApp
352
352
  }
353
353
 
354
+ // In an active MCP session (non-TTY) the tray is running and self-updates via UpdateManager.
355
+ // Downloading a new tray bundle and rm-rf'ing the old one mid-session kills the Unix socket
356
+ // that local-mcp-server uses, crashing the session. Skip the update; it'll apply next login.
357
+ if (!process.stdin.isTTY && fs.existsSync(trayApp)) return trayApp
358
+
354
359
  const url = `https://download.local-mcp.com/local-mcp-tray-${version}-darwin-universal.tar.gz`
355
360
  process.stderr.write(`\nDescargando tray v${version}...\n`)
356
361
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "local-mcp",
3
- "version": "3.0.215",
3
+ "version": "3.0.217",
4
4
  "description": "LMCP — connect Claude Desktop, Cursor, Windsurf to Mail, Calendar, Contacts, Teams, OneDrive on macOS. Privacy-first: all data stays on your Mac.",
5
5
  "main": "index.js",
6
6
  "bin": {