ramu11 commented on code in PR #9509:
URL: https://github.com/apache/camel-quarkus/pull/9509#discussion_r4587967494
##########
extensions/mcp-server/runtime/src/main/java/org/apache/camel/quarkus/component/mcp/server/QuarkusMcpServerEngineFactory.java:
##########
@@ -35,7 +39,17 @@ public class QuarkusMcpServerEngineFactory {
@Inject
ResourceManager resourceManager;
+ @Inject
+ ResourceTemplateManager resourceTemplateManager;
+
+ @Inject
+ PromptManager promptManager;
+
+ @Inject
+ CurrentIdentityAssociation currentIdentityAssociation;
Review Comment:
Addressed. Changed the injection to `Instance<CurrentIdentityAssociation>`
and check `isResolvable()` before retrieving the bean. When the security
extension is absent, `null` is passed to the engine, which falls back to
`McpToolCallContext.EMPTY`, allowing applications without security to build.
A dedicated integration-test module without the security extension has not
been added yet.
--
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]