Skip to content

Commit f7cd64a

Browse files
committed
chore: use defaults
1 parent 54563a5 commit f7cd64a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function isConnectionSpecifier(arg: string | undefined): boolean {
160160
}
161161

162162
export const UserConfigSchema = z.object({
163-
apiBaseUrl: z.string().optional(),
163+
apiBaseUrl: z.string().default("https://cloud.mongodb.com/"),
164164
apiClientId: z
165165
.string()
166166
.optional()
@@ -182,7 +182,7 @@ export const UserConfigSchema = z.object({
182182
logPath: z.string().describe("Folder to store logs."),
183183
disabledTools: z
184184
.array(z.string())
185-
.optional()
185+
.default([])
186186
.describe("An array of tool names, operation types, and/or categories of tools that will be disabled."),
187187
confirmationRequiredTools: z
188188
.array(z.string())

0 commit comments

Comments
 (0)