import type { McpApi } from "@opencode/client/promise/api"; import type { Mcp } from "@opencode/schema/mcp"; import type { Types } from "effect"; import type { Transform } from "./registration.js"; export interface MCPEditor { 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 Pick { readonly transform: Transform; readonly reload: () => Promise; }