forked from FlorianBruniaux/claude-code-ultimate-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck-claude.sh
More file actions
44 lines (37 loc) · 1.07 KB
/
check-claude.sh
File metadata and controls
44 lines (37 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
echo -e "\n=== Claude Code Health Check ==="
echo -e "\n--- Node & npm ---"
node --version
npm --version
echo -e "\n--- Claude Installation ---"
which claude
if [ $? -eq 0 ]; then
echo "✓ Claude found in PATH"
else
echo "✗ Claude not in PATH"
fi
echo -e "\n--- Running Claude Doctor ---"
if claude doctor; then
echo "✓ Claude doctor completed"
else
echo "✗ Claude doctor failed"
fi
echo -e "\n--- API Key Status ---"
if [ -n "$ANTHROPIC_API_KEY" ]; then
echo "✓ ANTHROPIC_API_KEY is set"
else
echo "✗ ANTHROPIC_API_KEY not set"
fi
echo -e "\n--- Privacy Reminder ---"
echo "⚠️ Your prompts and file contents are sent to Anthropic"
echo " Default retention: 5 years (training) | Opt-out: 30 days"
echo " → Disable training: https://claude.ai/settings/data-privacy-controls"
echo -e "\n--- MCP Servers ---"
claude mcp list
echo -e "\n--- Config Location ---"
if [ -f ~/.claude.json ]; then
echo "✓ Config found at: ~/.claude.json"
else
echo "⚠ No config file at: ~/.claude.json"
fi
echo -e "\n=== Health Check Complete ==="