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
+23-4Lines changed: 23 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -319,7 +319,7 @@ export function warnAboutDeprecatedOrUnknownCliArgs(
319
319
if(knownArgs.connectionString){
320
320
usedDeprecatedArgument=true;
321
321
warn(
322
-
"The --connectionString argument is deprecated. Prefer using the MDB_MCP_CONNECTION_STRING environment variable or the first positional argument for the connection string."
322
+
"Warning: The --connectionString argument is deprecated. Prefer using the MDB_MCP_CONNECTION_STRING environment variable or the first positional argument for the connection string."
323
323
);
324
324
}
325
325
@@ -333,15 +333,15 @@ export function warnAboutDeprecatedOrUnknownCliArgs(
333
333
if(!valid){
334
334
usedInvalidArgument=true;
335
335
if(suggestion){
336
-
warn(`Invalid command line argument '${providedKey}'. Did you mean '${suggestion}'?`);
336
+
warn(`Warning: Invalid command line argument '${providedKey}'. Did you mean '${suggestion}'?`);
337
337
}else{
338
-
warn(`Invalid command line argument '${providedKey}'.`);
338
+
warn(`Warning: Invalid command line argument '${providedKey}'.`);
339
339
}
340
340
}
341
341
}
342
342
343
343
if(usedInvalidArgument||usedDeprecatedArgument){
344
-
warn("Refer to https://www.mongodb.com/docs/mcp-server/get-started/ for setting up the MCP Server.");
344
+
warn("- Refer to https://www.mongodb.com/docs/mcp-server/get-started/ for setting up the MCP Server.");
345
345
}
346
346
347
347
if(usedInvalidArgument){
@@ -372,6 +372,24 @@ export function registerKnownSecretsInRootKeychain(userConfig: Partial<UserConfi
Warning: An embeddings provider is configured but the 'vectorSearch' preview feature is not enabled.
388
+
- Enable vector search by adding 'vectorSearch' to the 'previewFeatures' configuration option, or remove the embeddings provider configuration if not needed.\
"The --connectionString argument is deprecated. Prefer using the MDB_MCP_CONNECTION_STRING environment variable or the first positional argument for the connection string.",
696
+
"Warning: The --connectionString argument is deprecated. Prefer using the MDB_MCP_CONNECTION_STRING environment variable or the first positional argument for the connection string.",
0 commit comments