Skip to content

Commit ecea1e0

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.
1 parent be488e8 commit ecea1e0

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
@@ -29,6 +29,9 @@ export async function createMcpServer(
2929
resources: {},
3030
tools: {},
3131
},
32+
instructions:
33+
'For Angular development, this server provides tools to adhere to best practices, search documentation, and find code examples. ' +
34+
'When writing or modifying Angular code, use the MCP server and its tools instead of direct shell commands where possible.',
3235
});
3336

3437
server.registerResource(

0 commit comments

Comments
 (0)