Skip to content

Commit cfbb616

Browse files
clydinalan-agius4
authored andcommitted
fix(@angular/cli): update @modelcontextprotocol/sdk to v1.24.0
Also updates `zod` to v4.1.13.
1 parent d4ca7b7 commit cfbb616

File tree

3 files changed

+44
-25
lines changed

3 files changed

+44
-25
lines changed

packages/angular/cli/package.json

Lines changed: 2 additions & 2 deletions
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.8.2",
2929
"@listr2/prompt-adapter-inquirer": "3.0.1",
30-
"@modelcontextprotocol/sdk": "1.17.3",
30+
"@modelcontextprotocol/sdk": "1.24.0",
3131
"@schematics/angular": "workspace:0.0.0-PLACEHOLDER",
3232
"@yarnpkg/lockfile": "1.1.0",
3333
"algoliasearch": "5.35.0",
@@ -39,7 +39,7 @@
3939
"resolve": "1.22.10",
4040
"semver": "7.7.2",
4141
"yargs": "18.0.0",
42-
"zod": "3.25.76"
42+
"zod": "4.1.13"
4343
},
4444
"ng-update": {
4545
"migrations": "@schematics/angular/migrations/migration-collection.json",

packages/angular/cli/src/commands/mcp/tools/tool-registry.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
*/
88

99
import type { McpServer, ToolCallback } from '@modelcontextprotocol/sdk/server/mcp.js';
10-
import { ZodRawShape } from 'zod';
10+
import type { ToolAnnotations } from '@modelcontextprotocol/sdk/types';
11+
import type { ZodRawShape } from 'zod';
1112
import type { AngularWorkspace } from '../../../utilities/config';
1213

13-
type ToolConfig = Parameters<McpServer['registerTool']>[1];
14-
1514
export interface McpToolContext {
1615
workspace?: AngularWorkspace;
1716
logger: { warn(text: string): void };
@@ -26,7 +25,7 @@ export interface McpToolDeclaration<TInput extends ZodRawShape, TOutput extends
2625
name: string;
2726
title?: string;
2827
description: string;
29-
annotations?: ToolConfig['annotations'];
28+
annotations?: ToolAnnotations;
3029
inputSchema?: TInput;
3130
outputSchema?: TOutput;
3231
factory: McpToolFactory<TInput>;

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)