File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -28,28 +28,28 @@ startCommand:
28
28
# A function that produces the CLI command to start the MCP on stdio.
29
29
|-
30
30
(config) => {
31
- const env = {} ;
31
+ const args = ['dist/index.js'] ;
32
32
if (config.atlasClientId) {
33
- env.MDB_MCP_API_CLIENT_ID = config.atlasClientId;
33
+ args.push('--apiClientId');
34
+ args.push(config.atlasClientId);
34
35
}
35
36
36
37
if (config.atlasClientSecret) {
37
- env.MDB_MCP_API_CLIENT_SECRET = config.atlasClientSecret;
38
+ args.push('--apiClientSecret');
39
+ args.push(config.atlasClientSecret);
38
40
}
39
41
40
42
if (config.readOnly) {
41
- env.MDB_MCP_READ_ONLY = true ;
43
+ args.push('--readOnly') ;
42
44
}
43
45
44
46
if (config.connectionString) {
45
- env.MDB_MCP_CONNECTION_STRING = config.connectionString;
47
+ args.push('--connectionString');
48
+ args.push(config.connectionString);
46
49
}
47
50
48
51
return {
49
- " command " : " node" ,
50
- " args " : [
51
- " dist/index.js"
52
- ],
53
- env,
52
+ command : " node" ,
53
+ args
54
54
};
55
55
}
You can’t perform that action at this time.
0 commit comments