MCP tool and resource calls now fail with structured identity instead of
plain Error text. An upstream isError result throws McpToolError with
MCP_TOOL_ERROR; task-required tools and invalid results use
MCP_UNSUPPORTED_TASK_EXECUTION and MCP_INVALID_RESULT. SDK and JSON-RPC
request failures map to MCP_CONNECTION_CLOSED, MCP_TIMEOUT,
MCP_SERVER_UNAVAILABLE, MCP_INVALID_RESULT, or MCP_REQUEST_FAILED, with
the JSON-RPC or SDK code in the message. Redaction replaces only the
message and keeps name and code.
The SDK reports an aborted request as REQUEST_TIMEOUT, so the bridge
rethrows caller cancellation and connection-generation closure as their
own reasons before classifying. McpLocalError now extends HarnessError
with closed codes for closure, deadlines, credentials, instruction size,
and registration conflicts. An out-of-scope resource server fails as
ToolArgsError because mcp-resources cannot depend on mcp-client.
Refs #7869