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
@@ -230,21 +244,31 @@ export class ConnectClusterTool extends AtlasToolBase {
230
244
awaitsleep(500);
231
245
}
232
246
233
-
return{
234
-
content: [
235
-
{
236
-
type: "text"asconst,
237
-
text: `Attempting to connect to cluster "${clusterName}"...`,
238
-
},
239
-
{
240
-
type: "text"asconst,
241
-
text: `Warning: Provisioning a user and connecting to the cluster may take more time, please check again in a few seconds.`,
242
-
},
243
-
{
244
-
type: "text"asconst,
245
-
text: `Warning: Make sure your IP address was enabled in the allow list setting of the Atlas cluster.`,
246
-
},
247
-
],
248
-
};
247
+
constcontent: CallToolResult["content"]=[
248
+
{
249
+
type: "text"asconst,
250
+
text: `Attempting to connect to cluster "${clusterName}"...`,
251
+
},
252
+
{
253
+
type: "text"asconst,
254
+
text: `Warning: Provisioning a user and connecting to the cluster may take more time, please check again in a few seconds.`,
255
+
},
256
+
];
257
+
258
+
if(ipAccessListUpdated){
259
+
content.push({
260
+
type: "text"asconst,
261
+
text: `Note: Your current IP address has been added to the Atlas project's IP access list to enable secure connection.`,
262
+
});
263
+
}
264
+
265
+
if(createdUser){
266
+
content.push({
267
+
type: "text"asconst,
268
+
text: `Note: A temporary user has been created to enable secure connection to the cluster. For more information, see https://dochub.mongodb.org/core/mongodb-mcp-server-tools-considerations`,
0 commit comments