You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/common/config.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -279,17 +279,17 @@ export function warnAboutDeprecatedCliArgs(
279
279
warn: (msg: string)=>void
280
280
): void{
281
281
console.log(args);
282
-
letwasWarned=false;
282
+
letusedDeprecatedArgument=false;
283
283
// the first position argument should be used
284
284
// instead of --connectionString, as it's how the mongosh works.
285
285
if(args.connectionString){
286
-
wasWarned=true;
286
+
usedDeprecatedArgument=true;
287
287
warn(
288
288
"The --connectionString argument is deprecated. Prefer using the first positional argument for the connection string or the MDB_MCP_CONNECTION_STRING environment variable."
289
289
);
290
290
}
291
291
292
-
if(wasWarned){
292
+
if(usedDeprecatedArgument){
293
293
warn("Refer to https://www.mongodb.com/docs/mcp-server/get-started/ for setting up the MCP Server.");
0 commit comments