mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-12-01 05:40:19 +00:00
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>
|
||
|---|---|---|
| .. | ||
| bridge | ||
| mcp | ||
| testfixtures | ||
| tunnel | ||