import 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][] get(name: string): Types.DeepMutable | undefined set(name: string, config: Mcp.ServerConfig): void update(name: string, update: (config: Types.DeepMutable) => void): void remove(name: string): void } export interface MCPDomain extends Omit, "resource"> { readonly transform: Transform readonly reload: () => Effect.Effect }