Skip to content

Commit 54dfd7b

Browse files
committed
fix: improve model interpretation
1 parent e978c82 commit 54dfd7b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const LogId = {
1818
atlasConnectFailure: mongoLogId(1_001_003),
1919
atlasInspectFailure: mongoLogId(1_001_004),
2020
atlasConnectAttempt: mongoLogId(1_001_005),
21-
atlasConnectSuccessed: mongoLogId(1_001_006),
21+
atlasConnectSucceeded: mongoLogId(1_001_006),
2222

2323
telemetryDisabled: mongoLogId(1_002_001),
2424
telemetryEmitFailure: mongoLogId(1_002_002),

src/tools/atlas/metadata/connectCluster.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function sleep(ms: number): Promise<void> {
1414

1515
export class ConnectClusterTool extends AtlasToolBase {
1616
protected name = "atlas-connect-cluster";
17-
protected description = "Connect to MongoDB Atlas cluster";
17+
protected description = "Connect to / Inspect connection of MongoDB Atlas cluster";
1818
protected operationType: OperationType = "metadata";
1919
protected argsShape = {
2020
projectId: z.string().describe("Atlas project ID"),
@@ -164,7 +164,7 @@ export class ConnectClusterTool extends AtlasToolBase {
164164
}
165165

166166
logger.debug(
167-
LogId.atlasConnectSuccessed,
167+
LogId.atlasConnectSucceeded,
168168
"atlas-connect-cluster",
169169
`connected to cluster: ${this.session.connectedAtlasCluster?.clusterName}`
170170
);
@@ -229,6 +229,10 @@ export class ConnectClusterTool extends AtlasToolBase {
229229
type: "text",
230230
text: `Attempting to connect to cluster "${clusterName}"...`,
231231
},
232+
{
233+
type: "text",
234+
text: `Warning: Check again in a few seconds.`,
235+
},
232236
],
233237
};
234238
}

0 commit comments

Comments
 (0)