Skip to content

Conversation

@kpavlov
Copy link
Contributor

@kpavlov kpavlov commented Dec 4, 2025

Better exception handling in StdioClientTransport

Refactor McpException for improved handling with convenience constructors and enhanced exception wrapping logic in StdioClientTransport. Update tests to use kotest matchers and add JUnit parameterized tests for exception handling.

Motivation and Context

#442 follow up

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Refactor `McpException` for improved handling with convenience constructors and enhanced exception wrapping logic in `StdioClientTransport`. Update tests to use `kotest` matchers and add JUnit parameterized tests for exception handling.
@github-actions
Copy link

github-actions bot commented Dec 4, 2025

TestsPassed ✅Skipped ⚠️FailedTime ⏱
JUnit Test Report3404 ran3315 passed89 skipped3m 54s 49ms
TestResultTime ⏱
No test annotations available

@kpavlov kpavlov marked this pull request as ready for review December 4, 2025 13:09
Copy link
Contributor

@devcrocod devcrocod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kpavlov kpavlov merged commit 6ec6d3c into main Dec 4, 2025
5 of 6 checks passed
@kpavlov kpavlov deleted the kpavlov/stdioclient-exceptions branch December 4, 2025 13:09
@kpavlov kpavlov added the bugfix Something was fixed 🎉 label Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Something was fixed 🎉

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants