File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ function createStdioTransport(options: TransportOptions): Transport {
3232  const  defaultEnv  =  getDefaultEnvironment ( ) ; 
3333
3434  const  env : Record < string ,  string >  =  { 
35-     ...processEnv , 
3635    ...defaultEnv , 
36+     ...processEnv , 
3737  } ; 
3838
3939  const  {  cmd : actualCommand ,  args : actualArgs  }  =  findActualExecutable ( 
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ const createTransport = async (req: express.Request): Promise<Transport> => {
184184    const  command  =  query . command  as  string ; 
185185    const  origArgs  =  shellParseArgs ( query . args  as  string )  as  string [ ] ; 
186186    const  queryEnv  =  query . env  ? JSON . parse ( query . env  as  string )  : { } ; 
187-     const  env  =  {  ...process . env ,  ...defaultEnvironment ,  ...queryEnv  } ; 
187+     const  env  =  {  ...defaultEnvironment ,  ...process . env ,  ...queryEnv  } ; 
188188
189189    const  {  cmd,  args }  =  findActualExecutable ( command ,  origArgs ) ; 
190190
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments