From 28a3feaeaff295afdf597aef382e988e922f6987 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Thu, 17 Sep 2026 13:18:29 -0400 Subject: [PATCH] refactor(@angular/cli): remove unused example database path from MCP server Removes the unused exampleDatabasePath property from McpToolContext and its instantiation in mcp-server.ts, which were leftover from the removal of the find_examples MCP tool. Also removes the unused join import. --- packages/angular/cli/src/commands/mcp/mcp-server.ts | 3 +-- packages/angular/cli/src/commands/mcp/tools/tool-registry.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/angular/cli/src/commands/mcp/mcp-server.ts b/packages/angular/cli/src/commands/mcp/mcp-server.ts index e6c7580c6ba9..e50fc3dfd3ac 100644 --- a/packages/angular/cli/src/commands/mcp/mcp-server.ts +++ b/packages/angular/cli/src/commands/mcp/mcp-server.ts @@ -7,7 +7,7 @@ */ import { McpServer } from '@modelcontextprotocol/server'; -import { join, normalize, resolve } from 'node:path'; +import { normalize, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import type { AngularWorkspace } from '../../utilities/config'; import { VERSION } from '../../utilities/version'; @@ -166,7 +166,6 @@ for equivalent actions. { workspace: options.workspace, logger, - exampleDatabasePath: join(__dirname, '../../../lib/code-examples.db'), devservers: new Map(), host: restrictedHost, roots: resolvedRoots, diff --git a/packages/angular/cli/src/commands/mcp/tools/tool-registry.ts b/packages/angular/cli/src/commands/mcp/tools/tool-registry.ts index 2784798d6de4..ae50f64d8fa2 100644 --- a/packages/angular/cli/src/commands/mcp/tools/tool-registry.ts +++ b/packages/angular/cli/src/commands/mcp/tools/tool-registry.ts @@ -21,7 +21,6 @@ export interface McpToolContext { server: McpServer; workspace?: AngularWorkspace; logger: { warn(text: string): void }; - exampleDatabasePath?: string; devservers: Map; host: Host; roots?: string[];