Skip to content

Commit 7a50ba1

Browse files
committed
update
1 parent 0e4fa72 commit 7a50ba1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/tools/atlas/read/inspectCluster.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
22
import { type OperationType, type ToolArgs, formatUntrustedData } from "../../tool.js";
33
import { AtlasToolBase } from "../atlasTool.js";
44
import type { Cluster } from "../../../common/atlas/cluster.js";
5-
import { inspectCluster } from "../../../common/atlas/cluster.js";
5+
import { getConnectionString, inspectCluster } from "../../../common/atlas/cluster.js";
66
import { AtlasArgs } from "../../args.js";
77

88
export const InspectClusterArgs = {
@@ -31,10 +31,7 @@ export class InspectClusterTool extends AtlasToolBase {
3131
instanceSize: formattedCluster.instanceSize || "N/A",
3232
state: formattedCluster.state || "UNKNOWN",
3333
mongoDBVersion: formattedCluster.mongoDBVersion || "N/A",
34-
connectionString:
35-
formattedCluster.connectionStrings?.standardSrv ||
36-
formattedCluster.connectionStrings?.standard ||
37-
"N/A",
34+
connectionStrings: formattedCluster.connectionStrings || "N/A",
3835
};
3936

4037
return {

0 commit comments

Comments
 (0)