local-mcp 3.0.207 → 3.0.209

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 (3) hide show
  1. package/download.js +4 -0
  2. package/index.js +9 -0
  3. package/package.json +1 -1
package/download.js CHANGED
@@ -325,6 +325,10 @@ async function ensureTray() {
325
325
  return _ensureTrayWindows()
326
326
  }
327
327
 
328
+ // Respect explicit uninstall — don't resurrect tray if user ran `uninstall`
329
+ const uninstalledMarker = path.join(CACHE_DIR, '..', '.uninstalled')
330
+ if (fs.existsSync(uninstalledMarker)) return null
331
+
328
332
  const info = await getLatestBinary()
329
333
  const version = info.version
330
334
  const trayApp = TRAY_APP
package/index.js CHANGED
@@ -43,6 +43,9 @@ const cmd = process.argv[2]
43
43
 
44
44
  async function main() {
45
45
  if (cmd === 'setup') {
46
+ // Clear uninstall sentinel — user explicitly wants to (re-)install
47
+ const { CACHE_DIR } = require('./download')
48
+ try { fs.unlinkSync(path.join(path.dirname(CACHE_DIR), '.uninstalled')) } catch {}
46
49
  const { runSetup } = require('./setup')
47
50
  await runSetup()
48
51
  process.exit(0)
@@ -85,6 +88,12 @@ async function main() {
85
88
  try { execSync('pkill -x LocalMCPTray 2>/dev/null', { stdio: 'pipe' }) } catch {}
86
89
  }
87
90
 
91
+ // Write sentinel BEFORE deleting cache dir, so it survives cache wipes.
92
+ // ensureTray() checks this and skips re-installation.
93
+ const sentinelDir = path.dirname(CACHE_DIR)
94
+ try { fs.mkdirSync(sentinelDir, { recursive: true }) } catch {}
95
+ try { fs.writeFileSync(path.join(sentinelDir, '.uninstalled'), String(Date.now())) } catch {}
96
+
88
97
  if (fs.existsSync(CACHE_DIR)) {
89
98
  fs.rmSync(CACHE_DIR, { recursive: true, force: true })
90
99
  console.log(`Runtime eliminado de ${CACHE_DIR}`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "local-mcp",
3
- "version": "3.0.207",
3
+ "version": "3.0.209",
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": {