You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
username: z.string().describe("Username for the new user"),
14
-
password: z.string().describe("Password for the new user"),
15
+
// Models will generate overly simplistic passwords like SecurePassword123 or
16
+
// AtlasPassword123, which are easily guessable and exploitable. We're instructing
17
+
// the model not to try and generate anything and instead leave the field unset.
18
+
password: z
19
+
.string()
20
+
.optional()
21
+
.nullable()
22
+
.describe(
23
+
"Password for the new user. 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."
24
+
),
15
25
roles: z
16
26
.array(
17
27
z.object({
@@ -34,6 +44,11 @@ export class CreateDBUserTool extends AtlasToolBase {
0 commit comments