Skip to content

Commit bb97c13

Browse files
revert change to ToolCategory to be in line with TD
1 parent 404261e commit bb97c13

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/tools/atlasLocal/atlasLocalTool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import type { ToolArgs, ToolCategory } from "../tool.js";
33
import { ToolBase } from "../tool.js";
44

55
export abstract class AtlasLocalToolBase extends ToolBase {
6-
public category: ToolCategory = "atlasLocal";
6+
public category: ToolCategory = "atlas-local";
77

88
protected handleError(
99
error: unknown,
1010
args: ToolArgs<typeof this.argsShape>
1111
): Promise<CallToolResult> | CallToolResult {
12-
// Error Handling for expected atlas-local errors go here
12+
// Error Handling for expected Atlas Local errors go here
1313

1414
// For other types of errors, use the default error handling from the base class
1515
return super.handleError(error, args);

src/tools/tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type { Server } from "../server.js";
1212
export type ToolArgs<Args extends ZodRawShape> = z.objectOutputType<Args, ZodNever>;
1313

1414
export type OperationType = "metadata" | "read" | "create" | "delete" | "update" | "connect";
15-
export type ToolCategory = "mongodb" | "atlas" | "atlasLocal";
15+
export type ToolCategory = "mongodb" | "atlas" | "atlas-local";
1616
export type TelemetryToolMetadata = {
1717
projectId?: string;
1818
orgId?: string;

0 commit comments

Comments
 (0)