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:
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 }
You can’t perform that action at this time.
0 commit comments