File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import type { Secret } from "./keychain.js";
88import 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+
96106const ALL_CONFIG_KEYS = new Set (
97107 ( OPTIONS . string as readonly string [ ] )
98108 . concat ( OPTIONS . array )
You can’t perform that action at this time.
0 commit comments