fix(client): Support specifying windowsHide for STDIO servers #1104
+170
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Previously windowsHide was only available when running inside of an Electron process by default. If this library is run through a single application executable the NodeJS runtime will cause windowsHide to be set to false thus spawning terminals for each spawned STDIO MCP server.
This is obtrusive and in the foreground of the user’s IDE in my experience with little benefit due to the STDOUT/STDERR being hidden from the terminal window as it is captured by the NodeJS process.
How Has This Been Tested?
patch-packagepost install script in the GitLab Language Server which is used as a standalone binary outside of electron.Breaking Changes
n/a — the stdio transport will behave as it does today without explicitly setting the windowHide option.
Types of changes
Checklist
Additional context
Usage of these changes at GitLab to avoid opening terminal windows when running under Windows environments: