Skip to content

Commit 873fc16

Browse files
committed
try using cli args
1 parent b60d066 commit 873fc16

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.smithery/smithery.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,28 @@ startCommand:
2828
# A function that produces the CLI command to start the MCP on stdio.
2929
|-
3030
(config) => {
31-
const env = {};
31+
const args = ['dist/index.js'];
3232
if (config.atlasClientId) {
33-
env.MDB_MCP_API_CLIENT_ID = config.atlasClientId;
33+
args.push('--apiClientId');
34+
args.push(config.atlasClientId);
3435
}
3536

3637
if (config.atlasClientSecret) {
37-
env.MDB_MCP_API_CLIENT_SECRET = config.atlasClientSecret;
38+
args.push('--apiClientSecret');
39+
args.push(config.atlasClientSecret);
3840
}
3941

4042
if (config.readOnly) {
41-
env.MDB_MCP_READ_ONLY = true;
43+
args.push('--readOnly');
4244
}
4345

4446
if (config.connectionString) {
45-
env.MDB_MCP_CONNECTION_STRING = config.connectionString;
47+
args.push('--connectionString');
48+
args.push(config.connectionString);
4649
}
4750

4851
return {
49-
"command": "node",
50-
"args": [
51-
"dist/index.js"
52-
],
53-
env,
52+
command: "node",
53+
args
5454
};
5555
}

0 commit comments

Comments
 (0)