File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,13 @@ export type StdioServerParameters = {
17
17
*/
18
18
args ?: string [ ] ;
19
19
20
+ /**
21
+ * Whether to use a shell to execute the command, or the shell to use.
22
+ *
23
+ * If not specified, the default is false.
24
+ */
25
+ shell ?: string | boolean ;
26
+
20
27
/**
21
28
* The environment to use when spawning the process.
22
29
*
@@ -125,7 +132,7 @@ export class StdioClientTransport implements Transport {
125
132
...this . _serverParams . env
126
133
} ,
127
134
stdio : [ 'pipe' , 'pipe' , this . _serverParams . stderr ?? 'inherit' ] ,
128
- shell : false ,
135
+ shell : this . _serverParams . shell ?? false ,
129
136
signal : this . _abortController . signal ,
130
137
windowsHide : process . platform === 'win32' && isElectron ( ) ,
131
138
cwd : this . _serverParams . cwd
You can’t perform that action at this time.
0 commit comments