You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Converts the application to use standalone components, directives, and pipes. This is a three-step process. After each step, you should verify that your application builds and runs correctly.',
56
-
instructions: `This migration requires running a cli schematic multiple times. Run the commands in the order listed below, verifying that your code builds and runs between each step:
57
-
58
-
1. Run \`ng g @angular/core:standalone\` and select "Convert all components, directives and pipes to standalone"
59
-
2. Run \`ng g @angular/core:standalone\` and select "Remove unnecessary NgModule classes"
60
-
3. Run \`ng g @angular/core:standalone\` and select "Bootstrap the project using standalone APIs"
61
-
`,
63
+
'Converts the application to use standalone components, directives, and pipes. This is a '+
64
+
'three-step process. After each step, you should verify that your application builds and '+
65
+
'runs correctly.',
66
+
instructions:
67
+
'This migration requires running a cli schematic multiple times. Run the commands in the '+
68
+
'order listed below, verifying that your code builds and runs between each step:\n\n'+
69
+
'1. Run `ng g @angular/core:standalone` and select "Convert all components, directives and pipes to standalone"\n'+
70
+
'2. Run `ng g @angular/core:standalone` and select "Remove unnecessary NgModule classes"\n'+
71
+
'3. Run `ng g @angular/core:standalone` and select "Bootstrap the project using standalone APIs"',
@@ -149,12 +162,16 @@ export function registerModernizeTool(server: McpServer): void {
149
162
title: 'Modernize Angular Code',
150
163
description:
151
164
'<Purpose>\n'+
152
-
'This tool modernizes Angular code by applying the latest best practices and syntax improvements, ensuring it is idiomatic, readable, and maintainable.\n\n'+
165
+
'This tool modernizes Angular code by applying the latest best practices and syntax improvements, '+
166
+
'ensuring it is idiomatic, readable, and maintainable.\n\n'+
153
167
'</Purpose>\n'+
154
168
'<Use Cases>\n'+
155
-
'* After generating new code: Run this tool immediately after creating new Angular components, directives, or services to ensure they adhere to modern standards.\n'+
156
-
'* On existing code: Apply to existing TypeScript files (.ts) and Angular templates (.ng.html) to update them with the latest features, such as the new built-in control flow syntax.\n\n'+
157
-
'* When the user asks for a specific transformation: When the transformation list is populated, these specific ones will be ran on the inputs.\n'+
169
+
'* After generating new code: Run this tool immediately after creating new Angular components, directives, '+
170
+
'or services to ensure they adhere to modern standards.\n'+
171
+
'* On existing code: Apply to existing TypeScript files (.ts) and Angular templates (.ng.html) to update '+
172
+
'them with the latest features, such as the new built-in control flow syntax.\n\n'+
173
+
'* When the user asks for a specific transformation: When the transformation list is populated, '+
174
+
'these specific ones will be ran on the inputs.\n'+
0 commit comments