Skip to content

Commit 18cf6c5

Browse files
alessiopelliccionealan-agius4
authored andcommitted
fix(@schematics/angular): add MCP configuration file to new workspaces
Changes: - Add .vscode/mcp.json template with angular-cli MCP server configuration - Update .gitignore template to whitelist .vscode/mcp.json - Update workspace schematic tests to expect mcp.json file Closes #31888
1 parent 53012c8 commit 18cf6c5

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

packages/schematics/angular/workspace/files/__dot__gitignore.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ yarn-error.log
2626
!.vscode/tasks.json
2727
!.vscode/launch.json
2828
!.vscode/extensions.json
29+
!.vscode/mcp.json
2930
.history/*
3031

3132
# Miscellaneous
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
// For more information, visit: https://angular.dev/ai/mcp
3+
"mcpServers": {
4+
"angular-cli": {
5+
"command": "npx",
6+
"args": ["-y", "@angular/cli", "mcp"]
7+
}
8+
}
9+
}

packages/schematics/angular/workspace/index_spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ describe('Workspace Schematic', () => {
2929
jasmine.arrayContaining([
3030
'/.vscode/extensions.json',
3131
'/.vscode/launch.json',
32+
'/.vscode/mcp.json',
3233
'/.vscode/tasks.json',
3334
'/.editorconfig',
3435
'/angular.json',
@@ -70,6 +71,7 @@ describe('Workspace Schematic', () => {
7071
jasmine.arrayContaining([
7172
'/.vscode/extensions.json',
7273
'/.vscode/launch.json',
74+
'/.vscode/mcp.json',
7375
'/.vscode/tasks.json',
7476
'/angular.json',
7577
'/.gitignore',

0 commit comments

Comments
 (0)