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

Function executeAction

src/ui/components/McpPicker.tsx:184–192  ·  view source on GitHub ↗
(action: string | undefined)

Source from the content-addressed store, hash-verified

182 }
183
184 async function executeAction(action: string | undefined): Promise<void> {
185 if (!action || !current) return
186 setActionMode(false)
187 if (action === "Authenticate") await reauthSelected()
188 else if (action === "Enable") await enableSelected()
189 else if (action === "Disable") await disableSelected()
190 else if (action === "Reconnect") await reconnectSelected()
191 else if (action === "Delete") await deleteSelected()
192 }
193
194 async function enableSelected(): Promise<void> {
195 if (!current) return

Callers 1

McpPickerFunction · 0.85

Calls 5

reauthSelectedFunction · 0.85
enableSelectedFunction · 0.85
disableSelectedFunction · 0.85
reconnectSelectedFunction · 0.85
deleteSelectedFunction · 0.85

Tested by

no test coverage detected