Skip to content

Commit f1a7116

Browse files
clydinalan-agius4
authored andcommitted
fix(@angular/cli): update @modelcontextprotocol/sdk to v1.24.0
Also updates `zod` to v4.1.13. Closes #32004
1 parent 3d0e5da commit f1a7116

File tree

3 files changed

+153
-97
lines changed

3 files changed

+153
-97
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.9.0",
2929
"@listr2/prompt-adapter-inquirer": "3.0.5",
30-
"@modelcontextprotocol/sdk": "1.20.1",
30+
"@modelcontextprotocol/sdk": "1.24.0",
3131
"@schematics/angular": "workspace:0.0.0-PLACEHOLDER",
3232
"@yarnpkg/lockfile": "1.1.0",
3333
"algoliasearch": "5.40.1",
@@ -40,7 +40,7 @@
4040
"resolve": "1.22.11",
4141
"semver": "7.7.3",
4242
"yargs": "18.0.0",
43-
"zod": "3.25.76"
43+
"zod": "4.1.13"
4444
},
4545
"ng-update": {
4646
"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
server: McpServer;
1716
workspace?: AngularWorkspace;
@@ -27,7 +26,7 @@ export interface McpToolDeclaration<TInput extends ZodRawShape, TOutput extends
2726
name: string;
2827
title?: string;
2928
description: string;
30-
annotations?: ToolConfig['annotations'];
29+
annotations?: ToolAnnotations;
3130
inputSchema?: TInput;
3231
outputSchema?: TOutput;
3332
factory: McpToolFactory<TInput>;

0 commit comments

Comments
 (0)