UNPKG

@angular/cli

Version:
41 lines (40 loc) 1.68 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<{ directories: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>; transformations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{ [x: string]: string; }>>>; }, { instructions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>; stdout: import("zod").ZodOptional<import("zod").ZodString>; stderr: import("zod").ZodOptional<import("zod").ZodString>; }>]; 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[];