Skip to content

Commit 9581337

Browse files
split options
1 parent 4a9d879 commit 9581337

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/common/config.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { Secret } from "./keychain.js";
88
import levenshtein from "ts-levenshtein";
99

1010
// From: https://github.com/mongodb-js/mongosh/blob/main/packages/cli-repl/src/arg-parser.ts
11-
const OPTIONS = {
11+
const MONGOSH_OPTIONS = {
1212
string: [
1313
"apiBaseUrl",
1414
"apiClientId",
@@ -47,8 +47,7 @@ const OPTIONS = {
4747
"tlsCertificateKeyFilePassword",
4848
"tlsCertificateSelector",
4949
"tlsDisabledProtocols",
50-
"username",
51-
"atlasTemporaryDatabaseUserLifetimeMs",
50+
"username"
5251
],
5352
boolean: [
5453
"apiDeprecationErrors",
@@ -93,6 +92,17 @@ const OPTIONS = {
9392
},
9493
} as const;
9594

95+
const MCP_SERVER_OPTIONS = {
96+
string: [
97+
"atlasTemporaryDatabaseUserLifetimeMs",
98+
],
99+
} as const;
100+
101+
const OPTIONS = {
102+
...MONGOSH_OPTIONS,
103+
...MCP_SERVER_OPTIONS,
104+
} as const;
105+
96106
const ALL_CONFIG_KEYS = new Set(
97107
(OPTIONS.string as readonly string[])
98108
.concat(OPTIONS.array)

0 commit comments

Comments
 (0)