Skip to content

Commit f37c2e4

Browse files
committed
addresses pr comments
1 parent a18cbdb commit f37c2e4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/tools/atlas/connect/connectCluster.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ export class ConnectClusterTool extends AtlasToolBase {
8282
}
8383
const connectionString = getConnectionString(cluster.connectionStrings, connectionType);
8484
if (connectionString === undefined) {
85-
throw new Error(`Connection string for connection type "${connectionType}" not available`);
85+
throw new Error(
86+
`Connection string for connection type "${connectionType}" is not available. Please ensure this connection type is set up in Atlas. See https://www.mongodb.com/docs/atlas/connect-to-database-deployment/#connect-to-an-atlas-cluster.`
87+
);
8688
}
8789

8890
const username = `mcpUser${Math.floor(Math.random() * 100000)}`;

src/tools/atlas/read/inspectCluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class InspectClusterTool extends AtlasToolBase {
2828
return {
2929
content: formatUntrustedData(
3030
"Cluster details:",
31-
`Cluster Name | Cluster Type | Tier | State | MongoDB Version | Connection String
31+
`Cluster Name | Cluster Type | Tier | State | MongoDB Version | Standard Connection String
3232
----------------|----------------|----------------|----------------|----------------|----------------
3333
${formattedCluster.name || "Unknown"} | ${formattedCluster.instanceType} | ${formattedCluster.instanceSize || "N/A"} | ${formattedCluster.state || "UNKNOWN"} | ${formattedCluster.mongoDBVersion || "N/A"} | ${formattedCluster.connectionStrings?.standardSrv || formattedCluster.connectionStrings?.standard || "N/A"}`
3434
),

0 commit comments

Comments
 (0)