Angular Modernizer
    Preparing search index...

    Debug watcher: writes periodic status updates (heartbeat, memory, running operations) to mcp-server.log to help debug hanging operations, and optionally serves a health check over HTTP. The server starts it only when ANGULAR_MODERNIZER_DEBUG is set; its timer is unref()ed and never keeps the process alive.

    interface MCPWatcher {
        completeOperation(
            operationId: string,
            success?: boolean,
            message?: string,
        ): void;
        log(level: string, message: string): void;
        registerOperation(toolName: string, operationId?: string): string;
        start(): void;
        stop(): void;
        updateOperation(operationId: string, phase: string, details?: string): void;
    }
    Index

    Methods

    • Complete an operation

      Parameters

      • operationId: string
      • success: boolean = true
      • Optionalmessage: string

      Returns void

    • Log a message

      Parameters

      • level: string
      • message: string

      Returns void

    • Register start of an operation

      Parameters

      • toolName: string
      • OptionaloperationId: string

      Returns string

    • Start the heartbeat loop

      Returns void

    • Stop the heartbeat loop

      Returns void

    • Update operation phase/status

      Parameters

      • operationId: string
      • phase: string
      • Optionaldetails: string

      Returns void