Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

fix: clean up legacy Context7 aliases on update

Sean Cheick Baradji432788d0b575
diff --git a/scripts/codex/merge-mcp-config.js b/scripts/codex/merge-mcp-config.js
index 48973934e..38138dade 100644
--- a/scripts/codex/merge-mcp-config.js
+++ b/scripts/codex/merge-mcp-config.js
@@ -257,6 +257,10 @@ function main() {
if (resolvedLabel !== name) {
raw = removeServerFromText(raw, name, existing);
}
+ if (legacyName && hasCanonical) {
+ toRemoveLog.push(`mcp_servers.${legacyName}`);
+ raw = removeServerFromText(raw, legacyName, existing);
+ }
toAppend.push(spec.toml);
} else {
// Add-only mode: skip, but warn about drift