Skip to content

Commit 319cab3

Browse files
chore: MCP-233 config to provide voyage API key
1 parent f384834 commit 319cab3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ The MongoDB MCP Server can be configured using multiple methods, with the follow
360360
| `exportTimeoutMs` | `MDB_MCP_EXPORT_TIMEOUT_MS` | 300000 | Time in milliseconds after which an export is considered expired and eligible for cleanup. |
361361
| `exportCleanupIntervalMs` | `MDB_MCP_EXPORT_CLEANUP_INTERVAL_MS` | 120000 | Time in milliseconds between export cleanup cycles that remove expired export files. |
362362
| `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. |
363+
| `voyageApiKey` | `MDB_VOYAGE_API_KEY` | <not set> | API key for communicating with Voyage AI. Used for generating embeddings for Vector search. |
363364

364365
#### Logger Options
365366

src/common/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const OPTIONS = {
5353
"exportsPath",
5454
"exportTimeoutMs",
5555
"exportCleanupIntervalMs",
56+
"voyageApiKey",
5657
],
5758
boolean: [
5859
"apiDeprecationErrors",
@@ -181,6 +182,7 @@ export interface UserConfig extends CliOptions {
181182
maxDocumentsPerQuery: number;
182183
maxBytesPerQuery: number;
183184
atlasTemporaryDatabaseUserLifetimeMs: number;
185+
voyageApiKey: string;
184186
}
185187

186188
export const defaultUserConfig: UserConfig = {
@@ -210,6 +212,7 @@ export const defaultUserConfig: UserConfig = {
210212
maxDocumentsPerQuery: 100, // By default, we only fetch a maximum 100 documents per query / aggregation
211213
maxBytesPerQuery: 16 * 1024 * 1024, // By default, we only return ~16 mb of data per query / aggregation
212214
atlasTemporaryDatabaseUserLifetimeMs: 4 * 60 * 60 * 1000, // 4 hours
215+
voyageApiKey: "",
213216
};
214217

215218
export const config = setupUserConfig({

0 commit comments

Comments
 (0)