Class GrouperMcpAssignAttributes
java.lang.Object
edu.internet2.middleware.grouper.ws.mcp.GrouperMcpAssignAttributes
MCP tool handler for assigning, adding, removing, or replacing attributes in Grouper.
Supports attribute operations on groups, stems, members, and other owner types.
Delegates to the WS assignAttributes service logic for consistency.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.node.ObjectNodeexecute(com.fasterxml.jackson.databind.JsonNode arguments, GrouperMcpAuthUser authUser) execute the attribute_assignment_save tool by delegating to the WS service logicstatic com.fasterxml.jackson.databind.node.ObjectNodereturn the MCP tool definition for attribute_assignment_save
-
Constructor Details
-
GrouperMcpAssignAttributes
public GrouperMcpAssignAttributes()
-
-
Method Details
-
toolDefinition
public static com.fasterxml.jackson.databind.node.ObjectNode toolDefinition()return the MCP tool definition for attribute_assignment_save- 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 attribute_assignment_save tool by delegating to the WS service logic- Parameters:
arguments- the tool arguments from the MCP requestauthUser- the authenticated user- Returns:
- the MCP tool result
-