Skip to content

Commit 939cfd5

Browse files
Update src/tools/atlasLocal/atlasLocalTool.ts
Co-authored-by: Nikola Irinchev <[email protected]>
1 parent 318e429 commit 939cfd5

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/tools/atlasLocal/atlasLocalTool.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -125,23 +125,6 @@ please log a ticket here: https://github.com/mongodb-js/mongodb-mcp-server/issue
125125
): TelemetryToolMetadata {
126126
const toolMetadata: TelemetryToolMetadata = {};
127127

128-
const client = this.session.atlasLocalClient;
129-
if (!args.length || !client) {
130-
return toolMetadata;
131-
}
132-
133-
// Create a typed parser for the exact shape we expect
134-
const argsShape = z.object(this.argsShape);
135-
const parsedResult = argsShape.safeParse(args[0]);
136-
137-
if (!parsedResult.success) {
138-
this.session.logger.debug({
139-
id: LogId.telemetryMetadataError,
140-
context: "tool",
141-
message: `Error parsing tool arguments: ${parsedResult.error.message}`,
142-
});
143-
return toolMetadata;
144-
}
145128

146129
// Atlas Local tools set the deployment ID in the result metadata for telemetry
147130
// If the deployment ID is set, we use it for telemetry

0 commit comments

Comments
 (0)