Content-Length: 217315 | pFad | http://github.com/modelcontextprotocol/csharp-sdk/issues/420

A3 On Windows, StdioClientTransport calls taskkill and triggers visible cmd windows · Issue #420 · modelcontextprotocol/csharp-sdk · GitHub
Skip to content

On Windows, StdioClientTransport calls taskkill and triggers visible cmd windows #420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JesseCol opened this issue May 15, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@JesseCol
Copy link

Describe the bug
When a StdioClientTransport shuts down, and the server-side process is still alive, MCP calls taskkill here.

04 ModelContextProtocol!ModelContextProtocol.Utils.ProcessHelper.RunProcessAndWaitForExit
05 ModelContextProtocol!ModelContextProtocol.Utils.ProcessHelper.KillTree
06 ModelContextProtocol!ModelContextProtocol.Protocol.Transport.StdioClientTransport.DisposeProcess
07 ModelContextProtocol!ModelContextProtocol.Protocol.Transport.StdioClientSessionTransport.CleanupAsync

When it does this, it triggers a visible cmd window on the user's machine.

I believe we can fix this by setting ProcessStartInfo.CreateNoWindow = true.

To Reproduce
I believe you just need to use STDIO transport, and close it on the client side.

Expected behavior
I expect taskkill to run without popping up any windows.

@JesseCol JesseCol added the bug Something isn't working label May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/modelcontextprotocol/csharp-sdk/issues/420

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy