Skip to content

Commit 3657958

Browse files
committed
refactor(@angular/cli): Fix capabilities registration
Capabilities are part of the `ServerOptions`, the _second_ argument of the constructor. This change also adds logging as a supported capability.
1 parent 58065c8 commit 3657958

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

packages/angular/cli/src/commands/mcp/mcp-server.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ import { registerDocSearchTool } from './tools/doc-search';
1818
export async function createMcpServer(context: {
1919
workspace?: AngularWorkspace;
2020
}): Promise<McpServer> {
21-
const server = new McpServer({
22-
name: 'angular-cli-server',
23-
version: VERSION.full,
24-
capabilities: {
25-
resources: {},
26-
tools: {},
21+
const server = new McpServer(
22+
{
23+
name: 'angular-cli-server',
24+
version: VERSION.full,
2725
},
28-
});
26+
{ capabilities: { resources: {}, tools: {}, logging: {} } },
27+
);
2928

3029
server.registerResource(
3130
'instructions',

0 commit comments

Comments
 (0)