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
// TODO: Eventually we might want to make tools reactive too instead of relying on custom logic.
73
76
this.registerTools();
@@ -134,17 +137,17 @@ export class Server {
134
137
message: `Server with version ${packageInfo.version} started with transport ${transport.constructor.name} and agent runner ${JSON.stringify(this.session.mcpClient)}`,
@@ -27,7 +28,8 @@ const disconnectedName = "connect" as const;
27
28
28
29
constconnectedDescription=
29
30
"Switch to a different MongoDB connection. 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 instance.";
30
-
constdisconnectedDescription="Connect to a MongoDB instance";
31
+
constdisconnectedDescription=
32
+
"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.";
Copy file name to clipboardExpand all lines: tests/integration/tools/mongodb/connect/connect.test.ts
+13-8Lines changed: 13 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -91,14 +91,19 @@ describeWithMongoDB(
91
91
describeWithMongoDB(
92
92
"Connect tool",
93
93
(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)",
0 commit comments