diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.ts index e687bb74f..3112ea5a7 100644 --- a/packages/opencode/src/config/config.ts +++ b/packages/opencode/src/config/config.ts @@ -1433,6 +1433,12 @@ export namespace Config { const normalized = (() => { if (!data || typeof data !== "object" || Array.isArray(data)) return data const copy = { ...(data as Record) } + // Alias mcpServers → mcp (Claude Code / Copilot format compatibility) + if ("mcpServers" in copy && !("mcp" in copy)) { + copy.mcp = copy.mcpServers + delete copy.mcpServers + log.info("aliased mcpServers to mcp in config", { path: source }) + } const hadLegacy = "theme" in copy || "keybinds" in copy || "tui" in copy if (hadLegacy) { delete copy.theme