Skip to content

Commit d926104

Browse files
committed
fix(mongodb): align input IDs with env var names
Rename input IDs to match their corresponding environment variables: - MONGODB_URI → MDB_MCP_CONNECTION_STRING - ATLAS_CLIENT_ID → MDB_MCP_API_CLIENT_ID - ATLAS_CLIENT_SECRET → MDB_MCP_API_CLIENT_SECRET Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent 1c0d57f commit d926104

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

servers/com.mongodb-mcp-docker.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
"mongodb/mongodb-mcp-server:latest"
3232
],
3333
"env": {
34-
"MDB_MCP_CONNECTION_STRING": "${input:MONGODB_URI}",
35-
"MDB_MCP_API_CLIENT_ID": "${input:ATLAS_CLIENT_ID}",
36-
"MDB_MCP_API_CLIENT_SECRET": "${input:ATLAS_CLIENT_SECRET}"
34+
"MDB_MCP_CONNECTION_STRING": "${input:MDB_MCP_CONNECTION_STRING}",
35+
"MDB_MCP_API_CLIENT_ID": "${input:MDB_MCP_API_CLIENT_ID}",
36+
"MDB_MCP_API_CLIENT_SECRET": "${input:MDB_MCP_API_CLIENT_SECRET}"
3737
},
3838
"metadata": {
3939
"inputs": [
4040
{
41-
"id": "MONGODB_URI",
41+
"id": "MDB_MCP_CONNECTION_STRING",
4242
"label": "MongoDB Connection String",
4343
"description": "MongoDB connection URI. Use host.docker.internal instead of localhost for local instances (e.g., mongodb://host.docker.internal:27017/mydb).",
4444
"type": "text",
@@ -52,7 +52,7 @@
5252
}
5353
},
5454
{
55-
"id": "ATLAS_CLIENT_ID",
55+
"id": "MDB_MCP_API_CLIENT_ID",
5656
"label": "Atlas API Client ID",
5757
"description": "MongoDB Atlas Service Account client ID for Atlas management operations. Optional — only needed for Atlas administration.",
5858
"type": "text",
@@ -61,7 +61,7 @@
6161
"placeholder": "mdb_sa_id_..."
6262
},
6363
{
64-
"id": "ATLAS_CLIENT_SECRET",
64+
"id": "MDB_MCP_API_CLIENT_SECRET",
6565
"label": "Atlas API Client Secret",
6666
"description": "MongoDB Atlas Service Account client secret. Required when Atlas API Client ID is provided.",
6767
"type": "text",

servers/com.mongodb-mcp.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
"mongodb-mcp-server@latest"
2727
],
2828
"env": {
29-
"MDB_MCP_CONNECTION_STRING": "${input:MONGODB_URI}",
30-
"MDB_MCP_API_CLIENT_ID": "${input:ATLAS_CLIENT_ID}",
31-
"MDB_MCP_API_CLIENT_SECRET": "${input:ATLAS_CLIENT_SECRET}"
29+
"MDB_MCP_CONNECTION_STRING": "${input:MDB_MCP_CONNECTION_STRING}",
30+
"MDB_MCP_API_CLIENT_ID": "${input:MDB_MCP_API_CLIENT_ID}",
31+
"MDB_MCP_API_CLIENT_SECRET": "${input:MDB_MCP_API_CLIENT_SECRET}"
3232
},
3333
"metadata": {
3434
"inputs": [
3535
{
36-
"id": "MONGODB_URI",
36+
"id": "MDB_MCP_CONNECTION_STRING",
3737
"label": "MongoDB Connection String",
3838
"description": "MongoDB connection URI for your database. Supports local instances, Atlas clusters, and replica sets. Leave empty to use the runtime connect tool.",
3939
"type": "text",
@@ -47,7 +47,7 @@
4747
}
4848
},
4949
{
50-
"id": "ATLAS_CLIENT_ID",
50+
"id": "MDB_MCP_API_CLIENT_ID",
5151
"label": "Atlas API Client ID",
5252
"description": "MongoDB Atlas Service Account client ID for Atlas management operations (create clusters, manage users, IP access lists). Optional — only needed for Atlas administration.",
5353
"type": "text",
@@ -61,7 +61,7 @@
6161
}
6262
},
6363
{
64-
"id": "ATLAS_CLIENT_SECRET",
64+
"id": "MDB_MCP_API_CLIENT_SECRET",
6565
"label": "Atlas API Client Secret",
6666
"description": "MongoDB Atlas Service Account client secret. Required when Atlas API Client ID is provided.",
6767
"type": "text",

0 commit comments

Comments
 (0)