ramu11 commented on code in PR #2094:
URL: 
https://github.com/apache/camel-spring-boot/pull/2094#discussion_r4577136024


##########
docs/spring-boot/modules/ROOT/pages/starters/mcp-server.adoc:
##########
@@ -105,6 +234,155 @@ camel.mcp-server.tags = crm,notify
 camel.mcp-server.tool-timeout = 10000
 ----
 
+=== Resources and resource templates
+
+Expose a fixed resource with an `ai-resource` route. The route body supplies
+the resource content and the component metadata supplies its URI and MIME type:
+
+[source,java]
+----
+from("ai-resource:app_config?resourceUri=camel:///config/app.json"
+     + "&tags=crm&description=Application 
configuration&mimeType=application/json")
+    .setBody(constant("{\\"env\\":\\"production\\"}"));

Review Comment:
   Thanks for catching this. Fixed both the resource and resource-template 
examples to use normal Java string escaping (a single backslash before embedded 
quotes).
   
   I corrected the source usage document and regenerated the starter 
documentation page. I also verified that both examples in the generated 
AsciiDoc are copy-pasteable Java code.
   
   The focused MCP test suite passes (45 tests, zero failures or errors), and 
the starter package build succeeds.



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