You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prevent tool exceptions from leaking internal details to client
Tool.run() and _handle_call_tool() now return a generic error message
for unexpected exceptions instead of str(e), which could expose
sensitive internal details like connection strings, file paths, or
stack traces to MCP clients.
- ToolError is still passed through unchanged (intentional user-facing errors)
- UrlElicitationRequiredError and MCPError are re-raised at the server level
- All other exceptions log the full traceback server-side and return
a generic 'An unexpected error occurred' message to the client
Fixes#698
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments