Repository navigation
fix(mcp): hide console windows for stdio MCP servers on Windows - #1030
Conversation
Stdio MCP servers were spawned without CREATE_NO_WINDOW, so on Windows each `npx`/`uvx`-style server (a console-subsystem program or a `.cmd` shim run via cmd.exe) opened a visible console window. Reuse the hide_console_window helper added for the AI CLI processes in Xoshbin#819.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Hey @fhalim Thanks, the change looks right to me. I'd like to smoke test it on Windows before merging, and I'm happy to wait — no rush. Could you run a debug build on Windows 11 with a real Thanks! |
Problem
On Windows, every stdio MCP server opens a visible console window. `StdioTransportFactory::connect` spawns the server without `CREATE_NO_WINDOW`, and `npx`/`uvx`-style servers are console-subsystem programs or `.cmd` shims run via `cmd.exe`.
Change
Call the existing `crate::ai::cli::hide_console_window` helper (added in #819 for the AI CLI processes) on the MCP command before spawning. No new helper, no new constant; a no-op off Windows.
Verification
Summary by CodeRabbit