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
Copy file name to clipboardExpand all lines: README.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,8 +150,9 @@ The MongoDB MCP Server can be configured using multiple methods, with the follow
150
150
|`apiClientSecret`| Atlas API client secret for authentication |
151
151
|`connectionString`| MongoDB connection string for direct database connections (optional users may choose to inform it on every tool call) |
152
152
|`logPath`| Folder to store logs |
153
-
|`disabledTools`| An array of tool names, operation types, and/or categories of tools that will be disabled.|
153
+
|`disabledTools`| An array of tool names, operation types, and/or categories of tools that will be disabled|
154
154
|`readOnly`| When set to true, only allows read and metadata operation types, disabling create/update/delete operations |
155
+
|`telemetry`| When set to disabled, disables telemetry collection |
155
156
156
157
#### `logPath`
157
158
@@ -196,6 +197,16 @@ You can enable read-only mode using:
196
197
197
198
When read-only mode is active, you'll see a message in the server logs indicating which tools were prevented from registering due to this restriction.
198
199
200
+
#### Telemetry
201
+
202
+
The `telemetry` configuration option allows you to disable telemetry collection. When enabled, the MCP server will collect usage data and send it to MongoDB.
? "set; no explicit connect needed, use switch-connection tool to connect to a different connection if necessary"
156
-
: "not set; before using any mongodb tool, you need to call the connect tool with a connection string",
155
+
? "set; access to MongoDB tools are currently available to use"
156
+
: "not set; before using any MongoDB tool, you need to configure a connection string, alternatively you can setup MongoDB Atlas access, more info at 'https://github.com/mongodb-js/mongodb-mcp-server'.",
? "set; MongoDB Atlas tools are currently available to use"
161
+
: "not set; MongoDB Atlas tools are currently unavailable, to have access to MongoDB Atlas tools like creating clusters or connecting to clusters make sure to setup credentials, more info at 'https://github.com/mongodb-js/mongodb-mcp-server'.",
158
162
};
159
163
return{
160
164
contents: [
161
165
{
162
166
text: JSON.stringify(result),
167
+
mimeType: "application/json",
163
168
uri: uri.href,
164
169
},
165
170
],
166
171
};
167
172
}
168
173
);
169
-
if(this.userConfig.connectionString){
170
-
this.mcpServer.resource(
171
-
"connection-string",
172
-
"config://connection-string",
173
-
{
174
-
description: "Preconfigured connection string that will be used as a default in the `connect` tool",
0 commit comments