Skip to content

Conversation

@koic
Copy link
Member

@koic koic commented Dec 7, 2025

Motivation and Context

Claude Code sometimes only shows Error: MCP error -32603: Internal error when an unexpected exception occurs during a tool call.

This change broadens the exception handling scope so the server can surface the exception message more often, making failures easier to diagnose.

How Has This Been Tested?

Existing tests pass.

Breaking Changes

None.

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

@koic koic force-pushed the show_exception_messages_for_tool_call_error branch from 539a448 to 2fe392a Compare December 8, 2025 06:08
@atesgoral
Copy link
Contributor

Should we add a unit test for this?

Claude Code sometimes only shows `Error: MCP error -32603: Internal error`
when an unexpected exception occurs during a tool call.

This change broadens the exception handling scope so the server can surface
the exception message more often, making failures easier to diagnose.
@koic koic force-pushed the show_exception_messages_for_tool_call_error branch from 2fe392a to b29d522 Compare December 31, 2025 10:38
@koic
Copy link
Member Author

koic commented Dec 31, 2025

Sure. I’ve added a test for it.

@koic koic merged commit 3bc1c2c into modelcontextprotocol:main Dec 31, 2025
7 checks passed
@koic koic deleted the show_exception_messages_for_tool_call_error branch December 31, 2025 22:09
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