davsclaus opened a new pull request, #23306: URL: https://github.com/apache/camel/pull/23306
## Summary - Extends the `camel_render_route_diagram` MCP tool to support `ascii` and `unicode` themes in addition to the existing PNG image themes (`dark`, `light`, `transparent`) - For text themes the ASCII diagram is returned directly in the `asciiDiagram` field of `RouteDiagramResult`, enabling LLM callers to read and reason about the route structure without opening a file - Temporary output file uses a `.txt` suffix in text mode so `CamelRouteDiagramAction` writes to the correct path (previously only `.png` was used, which caused the action to silently write to a different path) - Updated `@ToolArg` descriptions to document the new theme values and the dual-mode behaviour - Added two new test cases (`ascii` and `unicode` theme validation paths) ## Changes - `RouteDiagramTools.java` — detect text themes, use `.txt` temp file, read content and populate `asciiDiagram` - `RouteDiagramResult` record — new `asciiDiagram` field (null for image themes) - `RouteDiagramToolsTest.java` — two new validation tests for ascii/unicode themes ## Test plan - [x] All 233 unit tests in `camel-jbang-mcp` pass (`mvn test` in module) - [x] Full `mvn clean install -DskipTests` from repo root passes Fixes: https://issues.apache.org/jira/browse/CAMEL-23529 _Claude Code on behalf of Claus Ibsen_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
