File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1231,6 +1231,26 @@ check_claude_cli_integration() {
12311231 local python_cmd=" $1 "
12321232 local server_path=" $2 "
12331233
1234+ # Check for native installed Claude CLI (not in PATH by default)
1235+ # Native installs:
1236+ # - curl https://claude.ai/install.sh | bash -> ~/.local/bin/claude
1237+ # - brew install --cask claude-code -> /opt/homebrew/bin/claude (Apple Silicon) or /usr/local/bin/claude (Intel)
1238+ if ! command -v claude & > /dev/null; then
1239+ local claude_paths=(
1240+ " $HOME /.local/bin"
1241+ " /opt/homebrew/bin"
1242+ " /usr/local/bin"
1243+ )
1244+ for dir in " ${claude_paths[@]} " ; do
1245+ if [[ -x " $dir /claude" ]]; then
1246+ print_info " Found native installed Claude CLI at $dir /claude"
1247+ export PATH=" $dir :$PATH "
1248+ print_success " Added $dir to PATH"
1249+ break
1250+ fi
1251+ done
1252+ fi
1253+
12341254 if ! command -v claude & > /dev/null; then
12351255 echo " "
12361256 print_warning " Claude CLI not found"
You can’t perform that action at this time.
0 commit comments