File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/angular/cli/src/commands/mcp/tools Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1515 * guide bundled with the Angular CLI.
1616 */
1717
18+ import type { CallToolResult } from '@modelcontextprotocol/sdk/types' ;
1819import { readFile , stat } from 'node:fs/promises' ;
1920import { createRequire } from 'node:module' ;
2021import path from 'node:path' ;
@@ -211,7 +212,7 @@ function createBestPracticesHandler({ logger }: McpToolContext) {
211212 type : 'text' as const ,
212213 text : content ,
213214 annotations : {
214- audience : [ 'assistant' ] ,
215+ audience : [ 'assistant' as const ] ,
215216 priority : 0.9 ,
216217 source,
217218 } ,
Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments