INNER CODE UNIT · JavaScript

socket

bvisible/mcp-ssh-manager · src/index.js:481

    const socket = Duplex.from(/** @type {any} */ ({
      readable: child.stdout,
      writable: child.stdin,
      allowHalfOpen: false
    }));

    // Forward proxy stderr to the MCP server's stderr for debugging
    child.stderr.on('data', (chunk) => {
      process.stderr.write(`[proxy-command] ${chunk}`);
    });

    let settled = false;
    const settle = (fn, arg) => {
      if (settled) return;
      settled = true;
      fn(arg);
    };

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…