Skip to content

Stdio client does not set windowsHide #1638

Closed

Description

@OrKoN

Describe the bug

MCP stdio client only sets windowsHide for electron apps https://github.com/modelcontextprotocol/typescript-sdk/blob/v1.x/src/client/stdio.ts#L128 This makes an empty console window (cmd.exe) show up if launched outside of electron.

To Reproduce
Steps to reproduce the behavior:

  1. Use StdioClientTransport to launch a Node.js based server on Windows

Expected behavior
No windows should show up.

Logs
If applicable, add logs to help explain your problem.

Additional context
Mentioned here #1104

Activity

  1. added
    bugSomething isn't working
    on Mar 6, 2026
  2. OrKoN commented on Mar 6, 2026

    @OrKoN
    Author

    I suggest to always set windowsHide to true as 1) it is windows-specific already 2) non-Electron apps also want their server not to have any windows.

  3. added a commit that references this issue on Mar 7, 2026
    6898b22
  4. added 2 commits that reference this issue on Mar 26, 2026
    605c829
    8b49ceb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions