local-mcp 3.0.131 → 3.0.133
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 +1 -1
- package/package.json +1 -1
- package/setup.js +7 -1
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "local-mcp",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.133",
|
|
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": {
|
package/setup.js
CHANGED
|
@@ -141,10 +141,12 @@ async function runSetup(opts = {}) {
|
|
|
141
141
|
// All clients use npx as launcher (self-healing if binary is missing/broken)
|
|
142
142
|
let stableCommand = NPX_COMMAND
|
|
143
143
|
let stableArgs = NPX_ARGS
|
|
144
|
+
let binaryVersion = ''
|
|
144
145
|
try {
|
|
145
146
|
const { ensureBinary, CACHE_DIR } = require('./download')
|
|
146
147
|
process.stderr.write('Downloading LMCP runtime...\n')
|
|
147
|
-
const { binPath, version:
|
|
148
|
+
const { binPath, version: bv } = await ensureBinary()
|
|
149
|
+
binaryVersion = bv || ''
|
|
148
150
|
// Copy binary to stable path (npx fast-path will exec it directly)
|
|
149
151
|
const stablePath = path.join(CACHE_DIR, 'local-mcp-server')
|
|
150
152
|
try {
|
|
@@ -554,6 +556,7 @@ function _trackEmailPrompt(result) {
|
|
|
554
556
|
headers: { 'Content-Type': 'application/json', 'Content-Length': data.length },
|
|
555
557
|
timeout: 5000,
|
|
556
558
|
})
|
|
559
|
+
req.on('response', (res) => res.resume())
|
|
557
560
|
req.on('error', () => {})
|
|
558
561
|
req.write(data)
|
|
559
562
|
req.end()
|
|
@@ -587,6 +590,7 @@ function _pingInstall(clients, method, email = '', binaryVersion = '') {
|
|
|
587
590
|
headers: { 'Content-Type': 'application/json', 'Content-Length': data.length },
|
|
588
591
|
timeout: 5000,
|
|
589
592
|
})
|
|
593
|
+
req.on('response', (res) => res.resume())
|
|
590
594
|
req.on('error', () => {})
|
|
591
595
|
req.write(data)
|
|
592
596
|
req.end()
|
|
@@ -606,6 +610,7 @@ function _pingInstall(clients, method, email = '', binaryVersion = '') {
|
|
|
606
610
|
headers: { 'Content-Type': 'application/json', 'Content-Length': pingData.length },
|
|
607
611
|
timeout: 5000,
|
|
608
612
|
})
|
|
613
|
+
pingReq.on('response', (res) => res.resume())
|
|
609
614
|
pingReq.on('error', () => {})
|
|
610
615
|
pingReq.write(pingData)
|
|
611
616
|
pingReq.end()
|
|
@@ -630,6 +635,7 @@ function _pingInstall(clients, method, email = '', binaryVersion = '') {
|
|
|
630
635
|
headers: { 'Content-Type': 'application/json', 'Content-Length': hb.length },
|
|
631
636
|
timeout: 5000,
|
|
632
637
|
})
|
|
638
|
+
hbReq.on('response', (res) => res.resume())
|
|
633
639
|
hbReq.on('error', () => {})
|
|
634
640
|
hbReq.write(hb)
|
|
635
641
|
hbReq.end()
|