File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -84,15 +84,13 @@ export class AccuracyTestingClient {
8484 atlasApiClientId ?: string ,
8585 atlasApiClientSecret ?: string
8686 ) : Promise < AccuracyTestingClient > {
87- const args = [ MCP_SERVER_CLI_SCRIPT , "--connectionString" , mdbConnectionString ] ;
88-
89- // Add Atlas API credentials if provided
90- if ( atlasApiClientId ) {
91- args . push ( "--apiClientId" , atlasApiClientId ) ;
92- }
93- if ( atlasApiClientSecret ) {
94- args . push ( "--apiClientSecret" , atlasApiClientSecret ) ;
95- }
87+ const args = [
88+ MCP_SERVER_CLI_SCRIPT ,
89+ "--connectionString" ,
90+ mdbConnectionString ,
91+ ...( atlasApiClientId ? [ "--apiClientId" , atlasApiClientId ] : [ ] ) ,
92+ ...( atlasApiClientSecret ? [ "--apiClientSecret" , atlasApiClientSecret ] : [ ] ) ,
93+ ] ;
9694
9795 const clientTransport = new StdioClientTransport ( {
9896 command : process . execPath ,
You can’t perform that action at this time.
0 commit comments