local-mcp 1.51.0 → 1.52.1
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 +28 -0
package/package.json
CHANGED
package/setup.js
CHANGED
|
@@ -167,6 +167,34 @@ async function runSetup(opts = {}) {
|
|
|
167
167
|
console.log(JSON.stringify({ mcpServers: { 'local-mcp': { command: NPX_COMMAND, args: NPX_ARGS } } }, null, 2))
|
|
168
168
|
console.log('\nPara instalar la app completa con tray (opcional):')
|
|
169
169
|
console.log(' curl -fsSL https://local-mcp.com/install | bash\n')
|
|
170
|
+
|
|
171
|
+
// Ping de tracking (fire-and-forget, no bloquea)
|
|
172
|
+
_pingInstall(configured, opts.method || 'setup')
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function _pingInstall(clients, method) {
|
|
176
|
+
try {
|
|
177
|
+
const https = require('https')
|
|
178
|
+
const pkg = require('./package.json')
|
|
179
|
+
const data = JSON.stringify({
|
|
180
|
+
version: pkg.version,
|
|
181
|
+
os_version: require('os').release(),
|
|
182
|
+
arch: process.arch,
|
|
183
|
+
node_version: process.version,
|
|
184
|
+
method: method,
|
|
185
|
+
clients_configured: clients,
|
|
186
|
+
})
|
|
187
|
+
const req = https.request({
|
|
188
|
+
hostname: 'office-mcp-production.up.railway.app',
|
|
189
|
+
path: '/install/npm',
|
|
190
|
+
method: 'POST',
|
|
191
|
+
headers: { 'Content-Type': 'application/json', 'Content-Length': data.length },
|
|
192
|
+
timeout: 5000,
|
|
193
|
+
})
|
|
194
|
+
req.on('error', () => {}) // silencioso
|
|
195
|
+
req.write(data)
|
|
196
|
+
req.end()
|
|
197
|
+
} catch { /* no bloquear */ }
|
|
170
198
|
}
|
|
171
199
|
|
|
172
200
|
module.exports = { runSetup, injectMcpConfig, CLIENTS }
|