Angular Modernizer
    Preparing search index...

    MCP tool compare-health: runs the scan-all scan and compares it with the previous run: which violations are new, fixed or unchanged, per rule and per file.

    scan-all returns a window of maxResults violations and sums only that window, so a comparison of two scan-all answers would compare two windows. This tool takes the complete result, stores it as a snapshot in the target project (default .angular-modernizer-cache/health/last-run.json, ignored like the cache) and compares the next run against it.

    The snapshot is replaced after every comparison unless updateSnapshot is false. When the stored run used another scope (rules, include or exclude patterns) or the file cannot be read, nothing is compared and the file is kept unless updateSnapshot is explicitly true. A cancelled scan throws instead of comparing or writing a partial snapshot.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    annotations: ToolAnnotations = ...

    Behavior hints for clients (MCP 2025-03-26); hints, not guarantees.

    description: string = ...

    Human-readable description of what the tool does.

    name: "compare-health" = 'compare-health'

    Unique tool name.

    title: "Compare Health With Last Run" = 'Compare Health With Last Run'

    Display name for clients (MCP 2025-06-18).

    Methods

    • Execute the tool with given arguments.

      Parameters

      • args: Record<string, unknown>

        Tool arguments validated against inputSchema

      • ctx: ToolContext = {}

        Cancellation and progress of the MCP request (absent in direct calls)

      Returns Promise<CompareHealthOutput>

      Tool execution result