Skip to content

Commit c98c875

Browse files
committed
chore: bring back disableEmbeddingsValidation default
1 parent bb16f57 commit c98c875

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ The MongoDB MCP Server can be configured using multiple methods, with the follow
354354
| `atlasTemporaryDatabaseUserLifetimeMs` | `MDB_MCP_ATLAS_TEMPORARY_DATABASE_USER_LIFETIME_MS` | `14400000` | Time in milliseconds that temporary database users created when connecting to MongoDB Atlas clusters will remain active before being automatically deleted. |
355355
| `confirmationRequiredTools` | `MDB_MCP_CONFIRMATION_REQUIRED_TOOLS` | `"atlas-create-access-list,atlas-create-db-user,drop-database,drop-collection,delete-many,drop-index"` | Comma separated values of tool names that require user confirmation before execution. Requires the client to support elicitation. |
356356
| `connectionString` | `MDB_MCP_CONNECTION_STRING` | `<not set>` | MongoDB connection string for direct database connections. Optional, if not set, you'll need to call the connect tool before interacting with MongoDB data. |
357-
| `disableEmbeddingsValidation` | `MDB_MCP_DISABLE_EMBEDDINGS_VALIDATION` | `<not set>` | When set to true, disables validation of embeddings dimensions. |
357+
| `disableEmbeddingsValidation` | `MDB_MCP_DISABLE_EMBEDDINGS_VALIDATION` | `false` | When set to true, disables validation of embeddings dimensions. |
358358
| `disabledTools` | `MDB_MCP_DISABLED_TOOLS` | `""` | Comma separated values of tool names, operation types, and/or categories of tools that will be disabled. |
359359
| `exportCleanupIntervalMs` | `MDB_MCP_EXPORT_CLEANUP_INTERVAL_MS` | `120000` | Time in milliseconds between export cleanup cycles that remove expired export files. |
360360
| `exportTimeoutMs` | `MDB_MCP_EXPORT_TIMEOUT_MS` | `300000` | Time in milliseconds after which an export is considered expired and eligible for cleanup. |

src/common/config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,13 @@ export const UserConfigSchema = z4.object({
158158
.register(configRegistry, { isSecret: true }),
159159
disableEmbeddingsValidation: z4
160160
.boolean()
161-
.optional()
161+
.default(false)
162162
.describe("When set to true, disables validation of embeddings dimensions."),
163163
vectorSearchDimensions: z4.coerce
164164
.number()
165165
.default(1024)
166166
.describe("Default number of dimensions for vector search embeddings."),
167167
vectorSearchSimilarityFunction: similarityEnumV4
168-
.optional()
169168
.default("euclidean")
170169
.describe("Default similarity function for vector search: 'euclidean', 'cosine', or 'dotProduct'."),
171170
previewFeatures: z4

0 commit comments

Comments
 (0)