From 4405c9344f910b6d75fd4a327cc1583a3e6652bf Mon Sep 17 00:00:00 2001 From: Himanshu Singh Date: Wed, 8 Oct 2025 12:53:19 +0200 Subject: [PATCH] chore: add isError annotation for handled errors --- src/tools/mongodb/metadata/collectionStorageSize.ts | 1 + src/tools/mongodb/read/collectionIndexes.ts | 1 + src/tools/mongodb/update/renameCollection.ts | 2 ++ 3 files changed, 4 insertions(+) diff --git a/src/tools/mongodb/metadata/collectionStorageSize.ts b/src/tools/mongodb/metadata/collectionStorageSize.ts index 91a1c51e0..c38ccc076 100644 --- a/src/tools/mongodb/metadata/collectionStorageSize.ts +++ b/src/tools/mongodb/metadata/collectionStorageSize.ts @@ -42,6 +42,7 @@ export class CollectionStorageSizeTool extends MongoDBToolBase { type: "text", }, ], + isError: true, }; } diff --git a/src/tools/mongodb/read/collectionIndexes.ts b/src/tools/mongodb/read/collectionIndexes.ts index 818561917..84b8b1dbb 100644 --- a/src/tools/mongodb/read/collectionIndexes.ts +++ b/src/tools/mongodb/read/collectionIndexes.ts @@ -37,6 +37,7 @@ export class CollectionIndexesTool extends MongoDBToolBase { type: "text", }, ], + isError: true, }; } diff --git a/src/tools/mongodb/update/renameCollection.ts b/src/tools/mongodb/update/renameCollection.ts index be142e443..4992a3227 100644 --- a/src/tools/mongodb/update/renameCollection.ts +++ b/src/tools/mongodb/update/renameCollection.ts @@ -48,6 +48,7 @@ export class RenameCollectionTool extends MongoDBToolBase { type: "text", }, ], + isError: true, }; case "NamespaceExists": return { @@ -57,6 +58,7 @@ export class RenameCollectionTool extends MongoDBToolBase { type: "text", }, ], + isError: true, }; } }