local-mcp 1.44.3 → 1.44.5

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.
Files changed (3) hide show
  1. package/download.js +3 -4
  2. package/index.js +3 -5
  3. package/package.json +1 -1
package/download.js CHANGED
@@ -102,12 +102,11 @@ async function ensureRuntime() {
102
102
  const pythonBin = path.join(versionDir, 'bin', 'python3')
103
103
  const serverPath = path.join(versionDir, 'server.py')
104
104
 
105
- // Ya está en cache — verificar integridad básica (python313.zip requerido)
106
- const zipPath = path.join(versionDir, 'lib', 'python313.zip')
107
- if (fs.existsSync(pythonBin) && fs.existsSync(serverPath) && fs.existsSync(zipPath)) {
105
+ // Ya está en cache — verificar que los archivos esenciales existan
106
+ if (fs.existsSync(pythonBin) && fs.existsSync(serverPath)) {
108
107
  return { pythonBin, serverPath, runtimeDir: versionDir }
109
108
  }
110
- // Cache incompleto (falta zip u otros archivos) → limpiar y re-descargar
109
+ // Cache incompleto → limpiar y re-descargar
111
110
  if (fs.existsSync(versionDir)) {
112
111
  process.stderr.write(` Cache incompleto — re-descargando...\n`)
113
112
  fs.rmSync(versionDir, { recursive: true, force: true })
package/index.js CHANGED
@@ -95,14 +95,12 @@ async function main() {
95
95
  env.DYLD_LIBRARY_PATH = frameworksPath + (env.DYLD_LIBRARY_PATH ? ':' + env.DYLD_LIBRARY_PATH : '')
96
96
  }
97
97
 
98
- // PYTHONHOME + PYTHONPATH para aislar el runtime del sistema
99
- env.PYTHONHOME = runtimeDir
98
+ // PYTHONPATH: módulos del runtime (sin zip magic number varía entre builds)
99
+ // PYTHONNOUSERSITE: evita mezclar con site-packages del sistema
100
100
  env.PYTHONNOUSERSITE = '1'
101
-
102
101
  const sitePkgs = path.join(libPath, 'site-packages')
103
102
  const libDynload = path.join(libPath, 'lib-dynload')
104
- const zipLib = path.join(runtimeDir, 'lib', 'python313.zip')
105
- const pyPaths = [zipLib, libPath, sitePkgs, libDynload]
103
+ const pyPaths = [libPath, sitePkgs, libDynload]
106
104
  .filter(p => require('fs').existsSync(p))
107
105
  if (pyPaths.length > 0) {
108
106
  env.PYTHONPATH = pyPaths.join(':') + (env.PYTHONPATH ? ':' + env.PYTHONPATH : '')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "local-mcp",
3
- "version": "1.44.3",
3
+ "version": "1.44.5",
4
4
  "description": "Connect Claude, Cursor, Windsurf and other AI agents to Mail, Calendar, Contacts, Teams and OneDrive on Mac — no cloud, no tokens",
5
5
  "main": "index.js",
6
6
  "bin": {