Skip to content

Commit 91bffa8

Browse files
committed
fix test
1 parent 67923d2 commit 91bffa8

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

tests/integration/tools/mongodb/connect/connect.test.ts

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,19 @@ describeWithMongoDB(
9191
describeWithMongoDB(
9292
"Connect tool",
9393
(integration) => {
94-
validateToolMetadata(integration, "connect", "Connect to a MongoDB instance", [
95-
{
96-
name: "connectionString",
97-
description: "MongoDB connection string (in the mongodb:// or mongodb+srv:// format)",
98-
type: "string",
99-
required: true,
100-
},
101-
]);
94+
validateToolMetadata(
95+
integration,
96+
"connect",
97+
"Connect to a MongoDB instance. The config resource captures if the server is already connected to a MongoDB cluster. If the user has configured a connection string or has previously called the connect tool, a connection is already established and there's no need to call this tool unless the user has explicitly requested to switch to a new MongoDB cluster.",
98+
[
99+
{
100+
name: "connectionString",
101+
description: "MongoDB connection string (in the mongodb:// or mongodb+srv:// format)",
102+
type: "string",
103+
required: true,
104+
},
105+
]
106+
);
102107

103108
validateThrowsForInvalidArguments(integration, "connect", [{}, { connectionString: 123 }]);
104109

0 commit comments

Comments
 (0)