local-mcp 1.91.0 → 1.92.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/download.js +11 -4
- package/package.json +1 -1
package/download.js
CHANGED
|
@@ -14,7 +14,8 @@ const { execFileSync } = require('child_process')
|
|
|
14
14
|
|
|
15
15
|
const BACKEND_URL = 'https://office-mcp-production.up.railway.app'
|
|
16
16
|
const CACHE_DIR = path.join(os.homedir(), '.local', 'share', 'local-mcp', 'bin')
|
|
17
|
-
const TRAY_DIR = path.join(os.homedir(), '.local', 'share', 'local-mcp', 'tray')
|
|
17
|
+
const TRAY_DIR = path.join(os.homedir(), '.local', 'share', 'local-mcp', 'tray') // metadata dir
|
|
18
|
+
const TRAY_APP = '/Applications/LocalMCPTray.app'
|
|
18
19
|
|
|
19
20
|
function getArch() {
|
|
20
21
|
const arch = process.arch
|
|
@@ -151,9 +152,15 @@ async function ensureTray() {
|
|
|
151
152
|
|
|
152
153
|
const info = await getLatestBinary()
|
|
153
154
|
const version = info.version
|
|
154
|
-
const trayApp =
|
|
155
|
+
const trayApp = TRAY_APP
|
|
155
156
|
const verFile = path.join(TRAY_DIR, '.version')
|
|
156
157
|
|
|
158
|
+
// Migrar instalación vieja de ~/.local/share si existe
|
|
159
|
+
const oldTrayApp = path.join(TRAY_DIR, 'LocalMCPTray.app')
|
|
160
|
+
if (fs.existsSync(oldTrayApp)) {
|
|
161
|
+
try { execFileSync('rm', ['-rf', oldTrayApp], { stdio: 'pipe' }) } catch { /* ignorar */ }
|
|
162
|
+
}
|
|
163
|
+
|
|
157
164
|
// Ya instalado y actualizado
|
|
158
165
|
if (fs.existsSync(trayApp) && fs.existsSync(verFile)) {
|
|
159
166
|
if (fs.readFileSync(verFile, 'utf8').trim() === version) return trayApp
|
|
@@ -171,8 +178,8 @@ async function ensureTray() {
|
|
|
171
178
|
|
|
172
179
|
await downloadFile(url, tarPath)
|
|
173
180
|
|
|
174
|
-
process.stderr.write(` Instalando tray...\n`)
|
|
175
|
-
execFileSync('tar', ['-xzf', tarPath, '-C',
|
|
181
|
+
process.stderr.write(` Instalando tray en /Applications...\n`)
|
|
182
|
+
execFileSync('tar', ['-xzf', tarPath, '-C', '/Applications'], { stdio: 'pipe' })
|
|
176
183
|
fs.unlinkSync(tarPath)
|
|
177
184
|
|
|
178
185
|
if (!fs.existsSync(trayApp)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "local-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.92.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": {
|