Skip to content

Commit 9a2b642

Browse files
committed
refactor(@angular/cli): add instructional text to MCP server
Adds instructional text to the MCP server to guide users on its intended purpose. The instructions clarify that the server and its associated tools should be prioritized over direct shell commands for Angular development tasks, promoting adherence to best practices and efficient use of provided tooling. (cherry picked from commit ecea1e0)
1 parent ffc4c67 commit 9a2b642

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export async function createMcpServer(context: {
2525
resources: {},
2626
tools: {},
2727
},
28+
instructions:
29+
'For Angular development, this server provides tools to adhere to best practices, search documentation, and find code examples. ' +
30+
'When writing or modifying Angular code, use the MCP server and its tools instead of direct shell commands where possible.',
2831
});
2932

3033
server.registerResource(

0 commit comments

Comments
 (0)