Skip to content

Commit 151b695

Browse files
amishneclydin
authored andcommitted
fix(@angular/cli): Remove nonexistent link from MCP response
(cherry picked from commit b351f90)
1 parent 98ef098 commit 151b695

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ export async function runModernization(input: ModernizeInput, host: Host) {
100100
if (transformationNames.length === 0) {
101101
return createStructuredContentOutput({
102102
instructions: [
103-
'See https://angular.dev/best-practices for Angular best practices. ' +
104-
'You can call this tool if you have specific transformation you want to run.',
103+
'Call this tool with the specific transformations you want to run. See the tool description for more info. Also call the' +
104+
' `get_best_practices` tool for general Angular best practices.',
105105
],
106106
});
107107
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ describe('Modernize Tool', () => {
4343

4444
expect(mockHost.runCommand).not.toHaveBeenCalled();
4545
expect(structuredContent?.instructions).toEqual([
46-
'See https://angular.dev/best-practices for Angular best practices. ' +
47-
'You can call this tool if you have specific transformation you want to run.',
46+
'Call this tool with the specific transformations you want to run. See the tool description for more info. Also call the' +
47+
' `get_best_practices` tool for general Angular best practices.',
4848
]);
4949
});
5050

0 commit comments

Comments
 (0)