Class GrouperMcpGetGroups

java.lang.Object
edu.internet2.middleware.grouper.ws.mcp.GrouperMcpGetGroups

public class GrouperMcpGetGroups extends Object
MCP tool handler for finding what groups a subject belongs to. Supports filtering by member filter, field, scope, stem, and paging. Delegates to the WS getGroups service logic for consistency.
  • Constructor Details

    • GrouperMcpGetGroups

      public GrouperMcpGetGroups()
  • Method Details

    • toolDefinition

      public static com.fasterxml.jackson.databind.node.ObjectNode toolDefinition()
      return the MCP tool definition for entity_get_groups
      Returns:
      the tool definition as a Jackson ObjectNode
    • execute

      public static com.fasterxml.jackson.databind.node.ObjectNode execute(com.fasterxml.jackson.databind.JsonNode arguments, GrouperMcpAuthUser authUser)
      execute the entity_get_groups tool by delegating to the WS service logic
      Parameters:
      arguments - the tool arguments from the MCP request
      authUser - the authenticated user
      Returns:
      the MCP tool result