-
Notifications
You must be signed in to change notification settings - Fork 287
Expand file tree
/
Copy pathcheck-claude.ps1
More file actions
37 lines (31 loc) · 1.13 KB
/
check-claude.ps1
File metadata and controls
37 lines (31 loc) · 1.13 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
Write-Host "`n=== Claude Code Health Check ===" -ForegroundColor Cyan
Write-Host "`n--- Node & npm ---"
node --version
npm --version
Write-Host "`n--- Claude Installation ---"
where.exe claude
if ($?) { Write-Host "✓ Claude found in PATH" -ForegroundColor Green }
else { Write-Host "✗ Claude not in PATH" -ForegroundColor Red }
Write-Host "`n--- Running Claude Doctor ---"
try {
claude doctor
Write-Host "✓ Claude doctor completed" -ForegroundColor Green
} catch {
Write-Host "✗ Claude doctor failed: $_" -ForegroundColor Red
}
Write-Host "`n--- API Key Status ---"
if ($env:ANTHROPIC_API_KEY) {
Write-Host "✓ ANTHROPIC_API_KEY is set" -ForegroundColor Green
} else {
Write-Host "✗ ANTHROPIC_API_KEY not set" -ForegroundColor Red
}
Write-Host "`n--- MCP Servers ---"
claude mcp list
Write-Host "`n--- Config Location ---"
$configPath = "$env:USERPROFILE\.claude.json"
if (Test-Path $configPath) {
Write-Host "✓ Config found at: $configPath" -ForegroundColor Green
} else {
Write-Host "⚠ No config file at: $configPath" -ForegroundColor Yellow
}
Write-Host "`n=== Health Check Complete ===" -ForegroundColor Cyan