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
chore: make sure prompts about connectivity are exclusive
We were concerned that with the previous prompt configuration we could
mislead the LLM. With this change, OIDC messages are exclusiver and
won't be added with the connectivity suggestions.
text: `The user needs to finish their OIDC connection by opening '${connectionStatus.oidcLoginUrl}' in the browser and use the following user code: '${connectionStatus.oidcUserCode}'`,
78
78
});
79
+
}else{
80
+
additionalPromptForConnectivity.push({
81
+
type: "text",
82
+
text: connectToolsNames
83
+
? `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}`
84
+
: "There are no tools available to connect. Please update the configuration to include a connection string and restart the server.",
text: "You need to connect to a MongoDB instance before you can access its data.",
88
95
},
89
-
...additionalPromptForOidc,
90
-
{
91
-
type: "text",
92
-
text: connectToolsNames
93
-
? `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}`
94
-
: "There are no tools available to connect. Please update the configuration to include a connection string and restart the server.",
0 commit comments