changed context7 to cli
This commit is contained in:
1 parent
45c3507200
commit
854a0af92a
6 files changed
+45
-35
No files matched your search
+2
-11
@@ -59,17 +59,8 @@ detect_uiux_pro_max() {
|
||||
}
|
||||
|
||||
detect_context7() {
|
||||
# Fast check: read ~/.claude.json (MCP config) without spawning the claude CLI
|
||||
local cfg="$HOME/.claude.json"
|
||||
if [ -f "$cfg" ]; then
|
||||
grep -q "context7" "$cfg" 2>/dev/null && return 0
|
||||
fi
|
||||
# Fallback: ~/.mcp.json (project-scoped MCP config at user level)
|
||||
local mcp="$HOME/.mcp.json"
|
||||
if [ -f "$mcp" ]; then
|
||||
grep -q "context7" "$mcp" 2>/dev/null && return 0
|
||||
fi
|
||||
return 1
|
||||
# Context7 CLI (ctx7) — installed globally via npm
|
||||
command -v ctx7 &>/dev/null
|
||||
}
|
||||
|
||||
detect_ruflo() {
|
||||
|
||||
Reference in new issue
Block a user