Skip to content

Commit d432be1

Browse files
chore: add missing config properties for verification (#567)
1 parent 18ef230 commit d432be1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/common/config.ts

Lines changed: 5 additions & 2 deletions
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",
@@ -358,7 +361,7 @@ export function warnAboutDeprecatedOrUnknownCliArgs(
358361
if (knownArgs.connectionString) {
359362
usedDeprecatedArgument = true;
360363
warn(
361-
"The --connectionString argument is deprecated. Prefer using the first positional argument for the connection string or the MDB_MCP_CONNECTION_STRING environment variable."
364+
"The --connectionString argument is deprecated. Prefer using the MDB_MCP_CONNECTION_STRING environment variable or the first positional argument for the connection string."
362365
);
363366
}
364367

tests/unit/common/config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ describe("CLI arguments", () => {
656656
{
657657
cliArg: "connectionString",
658658
warning:
659-
"The --connectionString argument is deprecated. Prefer using the first positional argument for the connection string or the MDB_MCP_CONNECTION_STRING environment variable.",
659+
"The --connectionString argument is deprecated. Prefer using the MDB_MCP_CONNECTION_STRING environment variable or the first positional argument for the connection string.",
660660
},
661661
] as TestCase[];
662662

0 commit comments

Comments
 (0)