You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clarify stdio-transport shutdown sequence for Windows #1090
For Windows, SIGTERM can be simulated by calling TerminateProcess with the child process ID. It's the equivalent of kill -f so doesn't give the application the ability to gracefully exit.
I would probably also add verbiage indicating that the MCP server MUST terminate gracefully when it encounters errors reading from or writing to stdio streams - that's important because it indicates that the host is gone. And it dramatically reduces the probability that the host needs to consider killing the server.
Activity
localden commentedon Aug 1, 2025
Reaching out to a few folks at Microsoft to see if we can contribute an improved recommendation.
LarryOsterman commentedon Aug 1, 2025
For Windows,
SIGTERMcan be simulated by callingTerminateProcesswith the child process ID. It's the equivalent ofkill -fso doesn't give the application the ability to gracefully exit.LarryOsterman commentedon Aug 1, 2025
I would probably also add verbiage indicating that the MCP server MUST terminate gracefully when it encounters errors reading from or writing to stdio streams - that's important because it indicates that the host is gone. And it dramatically reduces the probability that the host needs to consider killing the server.
spec: make stdio shutdown sequence platform-neutral
spec: make stdio shutdown sequence platform-neutral