local-mcp 3.0.2 → 3.0.3
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 +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "local-mcp",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Pilot MCP — 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
|
@@ -113,6 +113,8 @@ function injectMcpConfig(client, command = NPX_COMMAND, args = NPX_ARGS) {
|
|
|
113
113
|
|
|
114
114
|
async function runSetup(opts = {}) {
|
|
115
115
|
const forceAll = opts.all || process.argv.includes('--all')
|
|
116
|
+
const refArg = process.argv.find(a => a.startsWith('--ref='))
|
|
117
|
+
if (refArg) process.env.LMCP_REF = refArg.split('=')[1]
|
|
116
118
|
|
|
117
119
|
console.log('\n╔══════════════════════════════════════╗')
|
|
118
120
|
console.log('║ Pilot MCP — Setup Wizard ║')
|
|
@@ -237,6 +239,10 @@ async function _installTray() {
|
|
|
237
239
|
}
|
|
238
240
|
}
|
|
239
241
|
|
|
242
|
+
function _getRef() {
|
|
243
|
+
return process.env.LMCP_REF || ''
|
|
244
|
+
}
|
|
245
|
+
|
|
240
246
|
function _getMachineId() {
|
|
241
247
|
try {
|
|
242
248
|
// Try reading from macOS Keychain (shared with Swift server)
|
|
@@ -269,6 +275,7 @@ function _pingInstall(clients, method) {
|
|
|
269
275
|
clients_configured: clients,
|
|
270
276
|
machine_id: _getMachineId(),
|
|
271
277
|
source: process.env.LMCP_SOURCE || '',
|
|
278
|
+
ref: _getRef(),
|
|
272
279
|
})
|
|
273
280
|
const req = https.request({
|
|
274
281
|
hostname: 'office-mcp-production.up.railway.app',
|