Skip to content

Commit 7efb1b3

Browse files
chore: add missing config properties for verification
The idea is to have all the MCP config in the OPTIONS object so that the verification method can look up the config being provided and if its valid or not.
1 parent 18ef230 commit 7efb1b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/common/config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ const OPTIONS = {
4949
"tlsDisabledProtocols",
5050
"username",
5151
"atlasTemporaryDatabaseUserLifetimeMs",
52+
"exportsPath",
53+
"exportTimeoutMs",
54+
"exportCleanupIntervalMs",
5255
],
5356
boolean: [
5457
"apiDeprecationErrors",
@@ -72,7 +75,7 @@ const OPTIONS = {
7275
"tlsFIPSMode",
7376
"version",
7477
],
75-
array: ["disabledTools", "loggers"],
78+
array: ["disabledTools", "loggers", "confirmationRequiredTools"],
7679
alias: {
7780
h: "help",
7881
p: "password",
@@ -91,19 +94,22 @@ const OPTIONS = {
9194
"greedy-arrays": true,
9295
"short-option-groups": false,
9396
},
97+
object: ["httpHeaders"],
9498
} as Readonly<Options>;
9599

96100
interface Options {
97101
string: string[];
98102
boolean: string[];
99103
array: string[];
104+
object: string[];
100105
alias: Record<string, string>;
101106
configuration: Record<string, boolean>;
102107
}
103108

104109
export const ALL_CONFIG_KEYS = new Set(
105110
(OPTIONS.string as readonly string[])
106111
.concat(OPTIONS.array)
112+
.concat(OPTIONS.object)
107113
.concat(OPTIONS.boolean)
108114
.concat(Object.keys(OPTIONS.alias))
109115
);

0 commit comments

Comments
 (0)