Shutdown listener? #888
Unanswered
damien-urruty-sonarsource
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Question Category
Your Question
Hello,
When we start our MCP server in STDIO mode, we start a bunch of other services. When the stdin is closed, we need to shutdown those services. Would there be a way to listen to the shutdown via the SDK? Is this something you would consider? Or do we need to wrap stdin on our side to detect termination? We are using
StdioServerTransportProviderwithMcpServer.sync().Thanks
Beta Was this translation helpful? Give feedback.
All reactions