ramu11 commented on code in PR #9509:
URL: https://github.com/apache/camel-quarkus/pull/9509#discussion_r4704320569


##########
extensions/mcp-server/runtime/src/main/doc/usage.adoc:
##########
@@ -45,6 +45,42 @@ in the AI Tool component documentation.
 In native mode, an `outputSchema` loaded from `classpath:` must be
 
xref:user-guide/native-mode.adoc#embedding-resource-in-native-executable[embedded
 in the native executable].
 
+=== Caller identity
+
+For authenticated HTTP requests, the MCP server reads the current Quarkus
+`SecurityIdentity` when a tool is invoked. The Camel MCP bridge puts the
+authenticated Java `Principal`, its name and its role names on the tool
+exchange as these properties:
+
+* `CamelMcpSecurityPrincipal` — the raw `java.security.Principal`.
+* `CamelMcpSecurityPrincipalName` — the principal name.
+* `CamelMcpSecurityPrincipalRoles` — the caller's role names as a collection.

Review Comment:
   Addressed in commit `ed222bd3d8d881889857afc2ce375d7e46f326bfa7`.
   
   Corrected both documentation files:
   - `extensions/mcp-server/runtime/src/main/doc/usage.adoc`
   - `docs/modules/ROOT/pages/reference/extensions/mcp-server.adoc`
   
   The documented property names now match `AiToolConstants`:
   - `CamelAiToolSecurityPrincipalName`
   - `CamelAiToolSecurityPrincipalRoles`
   
   `CamelMcpSecurityPrincipal` remains unchanged for the raw 
`java.security.Principal`.



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