@marianfoo/adt-ls - v0.4.1
    Preparing search index...

    Function startMcpServerWithFallback

    • Start adt-ls's MCP server, advancing to the next port when the requested one is bound — concurrent instances / leftover binds / parallel tests all contend for the default port. Tries attempts consecutive ports; only a bind failure is retried (any other error rethrows immediately). start is injectable for tests. Returns the EFFECTIVE result.

      Parameters

      • start: (port: number) => Promise<StartMcpServerResult>
      • startPort: number
      • attempts: number = 20
      • onRetry: (busyPort: number) => void = ...

      Returns Promise<StartMcpServerResult>