Jinal-Sarvaiya commented on code in PR #128:
URL: https://github.com/apache/camel-kit/pull/128#discussion_r4364531451


##########
camel-kit-core/src/main/java/io/github/luigidemasi/camelkit/generator/McpConfigGenerator.java:
##########
@@ -31,9 +31,10 @@ void generate(InitContext ctx, WorkflowManifest workflow) 
throws InvalidAgentCon
 
             QuteTemplateEngine qute = new QuteTemplateEngine();
             String template = 
TemplateUtils.readTemplate(ctx.agent().mcpConfigTemplatePath());
-            String processed = qute.renderString(template, 
templateData(ctx.distribution(), workflow));
+            String processed
+                    = qute.renderString(template, 
templateData(ctx.distribution(), workflow, ctx.withCitrusMcp()));

Review Comment:
   Changed `servers.get("citrus") instanceof TomlTable` to 
`servers.contains("citrus")` (line 738). Malformed entries like `citrus = 
"invalid-server"` are now caught and validated by `checkCodexMcpServer`, which 
reports the appropriate failure. Added two regression tests: 
`malformedCodexCitrusEntryFailsWhenOptInAbsent` and 
`malformedCodexCitrusEntryFailsWhenOptInExplicitlyFalse`.



-- 
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]

Reply via email to