Claus Ibsen created CAMEL-25258:
-----------------------------------

             Summary: camel-jbang-mcp - camel_transform_route converts with the 
route DSL converter
                 Key: CAMEL-25258
                 URL: https://issues.apache.org/jira/browse/CAMEL-25258
             Project: Camel
          Issue Type: Improvement
          Components: camel-jbang-mcp
            Reporter: Claus Ibsen
             Fix For: 4.23.0


The {{camel_transform_route}} MCP tool converts routes with its own code, which 
is behind the route DSL converter (CAMEL-25254) that {{camel transform route 
--format=java}} and the source editor use:

* XML to YAML writes the routes only: rests, route templates, beans and route 
configurations are left out without a word;
* Java cannot be a target format;
* the result is not read back, so the agent is not told what was lost.

The tool should convert with {{RouteDslConverter}}, which reads the source 
without running it:
* all DSLs both ways, Java included;
* rests, route templates, route configurations, beans and data formats are 
carried over;
* the result is read back and compared;
* the differences are returned as notes;
* what cannot be converted is refused with a reason.

The existing result fields stay as they are, and a {{notes}} field is added.

Semantic declarations stay refused, with a clear reason, until CAMEL-25257 lets 
camel-semantic carry them over.

_Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to