Angular Modernizer
    Preparing search index...

    MCP tool for building a caller/callee graph for a named method, function, constructor, get/set accessor or arrow-function property. Supports configurable traversal direction and depth.

    Use this after parse-stack-trace or find-usages to understand how an error propagates through the call hierarchy. Useful for determining blast radius before proposing a bug fix.

    The graph is capped at maxNodes (default 200); a capped result carries truncated: true and a hint in the summary. Callers are not expanded through lifecycle hooks or interface members of foreign classes unless includeLifecycleHooks is set. Projects are cached per tsconfig.

    // Via MCP:
    // tool: get-call-graph
    // args: { method: 'getUser', file: '/project/src/app/user.service.ts', projectRoot: '/project' }
    // args: { method: 'AuthInterceptor.constructor', file: '/project/src/app/auth.interceptor.ts',
    // projectRoot: '/project', direction: 'down', depth: 4 }

    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: "get-call-graph" = 'get-call-graph'

    Unique tool name.

    title: "Get Call Graph" = 'Get Call Graph'

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

      Tool execution result