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:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user