fix: handle missing third-party tool toolGroup description gracefully (#2224)

Angular's third-party tools currently do not provide a description of
the toolGroup, only of the individual tools. We don't want to fail in
this case.
This commit is contained in:
Wolfgang Beyer
2026-06-18 10:06:00 +02:00
committed by GitHub
parent 163a581cc1
commit 8fe398eb5d
+2 -1
View File
@@ -130,7 +130,8 @@ async function getToolGroups(page: McpPage): Promise<ToolGroups> {
if (
typeof toolGroup.name !== 'string' ||
typeof toolGroup.description !== 'string' ||
(toolGroup.description &&
typeof toolGroup.description !== 'string') ||
!Array.isArray(toolGroup.tools)
) {
console.error('Invalid toolGroup:', toolGroup);