Skip to content

Commit 50b81d3

Browse files
committed
refactor(@angular/cli): remove granular build, test, and e2e MCP tools
Remove build, test, and e2e standalone tool declarations from the MCP server registry. Now that the unified run_target Strategy Dispatcher facade is fully operational and verified, these granular tools are redundant. Removing them reduces system prompt context footprint by over 1,000 tokens, eliminates semantic clashing, and increases tool selection accuracy for client LLMs. (cherry picked from commit 377540d)
1 parent 2d4028c commit 50b81d3

7 files changed

Lines changed: 1 addition & 664 deletions

File tree

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@ import { LocalWorkspaceHost, createRootRestrictedHost } from './host';
1717
import { registerInstructionsResource } from './resources/instructions';
1818
import { AI_TUTOR_TOOL } from './tools/ai-tutor';
1919
import { BEST_PRACTICES_TOOL } from './tools/best-practices';
20-
import { BUILD_TOOL } from './tools/build';
2120
import { DEVSERVER_START_TOOL } from './tools/devserver/devserver-start';
2221
import { DEVSERVER_STOP_TOOL } from './tools/devserver/devserver-stop';
2322
import { DEVSERVER_WAIT_FOR_BUILD_TOOL } from './tools/devserver/devserver-wait-for-build';
2423
import { DOC_SEARCH_TOOL } from './tools/doc-search';
25-
import { E2E_TOOL } from './tools/e2e';
2624
import { ZONELESS_MIGRATION_TOOL } from './tools/onpush-zoneless-migration/zoneless-migration';
2725
import { LIST_PROJECTS_TOOL } from './tools/projects';
2826
import { RUN_TARGET_TOOL } from './tools/run-target/run-target';
29-
import { TEST_TOOL } from './tools/test';
3027
import { type AnyMcpToolDeclaration, registerTools } from './tools/tool-registry';
3128

3229
/**
@@ -50,13 +47,7 @@ const STABLE_TOOLS = [
5047
* The set of tools that are available but not enabled by default.
5148
* These tools are considered experimental and may have limitations.
5249
*/
53-
export const EXPERIMENTAL_TOOLS = [
54-
BUILD_TOOL,
55-
E2E_TOOL,
56-
TEST_TOOL,
57-
RUN_TARGET_TOOL,
58-
...DEVSERVER_TOOLS,
59-
] as const;
50+
export const EXPERIMENTAL_TOOLS = [RUN_TARGET_TOOL, ...DEVSERVER_TOOLS] as const;
6051

6152
/**
6253
* Experimental tools that are grouped together under a single name.

packages/angular/cli/src/commands/mcp/tools/build.ts

Lines changed: 0 additions & 105 deletions
This file was deleted.

packages/angular/cli/src/commands/mcp/tools/build_spec.ts

Lines changed: 0 additions & 108 deletions
This file was deleted.

packages/angular/cli/src/commands/mcp/tools/e2e.ts

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)