Angular Modernizer
    Preparing search index...

    MCP tool transform-code: applies one of the transformation types to a file (or, with files, to a batch) to fix architectural issues, including standalone component migration.

    Runs inside a safety envelope: pre-validation, a backup in the project (file copy plus git snapshot inside a repository) that rollback-changes can restore, a type check of the transformed file that rolls back on newly introduced errors (autoRollback, default true), and an optional build or lint check. A cancelled call restores the backup.

    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: string = 'transform-code'

    Unique tool name.

    title: string = 'Transform Code'

    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<TransformationResult>

      Tool execution result