rouse-context/core
Jason Monk 56d689fbbc
Fix #427: Wrap McpTool error paths in JSON envelope (#433)
The two framework-level error paths in McpTool.invoke() (param-extraction
failure and catch-all exception handler) produced plain-text ToolResult.Error
bodies. The Anthropic connector proxy expects JSON in the TextContent text
field, causing "Invalid content from server" errors on any missing-param
or unhandled-exception path.

Add ToolErrorResponse @Serializable data class with {"success":false,"error":"..."}
shape (matching the outreachError/usageError pattern from #418), and wrap both
error sites. Remove the expectJsonBody=false bypass in UsageMcpProviderTest
that was pinned for this issue.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-27 14:44:59 -04:00
..
bridge Fix #248: Add Kover coverage measurement + CI aggregated report (#254) 2026-04-18 17:11:09 -04:00
mcp Fix #427: Wrap McpTool error paths in JSON envelope (#433) 2026-04-27 14:44:59 -04:00
testfixtures Fix #377: Replace 500ms session-registration sleep with deterministic Notify signal (#399) 2026-04-24 23:39:09 -04:00
tunnel Fix #420: Complete CompletableDeferreds on all termination paths in WS/MCP/tunnel layers (#422) 2026-04-26 14:57:53 -04:00