IFClite TypeScript API
    Preparing search index...

    Interface CliOptions

    interface CliOptions {
        allowedOrigins?: string[];
        allowedPaths?: string[];
        autoViewer: boolean;
        bridge: boolean;
        bridgePort?: number;
        bridgeViewerUrl?: string;
        bsdd?: string;
        channel?: boolean;
        errors: string[];
        files: string[];
        help: boolean;
        host?: string;
        insecure: boolean;
        openBrowser: boolean;
        port: number;
        readOnly: boolean;
        readOnlyTokens: string[];
        tokens: string[];
        transport: "http" | "stdio";
        version: boolean;
        viewerPort: number;
        warnings: string[];
    }
    Index
    allowedOrigins?: string[]

    Browser Origins allowed to read HTTP responses cross-origin. Empty = none.

    allowedPaths?: string[]
    autoViewer: boolean
    bridge: boolean

    --bridge: add tools from a paired browser tab.

    bridgePort?: number

    --bridge-port; undefined means DEFAULT_BRIDGE_PORT. 0 picks a free port.

    bridgeViewerUrl?: string

    --bridge-viewer-url: base of the pairing link; its origin may connect.

    bsdd?: string
    channel?: boolean

    --channel (bridge only): push viewer UI events as Claude Code channel messages.

    errors: string[]

    Usage errors: a value flag with no value. The caller prints them and exits without starting, since guessing could drop a token or --read-only.

    files: string[]
    help: boolean

    --help/-h was passed. The caller prints usage and exits.

    host?: string

    undefined → caller didn't pass --host; CLI picks loopback by default

    insecure: boolean
    openBrowser: boolean
    port: number
    readOnly: boolean
    readOnlyTokens: string[]

    --read-only-token, repeatable. Each gets the --read-only preset (read, validate, export).

    tokens: string[]

    --token, repeatable. Each one gets the server's scope (the --read-only preset under --read-only).

    transport: "http" | "stdio"
    version: boolean

    --version/-v was passed. The caller prints the version and exits.

    viewerPort: number
    warnings: string[]

    Usage problems that should not stop the server: unknown flags and flags that do nothing. The caller prints them on stderr. They are warnings, not errors, because MCP client configs written for older versions still pass flags this version dropped.