Skip to content
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

Consolidate McpClientException/McpServerException into McpException #209

Merged

Conversation

stephentoub
Copy link
Contributor

I also normalized CancellationToken exception docs. I'd started doing so before noticing the exceptions were duplicates of each other and didn't really need to be, but didn't revert the doc improvements.

@halter73
Copy link
Contributor

halter73 commented Apr 4, 2025

I'm fine with merging these types, but do you agree that a lot of these should ultimately be changed to InvalidOperationExceptions and IOExceptions instead of McpExceptions?

@stephentoub
Copy link
Contributor Author

I'm fine with merging these types, but do you agree that a lot of these should ultimately be changed to InvalidOperationExceptions and IOExceptions instead of McpExceptions?

Yes, I'll merge this and then will look at getting rid of the type entirely.

@stephentoub stephentoub merged commit 8fcdf95 into modelcontextprotocol:main Apr 4, 2025
8 checks passed
@stephentoub stephentoub deleted the consolidatemcpexception branch April 4, 2025 01:11
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.

2 participants