MCPcopy Create free account
hub / github.com/ShipSecAI/studio / handleRemoveGroup

Function handleRemoveGroup

frontend/src/pages/McpLibraryPage.tsx:1178–1196  ·  view source on GitHub ↗
(groupId: string, groupName: string)

Source from the content-addressed store, hash-verified

1176 };
1177
1178 const handleRemoveGroup = async (groupId: string, groupName: string) => {
1179 const confirmed = window.confirm(`Remove ${groupName}? This will delete the group.`);
1180 if (!confirmed) return;
1181
1182 try {
1183 await mcpGroupsApi.deleteGroup(groupId);
1184 toast({
1185 title: 'Group removed',
1186 description: `${groupName} was removed.`,
1187 });
1188 await fetchGroups({ force: true });
1189 } catch (err) {
1190 toast({
1191 title: 'Remove failed',
1192 description: err instanceof Error ? err.message : 'Failed to remove group',
1193 variant: 'destructive',
1194 });
1195 }
1196 };
1197
1198 const handleToggleTool = async (serverId: string, toolId: string) => {
1199 try {

Callers 1

McpLibraryPageFunction · 0.85

Calls 1

deleteGroupMethod · 0.45

Tested by

no test coverage detected