From 18e5d0f9f6eb976dfc3c7d1d67955a8a5d48ff09 Mon Sep 17 00:00:00 2001 From: Melanija Cvetic Date: Tue, 16 Sep 2025 11:17:33 +0100 Subject: [PATCH] fix: Replace optional and nullable DBUser password with nullish --- src/tools/atlas/create/createDBUser.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tools/atlas/create/createDBUser.ts b/src/tools/atlas/create/createDBUser.ts index 69c5edc4e..c8e8ea014 100644 --- a/src/tools/atlas/create/createDBUser.ts +++ b/src/tools/atlas/create/createDBUser.ts @@ -14,8 +14,7 @@ export const CreateDBUserArgs = { // AtlasPassword123, which are easily guessable and exploitable. We're instructing // the model not to try and generate anything and instead leave the field unset. password: AtlasArgs.password() - .optional() - .nullable() + .nullish() .describe( "Password for the new user. IMPORTANT: If the user hasn't supplied an explicit password, leave it unset and under no circumstances try to generate a random one. A secure password will be generated by the MCP server if necessary." ),