Skip to content

Commit fc3606a

Browse files
chore: updated readme with toolMetadataOverrides
1 parent eb1c112 commit fc3606a

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ The MongoDB MCP Server can be configured using multiple methods, with the follow
368368
| `previewFeatures` | `MDB_MCP_PREVIEW_FEATURES` | `""` | Comma separated values of preview features that are enabled. |
369369
| `readOnly` | `MDB_MCP_READ_ONLY` | `false` | When set to true, only allows read, connect, and metadata operation types, disabling create/update/delete operations. |
370370
| `telemetry` | `MDB_MCP_TELEMETRY` | `"enabled"` | When set to disabled, disables telemetry collection. |
371+
| `toolMetadataOverrides` | `MDB_MCP_TOOL_METADATA_OVERRIDES` | `"{}"` | A map of name of the MongoDB MCP server tool to the metadata that needs to be used for that tool. Example: `{ "toolMetadataOverrides": { "find": { "name": "query" } } }` |
371372
| `transport` | `MDB_MCP_TRANSPORT` | `"stdio"` | Either 'stdio' or 'http'. |
372373
| `voyageApiKey` | `MDB_MCP_VOYAGE_API_KEY` | `""` | API key for Voyage AI embeddings service (required for vector search operations with text-to-embedding conversion). |
373374

scripts/generateArguments.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@ function generateReadmeConfigTable(argumentInfos: ArgumentInfo[]): string {
275275
case "string":
276276
defaultValueString = `\`"${defaultValue}"\``;
277277
break;
278+
case "object": {
279+
defaultValueString = `\`"${JSON.stringify(defaultValue)}"\``;
280+
break;
281+
}
278282
default:
279283
throw new Error(`Unsupported default value type: ${typeof defaultValue}`);
280284
}

server.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@
170170
"format": "string",
171171
"isSecret": false
172172
},
173+
{
174+
"name": "MDB_MCP_TOOL_METADATA_OVERRIDES",
175+
"description": "A map of name of the MongoDB MCP server tool to the metadata that needs to be used for that tool. Example: `{ \"toolMetadataOverrides\": { \"find\": { \"name\": \"query\" } } }`",
176+
"isRequired": false,
177+
"format": "string",
178+
"isSecret": false
179+
},
173180
{
174181
"name": "MDB_MCP_TRANSPORT",
175182
"description": "Either 'stdio' or 'http'.",
@@ -323,6 +330,12 @@
323330
"description": "When set to disabled, disables telemetry collection.",
324331
"isRequired": false
325332
},
333+
{
334+
"type": "named",
335+
"name": "--toolMetadataOverrides",
336+
"description": "A map of name of the MongoDB MCP server tool to the metadata that needs to be used for that tool. Example: `{ \"toolMetadataOverrides\": { \"find\": { \"name\": \"query\" } } }`",
337+
"isRequired": false
338+
},
326339
{
327340
"type": "named",
328341
"name": "--transport",
@@ -498,6 +511,13 @@
498511
"format": "string",
499512
"isSecret": false
500513
},
514+
{
515+
"name": "MDB_MCP_TOOL_METADATA_OVERRIDES",
516+
"description": "A map of name of the MongoDB MCP server tool to the metadata that needs to be used for that tool. Example: `{ \"toolMetadataOverrides\": { \"find\": { \"name\": \"query\" } } }`",
517+
"isRequired": false,
518+
"format": "string",
519+
"isSecret": false
520+
},
501521
{
502522
"name": "MDB_MCP_TRANSPORT",
503523
"description": "Either 'stdio' or 'http'.",
@@ -651,6 +671,12 @@
651671
"description": "When set to disabled, disables telemetry collection.",
652672
"isRequired": false
653673
},
674+
{
675+
"type": "named",
676+
"name": "--toolMetadataOverrides",
677+
"description": "A map of name of the MongoDB MCP server tool to the metadata that needs to be used for that tool. Example: `{ \"toolMetadataOverrides\": { \"find\": { \"name\": \"query\" } } }`",
678+
"isRequired": false
679+
},
654680
{
655681
"type": "named",
656682
"name": "--transport",

src/common/config/userConfig.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,7 @@ export const UserConfigSchema = z4.object({
176176
})
177177
)
178178
.default({})
179-
.describe("A map of name of the MongoDB MCP server tool to the metadata that needs to be used for that tool."),
179+
.describe(
180+
'A map of name of the MongoDB MCP server tool to the metadata that needs to be used for that tool. Example: `{ "toolMetadataOverrides": { "find": { "name": "query" } } }`'
181+
),
180182
});

0 commit comments

Comments
 (0)