Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
123456789101112131415161718import type { McpApi } from "@opencode-ai/client/effect/api"import type { Mcp } from "@opencode-ai/schema/mcp"import type { Effect, Types } from "effect"import type { Transform } from "./registration.js"
export interface MCPDraft { list(): readonly [string, Types.DeepMutable<Mcp.ServerConfig>][] get(name: string): Types.DeepMutable<Mcp.ServerConfig> | undefined set(name: string, config: Mcp.ServerConfig): void update(name: string, update: (config: Types.DeepMutable<Mcp.ServerConfig>) => void): void remove(name: string): void}
export interface MCPDomain extends Pick<McpApi<unknown>, "list"> { readonly transform: Transform<MCPDraft> readonly reload: () => Effect.Effect<void>}