local-mcp 3.0.144 → 3.0.145

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/README.md CHANGED
@@ -1,12 +1,13 @@
1
1
  # LMCP
2
2
 
3
- > Give your AI assistant native access to Mac apps — 107 tools for Mail, Calendar, Contacts, iMessage, Teams, Slack, WhatsApp, OneDrive, Notes, OmniFocus, Safari, Word, Excel, PowerPoint, Stocks, NordVPN, and more. Everything runs locally. Your data never leaves your machine.
3
+ > Give your AI assistant native access to your apps — 189 tools across macOS (107) and Windows (82) for Outlook, Mail, Calendar, Contacts, iMessage, Teams, Slack, WhatsApp, OneDrive, Google Drive, Notes, OmniFocus, Safari, Word, Excel, PowerPoint, Stocks, NordVPN, and more. Everything runs locally. Your data never leaves your machine.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/local-mcp)](https://www.npmjs.com/package/local-mcp)
6
6
  [![macOS 12+](https://img.shields.io/badge/macOS-12%2B-blue)](https://local-mcp.com?ref=npm)
7
+ [![Windows 10+](https://img.shields.io/badge/Windows-10%2B-blue)](https://local-mcp.com?ref=npm)
7
8
  [![GDPR](https://img.shields.io/badge/GDPR-compliant-green)](https://local-mcp.com/en/privacy)
8
9
 
9
- **No cloud. No tokens. No API keys. Free for the first 500 installs — yours to keep forever.**
10
+ **No cloud. No tokens. No API keys. 100% free.**
10
11
 
11
12
  ## Install
12
13
 
package/download.js CHANGED
@@ -165,7 +165,11 @@ async function ensureBinary() {
165
165
  }
166
166
 
167
167
  // Download the Go binary tarball from R2
168
- const url = `https://download.local-mcp.com/lmcp-server-${version}-${arch}.tar.gz`
168
+ // Use the platform-specific URL from /runtime/latest if available (avoids version mismatch)
169
+ const archKey = arch.replace('-', '_') // windows-amd64 → windows_amd64
170
+ const url = (info[archKey] && info[archKey].startsWith('http'))
171
+ ? info[archKey]
172
+ : `https://download.local-mcp.com/lmcp-server-${version}-${arch}.tar.gz`
169
173
  process.stderr.write(`\nLMCP v${version} (${arch}) not found in cache.\n`)
170
174
  process.stderr.write(`Downloading from ${url}\n`)
171
175
 
package/index.js CHANGED
@@ -107,6 +107,33 @@ async function main() {
107
107
  return true
108
108
  }
109
109
 
110
+ // On Windows: apply pending update before launching (same as Mac's UpdateManager)
111
+ // The Go server downloads new versions in background and stages them as .pending.
112
+ // On next Claude Desktop restart, we swap them in here.
113
+ if (process.platform === 'win32') {
114
+ const goVersionFile = path.join(CACHE_DIR, '.go-server-version')
115
+ const pendingBin = stableBin + '.pending'
116
+ const pendingVersion = path.join(CACHE_DIR, '.pending-version')
117
+ if (fs.existsSync(pendingBin)) {
118
+ try {
119
+ const oldBin = stableBin + '.old'
120
+ try { fs.unlinkSync(oldBin) } catch {}
121
+ try { fs.renameSync(stableBin, oldBin) } catch {}
122
+ fs.renameSync(pendingBin, stableBin)
123
+ if (fs.existsSync(pendingVersion)) {
124
+ const newVer = fs.readFileSync(pendingVersion, 'utf8').trim()
125
+ fs.writeFileSync(goVersionFile, newVer)
126
+ fs.unlinkSync(pendingVersion)
127
+ }
128
+ try { fs.unlinkSync(oldBin) } catch {}
129
+ try { fs.unlinkSync(path.join(CACHE_DIR, '.latest-version')) } catch {}
130
+ process.stderr.write(`LMCP updated to v${fs.readFileSync(goVersionFile, 'utf8').trim()}\n`)
131
+ } catch (e) {
132
+ process.stderr.write(`Update apply failed: ${e.message}\n`)
133
+ }
134
+ }
135
+ }
136
+
110
137
  // Fast path: if stable binary exists AND its version is >= our npm package version, exec directly.
111
138
  // Using >= (not ===) prevents Claude Desktop from downgrading a binary that the tray's
112
139
  // UpdateManager has already upgraded. LMC-375: machine 5F8445AE downgraded 3.0.72→3.0.70
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "local-mcp",
3
- "version": "3.0.144",
3
+ "version": "3.0.145",
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": {