(value: &mut Value)
| 552 | } |
| 553 | |
| 554 | fn mark_semantic_tool_error(value: &mut Value) { |
| 555 | if !tool_result_has_semantic_error(value) { |
| 556 | return; |
| 557 | } |
| 558 | if let Some(obj) = value.as_object_mut() { |
| 559 | obj.insert("isError".to_string(), json!(true)); |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | /// Map response-handle failures onto actionable JSON-RPC errors at the MCP |
| 564 | /// boundary so clients can distinguish bad input from cache/runtime problems. |
no test coverage detected