Skip to content

Commit 28a3fea

Browse files
committed
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.
1 parent 8235b43 commit 28a3fea

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

packages/angular/cli/src/commands/mcp/mcp-server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
import { McpServer } from '@modelcontextprotocol/server';
10-
import { join, normalize, resolve } from 'node:path';
10+
import { normalize, resolve } from 'node:path';
1111
import { fileURLToPath } from 'node:url';
1212
import type { AngularWorkspace } from '../../utilities/config';
1313
import { VERSION } from '../../utilities/version';
@@ -166,7 +166,6 @@ for equivalent actions.
166166
{
167167
workspace: options.workspace,
168168
logger,
169-
exampleDatabasePath: join(__dirname, '../../../lib/code-examples.db'),
170169
devservers: new Map<string, Devserver>(),
171170
host: restrictedHost,
172171
roots: resolvedRoots,

packages/angular/cli/src/commands/mcp/tools/tool-registry.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export interface McpToolContext {
2121
server: McpServer;
2222
workspace?: AngularWorkspace;
2323
logger: { warn(text: string): void };
24-
exampleDatabasePath?: string;
2524
devservers: Map<string, Devserver>;
2625
host: Host;
2726
roots?: string[];

0 commit comments

Comments
 (0)