We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c79cb48 commit e4fb282Copy full SHA for e4fb282
src/tools/atlasLocal/atlasLocalTool.ts
@@ -23,7 +23,16 @@ export abstract class AtlasLocalToolBase extends ToolBase {
23
// verifyAllowed in the base class would still return false preventing the tool from being registered,
24
// preventing the tool from being executed
25
if (!client) {
26
- throw new Error("Atlas Local client not found, tool should have been disabled.");
+ return {
27
+ content: [
28
+ {
29
+ type: "text",
30
+ text: `Something went wrong on our end, this tool should have been disabled but it was not.
31
+please log a ticket here: https://github.com/mongodb-js/mongodb-mcp-server/issues/new?template=bug_report.yml`,
32
+ },
33
+ ],
34
+ isError: true,
35
+ };
36
}
37
38
return this.executeWithAtlasLocalClient(client);
0 commit comments