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.', ]); });