Skip to content

Handle MCPErrors separately #62

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
Nov 25, 2024
Merged

Handle MCPErrors separately #62

merged 2 commits into from
Nov 25, 2024

Conversation

dsp-ant
Copy link
Member

@dsp-ant dsp-ant commented Nov 22, 2024

  • When any handler raises an McpError, we pass it as a response
  • Correct comment

Comment on lines +335 to +336
# When False, exceptions are returned as messages to the client.
# When True, exceptions are raised, which will cause the server to shut down
Copy link
Contributor

Choose a reason for hiding this comment

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

🤦 I would love to have Claude linting for this kind of thing. Or I should just learn not to write so many comments 😆

@dsp-ant dsp-ant force-pushed the davidsp/error-fixes branch from 8c84736 to 5d661a8 Compare November 22, 2024 22:51
@dsp-ant dsp-ant force-pushed the davidsp/error-fixes branch from 5d661a8 to f7e47f3 Compare November 22, 2024 22:54
@dsp-ant dsp-ant merged commit 873f6bf into main Nov 25, 2024
5 checks passed
@dsp-ant dsp-ant deleted the davidsp/error-fixes branch November 25, 2024 14:15
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.

3 participants