fix: normalize Codex Context7 naming

This commit is contained in:
Sean Cheick Baradji
2026-03-27 13:31:37 -04:00
committed by Affaan Mustafa
parent 1181d93498
commit 6a7a115e18
5 changed files with 14 additions and 7 deletions

View File

@@ -103,7 +103,7 @@ if [[ -f "$CONFIG_FILE" ]]; then
'mcp_servers.github' \
'mcp_servers.memory' \
'mcp_servers.sequential-thinking' \
'mcp_servers.context7-mcp'
'mcp_servers.context7'
do
if rg -n "^\[$section\]" "$CONFIG_FILE" >/dev/null 2>&1; then
ok "MCP section [$section] exists"
@@ -112,10 +112,10 @@ if [[ -f "$CONFIG_FILE" ]]; then
fi
done
if rg -n '^\[mcp_servers\.context7\]' "$CONFIG_FILE" >/dev/null 2>&1; then
warn "Duplicate [mcp_servers.context7] exists (context7-mcp is preferred)"
if rg -n '^\[mcp_servers\.context7-mcp\]' "$CONFIG_FILE" >/dev/null 2>&1; then
warn "Legacy [mcp_servers.context7-mcp] exists (context7 is preferred)"
else
ok "No duplicate [mcp_servers.context7] section"
ok "No legacy [mcp_servers.context7-mcp] section"
fi
fi