Buckets:
| import type { McpStatus } from "@opencode-ai/sdk/v2/client" | |
| export async function toggleMcp(input: { | |
| status: McpStatus["status"] | |
| connect: () => Promise<void> | |
| disconnect: () => Promise<void> | |
| authenticate: () => Promise<void> | |
| refresh: () => Promise<void> | |
| }) { | |
| await { | |
| connected: input.disconnect, | |
| needs_auth: input.authenticate, | |
| disabled: input.connect, | |
| failed: input.connect, | |
| needs_client_registration: input.connect, | |
| }[input.status]() | |
| await input.refresh() | |
| } | |
Xet Storage Details
- Size:
- 496 Bytes
- Xet hash:
- 836014520887bc276a802ad749c33eb263d257bf4a170be8b6398eefdc47e71c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.