local-mcp 1.44.1 → 1.44.2

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 (2) hide show
  1. package/index.js +15 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -84,14 +84,28 @@ async function main() {
84
84
 
85
85
  const { pythonBin, serverPath, runtimeDir } = runtime
86
86
 
87
- // Frameworks bundleados (libssl, libcrypto, etc.)
87
+ // Variables de entorno para el servidor Python
88
88
  const frameworksPath = path.join(runtimeDir, 'Frameworks')
89
+ const libPath = path.join(runtimeDir, 'lib', 'python3.13')
89
90
  const env = { ...process.env }
91
+
92
+ // Frameworks bundleados (libssl, libcrypto, liblzma, etc.)
90
93
  if (require('fs').existsSync(frameworksPath)) {
91
94
  env.DYLD_FRAMEWORK_PATH = frameworksPath + (env.DYLD_FRAMEWORK_PATH ? ':' + env.DYLD_FRAMEWORK_PATH : '')
92
95
  env.DYLD_LIBRARY_PATH = frameworksPath + (env.DYLD_LIBRARY_PATH ? ':' + env.DYLD_LIBRARY_PATH : '')
93
96
  }
94
97
 
98
+ // PYTHONPATH: asegura que el Python del runtime encuentre sus módulos
99
+ const sitePkgs = path.join(libPath, 'site-packages')
100
+ const libDynload = path.join(libPath, 'lib-dynload')
101
+ const zipLib = path.join(path.dirname(libPath), 'python313.zip')
102
+ const pyPaths = [zipLib, libPath, sitePkgs, libDynload]
103
+ .filter(p => require('fs').existsSync(p))
104
+ if (pyPaths.length > 0) {
105
+ env.PYTHONPATH = pyPaths.join(':') + (env.PYTHONPATH ? ':' + env.PYTHONPATH : '')
106
+ env.PYTHONNOUSERSITE = '1' // no mezclar con site-packages del sistema
107
+ }
108
+
95
109
  const extraArgs = process.argv.slice(cmd ? 2 : 3)
96
110
  const result = spawnSync(pythonBin, [serverPath, 'stdio', ...extraArgs], {
97
111
  stdio: 'inherit',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "local-mcp",
3
- "version": "1.44.1",
3
+ "version": "1.44.2",
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": {