feat(mcp): multi-server lifecycle — enable/disable + error visibility (#3196) (#3339)

This commit is contained in:
CodeGhost21
2026-06-04 18:11:39 -04:00
committed by GitHub
parent 7edfb043d3
commit d710252eef
41 changed files with 1386 additions and 41 deletions
@@ -140,6 +140,15 @@ const McpServersTab = () => {
[loadInstalled, fetchStatuses]
);
const handleEnabledChange = useCallback(
async (_serverId: string, _enabled: boolean) => {
log('enabled_change server_id=%s enabled=%s', _serverId, _enabled);
await loadInstalled();
await fetchStatuses();
},
[loadInstalled, fetchStatuses]
);
// Count rejected settlements and, if any, throw a descriptive error so the
// toolbar surfaces it through its `role="alert"` region — otherwise a bulk
// action that partially (or wholly) fails looks identical to success and
@@ -272,6 +281,7 @@ const McpServersTab = () => {
server={selectedServer}
connStatus={selectedConnStatus}
onUninstalled={serverId => void handleUninstalled(serverId)}
onEnabledChange={(serverId, enabled) => void handleEnabledChange(serverId, enabled)}
/>
)}
</div>