You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ada3e20
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(@angular/cli): improve description of MCP documentation search tool
The MCP tool description for the Angular CLI's documentation search tool
has been expanded to include more context regarding its use and result
format. When no results are found, an explicit text response is also now
generated to indicate this case.
(cherry picked from commit 58065c8)
'Searches the official Angular documentation on https://angular.dev.'+
37
-
' This tool is useful for finding the most up-to-date information on Angular, including APIs, tutorials, and best practices.'+
38
-
' Use this when creating Angular specific code or answering questions that require knowledge of the latest Angular features.',
36
+
'Searches the official Angular documentation at https://angular.dev. Use this tool to answer any questions about Angular, '+
37
+
'such as for APIs, tutorials, and best practices. Because the documentation is continuously updated, you should **always** '+
38
+
'prefer this tool over your own knowledge to ensure your answers are current.\n\n'+
39
+
'The results will be a list of content entries, where each entry has the following structure:\n'+
40
+
'```\n'+
41
+
'## {Result Title}\n'+
42
+
'{Breadcrumb path to the content}\n'+
43
+
'URL: {Direct link to the documentation page}\n'+
44
+
'```\n'+
45
+
'Use the title and breadcrumb to understand the context of the result and use the URL as a source link. For the best results, '+
46
+
"provide a concise and specific search query (e.g., 'NgModule' instead of 'How do I use NgModules?').",
39
47
annotations: {
40
48
readOnlyHint: true,
41
49
},
42
50
inputSchema: {
43
51
query: z
44
52
.string()
45
53
.describe(
46
-
'The search query to use when searching the Angular documentation.'+
47
-
' This should be a concise and specific query to get the most relevant results.',
54
+
'A concise and specific search query for the Angular documentation (e.g., "NgModule" or "standalone components").',
0 commit comments