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
? `Note to LLM: prefer using the ${AtlasConnectToolName} tool to connect to an Atlas cluster over using a connection string. Make sure to ask the user to specify a cluster name they want to connect to or ask them if they want to use the "list-clusters" tool to list all their clusters. Do not invent cluster names or connection strings unless the user has explicitly specified them. If they've previously connected to MongoDB using MCP, you can ask them if they want to reconnect using the same cluster/connection.`
51
+
.sort((a,b)=>a.category.localeCompare(b.category));// Sort Altas tools before MongoDB tools
52
+
53
+
// Find the first Atlas connect tool if available and suggest to the LLM to use it.
54
+
// Note: if we ever have multiple Atlas connect tools, we may want to refine this logic to select the most appropriate one.
? `Note to LLM: prefer using the ${atlasConnectTool.name} tool to connect to an Atlas cluster over using a connection string. Make sure to ask the user to specify a cluster name they want to connect to or ask them if they want to use the "list-clusters" tool to list all their clusters. Do not invent cluster names or connection strings unless the user has explicitly specified them. If they've previously connected to MongoDB using MCP, you can ask them if they want to reconnect using the same cluster/connection.`
57
58
: "Note to LLM: do not invent connection strings and explicitly ask the user to provide one. If they have previously connected to MongoDB using MCP, you can ask them if they want to reconnect using the same connection string.";
? `Please use one of the following tools: ${connectTools} to connect to a MongoDB instance or update the MCP server configuration to include a connection string. ${llmConnectHint}`
72
+
? `Please use one of the following tools: ${connectToolsNames} to connect to a MongoDB instance or update the MCP server configuration to include a connection string. ${llmConnectHint}`
70
73
: "There are no tools available to connect. Please update the configuration to include a connection string and restart the server.",
0 commit comments