Repository navigation
Commit 6898b22
committed
fix(stdio): always set windowsHide on Windows, not just in Electron
The windowsHide spawn option was only enabled for Electron apps, causing
an empty cmd.exe console window to appear when launching MCP servers
from non-Electron Node.js applications on Windows.
Since windowsHide is a no-op on non-Windows platforms, just set it to
true unconditionally. Also removes the now-unused isElectron() helper.
Fixes modelcontextprotocol#16381 parent 4cbcec0 commit 6898b22
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
257 | 259 | | |
258 | 260 | | |
259 | 261 | | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
0 commit comments