local-mcp 3.0.129 → 3.0.131
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/package.json +1 -1
- package/setup.js +8 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "local-mcp",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.131",
|
|
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
|
@@ -395,7 +395,7 @@ async function runSetup(opts = {}) {
|
|
|
395
395
|
|
|
396
396
|
// LMCP_METHOD lets install.sh pass 'curl' so we can distinguish it from
|
|
397
397
|
// a direct 'npx local-mcp setup' invocation in the analytics.
|
|
398
|
-
_pingInstall(configured, process.env.LMCP_METHOD || opts.method || 'npx-setup', email)
|
|
398
|
+
_pingInstall(configured, process.env.LMCP_METHOD || opts.method || 'npx-setup', email, binaryVersion)
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
async function _installTeamsProxy() {
|
|
@@ -560,13 +560,16 @@ function _trackEmailPrompt(result) {
|
|
|
560
560
|
} catch { /* non-fatal */ }
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
-
function _pingInstall(clients, method, email = '') {
|
|
563
|
+
function _pingInstall(clients, method, email = '', binaryVersion = '') {
|
|
564
564
|
try {
|
|
565
565
|
const https = require('https')
|
|
566
566
|
const pkg = require('./package.json')
|
|
567
567
|
const machineId = _getMachineId()
|
|
568
|
+
// Use the actual binary version (from /runtime/latest) so the admin panel
|
|
569
|
+
// shows the Swift server version, not the npm package version. npm and Swift
|
|
570
|
+
// versions can diverge when npm-only fixes are released.
|
|
568
571
|
const data = JSON.stringify({
|
|
569
|
-
version: pkg.version,
|
|
572
|
+
version: binaryVersion || pkg.version,
|
|
570
573
|
os_version: require('os').release(),
|
|
571
574
|
arch: process.arch,
|
|
572
575
|
node_version: process.version,
|
|
@@ -593,7 +596,7 @@ function _pingInstall(clients, method, email = '') {
|
|
|
593
596
|
if (preToken && preToken.startsWith('lmcp-pre-')) {
|
|
594
597
|
const pingData = JSON.stringify({
|
|
595
598
|
pre_token: preToken,
|
|
596
|
-
version: pkg.version,
|
|
599
|
+
version: binaryVersion || pkg.version,
|
|
597
600
|
os_version: require('os').release(),
|
|
598
601
|
})
|
|
599
602
|
const pingReq = https.request({
|
|
@@ -612,7 +615,7 @@ function _pingInstall(clients, method, email = '') {
|
|
|
612
615
|
// Even if the user doesn't restart their AI client right away
|
|
613
616
|
const hb = JSON.stringify({
|
|
614
617
|
machine_id: machineId,
|
|
615
|
-
version: pkg.version,
|
|
618
|
+
version: binaryVersion || pkg.version,
|
|
616
619
|
os_version: require('os').release(),
|
|
617
620
|
arch: process.arch,
|
|
618
621
|
transport: 'stdio',
|