Angular Modernizer
    Preparing search index...

    Central registry for MCP tools: registration, discovery and execution.

    Index

    Constructors

    Methods

    • Clear all registered tools.

      Returns void

    • Execute a tool by name with given arguments.

      Parameters

      • name: string

        Tool name

      • args: Record<string, unknown>

        Tool arguments

      • Optionalctx: ToolContext

        Cancellation and progress of the request

      Returns Promise<unknown>

      Tool execution result in MCP format

      Error if tool not found

    • Get all registered tools.

      Returns MCPTool[]

      Array of all registered tools

    • Get all registered tools as a map.

      Returns Map<string, MCPTool>

      Map of tool name to tool instance

    • Get registry statistics.

      Returns { toolNames: string[]; totalTools: number }

      Statistics about registered tools

      • toolNames: string[]

        Names of the registered tools.

      • totalTools: number

        Number of registered tools.

    • Get a registered tool by name.

      Parameters

      • name: string

        Tool name

      Returns MCPTool | undefined

      The tool or undefined if not found

    • Get tool names for discovery.

      Returns string[]

      Array of tool names

    • Check if a tool is registered.

      Parameters

      • name: string

        Tool name

      Returns boolean

      True if tool exists

    • Register a new MCP tool.

      Parameters

      Returns void

      Error if tool name is already registered

    • Unregister a tool.

      Parameters

      • name: string

        Tool name

      Returns boolean

      True if tool was removed, false if not found