Expand description
Group management MCP tool handlers.
Provides handlers for group CRUD operations via MCP tools.
Provides both consolidated (execute_groups) and legacy handlers.
Structsยง
- Group
AddMember ๐Args - Arguments for
group_add_membertool. - Group
Create ๐Args - Arguments for
group_createtool. - Group
Delete ๐Args - Arguments for
group_deletetool. - Group
GetArgs ๐ - Arguments for
group_gettool. - Group
Remove ๐Member Args - Arguments for
group_remove_membertool. - Group
Update ๐Role Args - Arguments for
group_update_roletool.
Functionsยง
- desc_
or_ ๐none - Returns the description or โ(none)โ if empty.
- error_
result ๐ - Creates an error result with text content.
- execute_
group_ add_ member - Executes the
group_add_membertool. - execute_
group_ create - Executes the
group_createtool. - execute_
group_ delete - Executes the
group_deletetool. - execute_
group_ get - Executes the
group_gettool. - execute_
group_ list - Executes the
group_listtool. - execute_
group_ remove_ member - Executes the
group_remove_membertool. - execute_
group_ update_ role - Executes the
group_update_roletool. - execute_
groups - Executes the consolidated
subcog_groupstool. - execute_
groups_ ๐add_ member - Handles the
add_memberaction forsubcog_groups. - execute_
groups_ ๐create - Handles the
createaction forsubcog_groups. - execute_
groups_ ๐delete - Handles the
deleteaction forsubcog_groups. - execute_
groups_ ๐get - Handles the
getaction forsubcog_groups. - execute_
groups_ ๐list - Handles the
listaction forsubcog_groups. - execute_
groups_ ๐remove_ member - Handles the
remove_memberaction forsubcog_groups. - execute_
groups_ ๐update_ role - Handles the
update_roleaction forsubcog_groups. - get_
org_ ๐id - Gets the current organization ID from environment.
- get_
user_ ๐id - Gets the current user ID from environment.
- parse_
args ๐ - Parses JSON arguments, converting errors to crate Error type.
- parse_
role ๐ - Parses a role string into a
GroupRole. - text_
result ๐ - Creates a success result with text content.