Skip to content

Commit 26cc9fa

Browse files
don't lookup deployment id when telemetry is disabled
1 parent 5693c22 commit 26cc9fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tools/atlasLocal/atlasLocalTool.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ please log a ticket here: https://github.com/mongodb-js/mongodb-mcp-server/issue
4444
containerId: string,
4545

4646
): Promise<void> {
47+
// Don't run if telemetry is disabled
48+
if (this.config.telemetry === "disabled") {
49+
return;
50+
}
51+
52+
// Lookup the deployment id and add it to the telemetry metadata
4753
const deploymentId = await client.getDeploymentId(containerId);
4854
this.deploymentId = deploymentId;
4955
}

0 commit comments

Comments
 (0)