Update User Guide with Mcp Server Security content#1535
Merged
alexheifetz merged 4 commits intomainfrom Mar 24, 2026
Merged
Conversation
jasperblues
reviewed
Mar 24, 2026
Contributor
jasperblues
left a comment
There was a problem hiding this comment.
Looks good to me, added one non-blocking comment for consideration.
jasperblues
approved these changes
Mar 24, 2026
…nd MCP-specific example
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This pull request introduces comprehensive documentation and examples for the new
@SecureAgentToolannotation, which adds fine-grained, method-level access control to Embabel agent actions. It explains the motivation for this annotation, how it differs from Spring's@PreAuthorize, and provides guidance on integrating it with existing security layers in an MCP server. The documentation also clarifies how@SecureAgentToolcomplements guardrails and bean validation, and provides detailed setup instructions for both HTTP-level and method-level security.Key documentation additions and improvements:
1. Security Annotation Reference and Usage
page.adocdescribing the@SecureAgentToolannotation, including its purpose, how it works, placement (class vs. method level), and supported Spring Security SpEL expressions. Includes Kotlin and Java code examples and setup instructions.2. Integration with Guardrails and Validation
@SecureAgentToolprovides access control, complementing guardrails (content safety) and bean validation (data validity). Cross-references the new annotation's documentation.3. MCP Server Security Integration
@SecureAgentTool(method-level authorization). Includes configuration examples for both layers and dependency setup.These changes ensure users understand how to secure agent actions at both the transport and business logic levels, and how to combine
@SecureAgentToolwith other safety mechanisms.