Skip to content

Commit 94af53d

Browse files
committed
fix deploymentid name
1 parent 1319767 commit 94af53d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tools/atlasLocal/atlasLocalTool.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { Client } from "@mongodb-js/atlas-local";
66
import { LogId } from "../../common/logger.js";
77
import type { ConnectionMetadata } from "../../telemetry/types.js";
88

9-
export const ConnectionMetadataDeploymentIdKey = "deploymentId";
9+
export const AtlasLocalToolMetadataDeploymentIdKey = "deploymentId";
1010

1111
export abstract class AtlasLocalToolBase extends ToolBase {
1212
public category: ToolCategory = "atlas-local";
@@ -67,7 +67,7 @@ please log a ticket here: https://github.com/mongodb-js/mongodb-mcp-server/issue
6767
}
6868

6969
return {
70-
[ConnectionMetadataDeploymentIdKey]: deploymentId,
70+
[AtlasLocalToolMetadataDeploymentIdKey]: deploymentId,
7171
};
7272
}
7373

@@ -124,7 +124,7 @@ please log a ticket here: https://github.com/mongodb-js/mongodb-mcp-server/issue
124124

125125
// Atlas Local tools set the deployment ID in the result metadata for telemetry
126126
// If the deployment ID is set, we use it for telemetry
127-
const resultDeploymentId = result._meta?.[ConnectionMetadataDeploymentIdKey];
127+
const resultDeploymentId = result._meta?.[AtlasLocalToolMetadataDeploymentIdKey];
128128
if (resultDeploymentId !== undefined && typeof resultDeploymentId === "string") {
129129
toolMetadata.atlas_local_deployment_id = resultDeploymentId;
130130
}

0 commit comments

Comments
 (0)