cloudflare-mcp-smart-proxy 1.5.17 → 1.5.18

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudflare-mcp-smart-proxy",
3
- "version": "1.5.17",
3
+ "version": "1.5.18",
4
4
  "description": "Smart proxy for Cloudflare MCP - routes tools to cloud or local execution",
5
5
  "repository": {
6
6
  "type": "git",
@@ -276,12 +276,15 @@ export function resolveCodexAppServerSocket({
276
276
  homeDir = os.homedir(),
277
277
  codexHome = '',
278
278
  socketPath = '',
279
- runtimeDir = process.env.XDG_RUNTIME_DIR || ''
279
+ runtimeDir = process.env.XDG_RUNTIME_DIR || '',
280
+ pathExists = fs.existsSync
280
281
  } = {}) {
281
282
  const explicitSocketPath = socketPath || process.env.CODEX_APP_SERVER_SOCKET || '';
282
283
  if (explicitSocketPath) return path.resolve(explicitSocketPath);
283
284
  if (runtimeDir) return path.join(path.resolve(runtimeDir), 'codex', 'app-server.sock');
284
285
  const resolvedCodexHome = codexHome || process.env.CODEX_HOME || path.join(homeDir, '.codex');
286
+ const ipcSocketPath = path.join(path.resolve(resolvedCodexHome), 'ipc', 'ipc.sock');
287
+ if (pathExists(ipcSocketPath)) return ipcSocketPath;
285
288
  return path.join(resolvedCodexHome, 'app-server-control', 'app-server-control.sock');
286
289
  }
287
290