eust-w 01acc236a0 🔒 Keep internal failures out of MCP tool results, as the HTTP API does
The HTTP API answers an unexpected failure with a generic message and
leaves the details to the server log. The MCP tools returned any
error's message to the client instead: a database, filesystem or
upstream failure could hand an agent client connection strings, table
names or internal paths.

MCP tool results now follow the HTTP API's rules: domain errors keep
their code, message and details, invalid input reports its validation
issues, and anything else is INTERNAL_ERROR with a pointer to the
server log, where the details are written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:54:01 +08:00
..