Angular Modernizer
    Preparing search index...

    MCP tool for finding all references to a symbol (class, method, function, variable, constant) across a TypeScript project.

    Uses ts-morph findReferences() via UsageFinder from @angular-modernizer/api. Ideal as a second step in bug investigation after parse-stack-trace has identified the affected files and symbols.

    // Via MCP:
    // tool: find-usages
    // args: { symbol: 'UserService', projectRoot: '/my/project', file: '/my/project/src/app/user.component.ts' }

    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: "find-usages" = 'find-usages'

    Unique tool name.

    title: "Find Usages" = 'Find Usages'

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

      Tool execution result