Skip to content

Improve exception diagnostics for stdio client #376

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

Merged
merged 2 commits into from
May 14, 2025

Conversation

stephentoub
Copy link
Contributor

@stephentoub stephentoub commented May 1, 2025

Closes #362

@stephentoub stephentoub requested a review from halter73 May 1, 2025 22:16
Track the last several lines of stderr and include those in an exception created as part of CleanupAsync if the server process has already exited. This is based on an assumption that the server should never exit prior to CleanupAsync being called.
@stephentoub stephentoub merged commit c11c634 into modelcontextprotocol:main May 14, 2025
7 checks passed
@stephentoub stephentoub deleted the stdiodiag branch May 14, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide better diagnostics than "The server shut down unexpectedly."
2 participants