Angular Modernizer
    Preparing search index...

    MCP tool that lists the imports (and optionally export ... from re-exports) of a single file with their resolved targets.

    Resolution goes through the TypeScript module resolver, so tsconfig paths aliases (@shared/*, @core/*, ...) resolve to real project files. Use it instead of grepping import lines when classifying layer dependencies, checking barrels or tracing where a symbol really comes from.

    // Via MCP:
    // tool: list-imports
    // args: { file: '/project/src/app/user.component.ts', projectRoot: '/project' }

    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: "list-imports" = 'list-imports'

    Unique tool name.

    title: "List Imports" = 'List Imports'

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

      Tool execution result