File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import type { Client } from "@mongodb-js/atlas-local";
66import { LogId } from "../../common/logger.js" ;
77import type { ConnectionMetadata } from "../../telemetry/types.js" ;
88
9- export const ConnectionMetadataDeploymentIdKey = "deploymentId" ;
9+ export const AtlasLocalToolMetadataDeploymentIdKey = "deploymentId" ;
1010
1111export 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 }
You can’t perform that action at this time.
0 commit comments