We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abe6a25 commit 3f2fd50Copy full SHA for 3f2fd50
1 file changed
libs/mcp/tasks/src/lib/mcp-task-registry.class.ts
@@ -139,8 +139,14 @@ export class MCPTaskRegistry {
139
taskFunction: IGlobalIndexedToken<GlobalFunctionToken>,
140
taskStructure: IGlobalIndexedToken<GlobalStructureToken>,
141
) {
142
+ const match = TASK_REGEX.exec(taskStructure.meta.display);
143
+
144
+ if (match === null) {
145
+ return;
146
+ }
147
148
/** Get task display name */
- const taskDisplay = TASK_REGEX.exec(taskStructure.meta.display)[1];
149
+ const taskDisplay = match[1];
150
151
/** Determine the type of task */
152
const toolType = taskStructure.name.startsWith('envi') ? 'ENVI' : 'IDL';
0 commit comments