(result_value: &Value, raw_json: bool)
| 289 | } |
| 290 | |
| 291 | fn print_tool_output(result_value: &Value, raw_json: bool) { |
| 292 | if raw_json { |
| 293 | println!( |
| 294 | "{}", |
| 295 | serde_json::to_string_pretty(result_value).unwrap_or_default() |
| 296 | ); |
| 297 | } else { |
| 298 | println!("{}", join_content_text(result_value)); |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | /// Joins every `content[*].text` block in an MCP tool result, separated by a |
| 303 | /// blank line. Handlers sometimes prepend a warning/notice block ahead of the |
no outgoing calls
no test coverage detected