UNPKG

@angular/cli

Version:
38 lines (37 loc) 1.58 kB
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import type { AngularWorkspace } from '../../utilities/config'; import { AnyMcpToolDeclaration } from './tools/tool-registry'; /** * The set of tools that are available but not enabled by default. * These tools are considered experimental and may have limitations. */ export declare const EXPERIMENTAL_TOOLS: readonly [import("./tools/tool-registry").McpToolDeclaration<{ query: import("zod").ZodString; }, import("zod").ZodRawShape>, import("./tools/tool-registry").McpToolDeclaration<{ transformations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<[string, ...string[]]>, "many">>; }, { instructions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>; }>]; export declare function createMcpServer(options: { workspace?: AngularWorkspace; readOnly?: boolean; localOnly?: boolean; experimentalTools?: string[]; }, logger: { warn(text: string): void; }): Promise<McpServer>; export declare function assembleToolDeclarations(stableDeclarations: readonly AnyMcpToolDeclaration[], experimentalDeclarations: readonly AnyMcpToolDeclaration[], options: { readOnly?: boolean; localOnly?: boolean; experimentalTools?: string[]; logger: { warn(text: string): void; }; }): AnyMcpToolDeclaration[];