MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / disableSelected

Function disableSelected

src/ui/components/McpPicker.tsx:207–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 }
206
207 async function disableSelected(): Promise<void> {
208 if (!current) return
209 setBusy(true)
210 setBusyMessage("Disabling…")
211 try {
212 await manager.disableServer(current.name)
213 await refresh()
214 } finally {
215 setBusy(false)
216 setBusyMessage("")
217 }
218 }
219
220 async function deleteSelected(): Promise<void> {
221 if (!current) return

Callers 1

executeActionFunction · 0.85

Calls 2

refreshFunction · 0.85
disableServerMethod · 0.80

Tested by

no test coverage detected