-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Hi,
Not sure if it's a bug or a feature request : I'm securing my MCP Server with quarkus-oidc , on top of the @authenticated on the class level I have roles defined for my tools :
@RolesAllowed("platform-team")
@Tool(name = "add-new-db-region", description = "Add a new database region")
public String addNewDBRegion(String region) {
Log.info("Adding new DB region: " + region);
return "New DB region added: " + region;
}
@RolesAllowed("feature-team")
@Tool(name = "request-new-db-region", description = "Request a new database region")
public String requestNewDBRegion(String region) {
Log.info("Request a new DB region: " + region);
return "DB region requested: " + region;
}
Calling the tool where the token has not the role is working as expected but the MCP Client still receives this tool in the beginning when doing the list/tools, shouldn't the tools be filtered out based on the @RolesAllowed or is this a feature request ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request