From 2b7575670b90f9e1f47ddf80b63e21c0b0ca1512 Mon Sep 17 00:00:00 2001 From: Alon Mishne Date: Fri, 16 Jan 2026 15:14:51 -0800 Subject: [PATCH] fix(@angular/cli): Remove nonexistent link from MCP response --- packages/angular/cli/src/commands/mcp/tools/modernize.ts | 4 ++-- packages/angular/cli/src/commands/mcp/tools/modernize_spec.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/angular/cli/src/commands/mcp/tools/modernize.ts b/packages/angular/cli/src/commands/mcp/tools/modernize.ts index 6864ba2a338c..5e638db84840 100644 --- a/packages/angular/cli/src/commands/mcp/tools/modernize.ts +++ b/packages/angular/cli/src/commands/mcp/tools/modernize.ts @@ -100,8 +100,8 @@ export async function runModernization(input: ModernizeInput, host: Host) { if (transformationNames.length === 0) { return createStructuredContentOutput({ instructions: [ - 'See https://angular.dev/best-practices for Angular best practices. ' + - 'You can call this tool if you have specific transformation you want to run.', + 'Call this tool with the specific transformations you want to run. See the tool description for more info. Also call the' + + ' `get_best_practices` tool for general Angular best practices.', ], }); } diff --git a/packages/angular/cli/src/commands/mcp/tools/modernize_spec.ts b/packages/angular/cli/src/commands/mcp/tools/modernize_spec.ts index 82f0c70e11d3..3f9d3ee04bc1 100644 --- a/packages/angular/cli/src/commands/mcp/tools/modernize_spec.ts +++ b/packages/angular/cli/src/commands/mcp/tools/modernize_spec.ts @@ -43,8 +43,8 @@ describe('Modernize Tool', () => { expect(mockHost.runCommand).not.toHaveBeenCalled(); expect(structuredContent?.instructions).toEqual([ - 'See https://angular.dev/best-practices for Angular best practices. ' + - 'You can call this tool if you have specific transformation you want to run.', + 'Call this tool with the specific transformations you want to run. See the tool description for more info. Also call the' + + ' `get_best_practices` tool for general Angular best practices.', ]); });