We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 050bc12 commit c4c7408Copy full SHA for c4c7408
packages/monday-api-mcp/lib/utils/args/args.service.ts
@@ -63,6 +63,14 @@ export function validateArgs(parsedArgs: ParsedArgs): ValidatedArgs {
63
process.exit(1);
64
}
65
66
- // At this point, all required args are present, so we can safely cast
67
- return parsedArgs as unknown as ValidatedArgs;
+ const typedArgs: Record<string, any> = { ...parsedArgs };
+
68
+ ARG_CONFIGS.forEach((config) => {
69
+ if (typeof config.defaultValue === 'boolean' && parsedArgs[config.name] !== undefined) {
70
+ const stringValue = parsedArgs[config.name] as string;
71
+ typedArgs[config.name] = stringValue.toLowerCase() === 'true';
72
+ }
73
+ });
74
75
+ return typedArgs as unknown as ValidatedArgs;
76
0 commit comments