Skip to content

Commit 2495637

Browse files
committed
fix(@angular/cli): use narrower types for new MCP TS SDK compatibility
1 parent fdbb65d commit 2495637

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

packages/angular/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@angular-devkit/schematics": "workspace:0.0.0-PLACEHOLDER",
2828
"@inquirer/prompts": "7.9.0",
2929
"@listr2/prompt-adapter-inquirer": "3.0.5",
30-
"@modelcontextprotocol/sdk": "1.25.1",
30+
"@modelcontextprotocol/sdk": "1.25.2",
3131
"@schematics/angular": "workspace:0.0.0-PLACEHOLDER",
3232
"@yarnpkg/lockfile": "1.1.0",
3333
"algoliasearch": "5.40.1",

packages/angular/cli/src/commands/mcp/tools/best-practices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function createBestPracticesHandler({ logger }: McpToolContext) {
211211
type: 'text' as const,
212212
text: content,
213213
annotations: {
214-
audience: ['assistant'],
214+
audience: ['assistant' as const],
215215
priority: 0.9,
216216
source,
217217
},

packages/angular/cli/src/commands/mcp/tools/doc-search.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ function createDocSearchHandler({ logger }: McpToolContext) {
176176
const textContent: {
177177
type: 'text';
178178
text: string;
179-
annotations?: { audience: string[]; priority: number };
179+
annotations?: { audience: ('assistant' | 'user')[]; priority: number };
180180
}[] = [
181181
{
182182
type: 'text' as const,
183183
text: `Showing results for Angular v${finalSearchedVersion} documentation.`,
184184
annotations: {
185-
audience: ['assistant'],
185+
audience: ['assistant' as const],
186186
priority: 0.9,
187187
},
188188
},

pnpm-lock.yaml

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ minimumReleaseAge: 1440
2222
minimumReleaseAgeExclude:
2323
- '@angular-devkit/*'
2424
- '@angular/*'
25+
- '@modelcontextprotocol/[email protected]' # Fix: https://www.cve.org/CVERecord?id=CVE-2026-0621
2526
- '@ngtools/webpack'
2627
- '@schematics/*'
2728
- 'ng-packagr'

0 commit comments

Comments
 (0)