INNER CODE UNIT · TypeScript

isFastPathKeepAliveDisabled

openclaw/mcporter · src/cli.ts:620

function isFastPathKeepAliveDisabled(server: string): boolean {
  const raw = process.env.MCPORTER_DISABLE_KEEPALIVE ?? process.env.MCPORTER_NO_KEEPALIVE;
  if (!raw) {
    return false;
  }
  const disabled = new Set(
    raw
      .split(',')
      .map((entry) => entry.trim().toLowerCase())
      .filter(Boolean)
  );
  return disabled.has('*') || disabled.has(server.toLowerCase());
}

function createDaemonOnlyRuntime(daemonClient: import('./daemon/client.js').DaemonClient): Runtime {
  return {
    listServers: () => [],
    getDefinitions: () => [],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…