(groupId: string, groupName: string)
| 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 { |
no test coverage detected