enquire-mcp API reference - v3.11.6-rc.2
    Preparing search index...

    Function main

    • CLI entry point — the function dist/index.js invokes when a user runs enquire-mcp from the terminal. Builds the commander program, registers every subcommand (serve, serve-http, setup, install-model, install-ocr-lang, build-embeddings, index, eval, doctor, clear-cache, clear-index, clear-embeddings, gen-token), wires the shared retrieval flags via addAdvancedRetrievalOptions, and parses process.argv. Each subcommand action handles its own errors and sets process.exitCode; main itself does not catch — an unexpected throw propagates to the top-level handler in index.ts which prints it and exits non-zero.

      Returns Promise<void>

      A promise that resolves once argument parsing + the selected subcommand's action have completed (commander's parseAsync).

      // dist/index.js
      import { main } from "./cli.js";
      main().catch((e) => { console.error(e); process.exit(1); });

      v3.9.0-rc.28 (external-audit M-4) — the entry point previously had zero TSDoc.