Skip to content

Commit 283c9fa

Browse files
authored
Merge pull request #354 from DragonFSKY/feat/native-claude-cli-detection
feat: support native installed Claude CLI detection
2 parents 94ff26c + 471af60 commit 283c9fa

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

run-server.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)