MCPcopy Create free account
hub / github.com/Microck/opencode-studio / togglePlugin

Function togglePlugin

client-next/src/lib/api.ts:323–326  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

321}
322
323export async function togglePlugin(name: string): Promise<{ enabled: boolean }> {
324 const { data } = await api.post<{ success: boolean; enabled: boolean }>(`/plugins/${name}/toggle`);
325 return { enabled: data.enabled };
326}
327
328export async function getMcpServers(): Promise<Record<string, MCPConfig>> {
329 const { data } = await api.get<Record<string, MCPConfig>>('/mcp');

Callers 1

handleToggleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected