local-mcp 3.0.206 → 3.0.208
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 +23 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -63,12 +63,35 @@ async function main() {
|
|
|
63
63
|
if (cmd === 'uninstall') {
|
|
64
64
|
const { CACHE_DIR } = require('./download')
|
|
65
65
|
const fs = require('fs')
|
|
66
|
+
|
|
67
|
+
if (process.platform === 'darwin') {
|
|
68
|
+
const home = os.homedir()
|
|
69
|
+
const launchAgentPlist = path.join(home, 'Library/LaunchAgents/com.local-mcp.tray.plist')
|
|
70
|
+
const serverPlist = path.join(home, 'Library/LaunchAgents/com.local-mcp.server.plist')
|
|
71
|
+
|
|
72
|
+
// Stop and remove LaunchAgent for Tray (so it doesn't resurrect)
|
|
73
|
+
if (fs.existsSync(launchAgentPlist)) {
|
|
74
|
+
try { execSync(`launchctl unload -w "${launchAgentPlist}" 2>/dev/null`, { stdio: 'pipe' }) } catch {}
|
|
75
|
+
try { fs.unlinkSync(launchAgentPlist) } catch {}
|
|
76
|
+
console.log('LaunchAgent del Tray eliminado.')
|
|
77
|
+
}
|
|
78
|
+
// Also remove the server LaunchAgent if present
|
|
79
|
+
if (fs.existsSync(serverPlist)) {
|
|
80
|
+
try { execSync(`launchctl unload -w "${serverPlist}" 2>/dev/null`, { stdio: 'pipe' }) } catch {}
|
|
81
|
+
try { fs.unlinkSync(serverPlist) } catch {}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Kill the Tray app if running
|
|
85
|
+
try { execSync('pkill -x LocalMCPTray 2>/dev/null', { stdio: 'pipe' }) } catch {}
|
|
86
|
+
}
|
|
87
|
+
|
|
66
88
|
if (fs.existsSync(CACHE_DIR)) {
|
|
67
89
|
fs.rmSync(CACHE_DIR, { recursive: true, force: true })
|
|
68
90
|
console.log(`Runtime eliminado de ${CACHE_DIR}`)
|
|
69
91
|
} else {
|
|
70
92
|
console.log('No hay runtime en cache.')
|
|
71
93
|
}
|
|
94
|
+
console.log('Local MCP desinstalado correctamente.')
|
|
72
95
|
return
|
|
73
96
|
}
|
|
74
97
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "local-mcp",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.208",
|
|
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": {
|