Skip to content

Commit de40422

Browse files
committed
chore: Only enable the tool in test environment for now
1 parent 4040d7e commit de40422

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/mongodb/search/listSearchIndexes.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ export class ListSearchIndexesTool extends MongoDBToolBase {
4040
}
4141
}
4242

43+
protected verifyAllowed(): boolean {
44+
// Only enable this on tests for now.
45+
return process.env.VITEST === "true";
46+
}
47+
4348
/**
4449
* Atlas Search index status contains a lot of information that is not relevant for the agent at this stage.
4550
* Like for example, the status on each of the dedicated nodes. We only care about the main status, if it's

0 commit comments

Comments
 (0)