Angular Modernizer
    Preparing search index...

    MCP tool for searching across all TypeScript source files in a project. Supports three modes: literal text, regular expression, and TypeScript named-declaration (symbol) lookup.

    Use during bug investigation to locate where a string constant is defined, find every file that references a specific error message, or locate the declaration of an unknown symbol encountered in a stack trace.

    // Via MCP:
    // tool: search-codebase
    // args: { query: 'TODO', mode: 'text', projectRoot: '/project' }
    // args: { query: 'UserService', mode: 'symbol', projectRoot: '/project' }
    // args: { query: 'selector:\\s*["\']app-[^"\']+', mode: 'pattern', 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: "search-codebase" = 'search-codebase'

    Unique tool name.

    title: "Search Codebase" = 'Search Codebase'

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

      Tool execution result