-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.ps1
More file actions
74 lines (67 loc) · 2.91 KB
/
Copy pathinstall.ps1
File metadata and controls
74 lines (67 loc) · 2.91 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# SPSS-MCP One-Click Installer (PowerShell)
# Usage: right-click -> Run with PowerShell
Write-Host "========================================" -ForegroundColor Cyan
Write-Host " SPSS-MCP One-Click Installer" -ForegroundColor Cyan
Write-Host "========================================" -ForegroundColor Cyan
Write-Host ""
# Check Python
try {
$pythonVersion = python --version 2>&1
Write-Host "[OK] Python detected: $pythonVersion" -ForegroundColor Green
} catch {
Write-Host "[X] Python not found. Please install Python 3.10 or later first." -ForegroundColor Red
Write-Host "Download: https://www.python.org/downloads/" -ForegroundColor Yellow
Read-Host "Press Enter to exit"
exit 1
}
Write-Host ""
Write-Host "[1/4] Installing SPSS-MCP..." -ForegroundColor Yellow
try {
pip install -e . 2>&1 | Out-Null
Write-Host "[OK] Installation complete" -ForegroundColor Green
} catch {
Write-Host "[X] Installation failed. Check your network connection or pip configuration." -ForegroundColor Red
Read-Host "Press Enter to exit"
exit 1
}
Write-Host ""
Write-Host "[2/4] Verifying installation..." -ForegroundColor Yellow
$statusOutput = spss-mcp status 2>&1
Write-Host $statusOutput
if ($statusOutput -match "SPSS batch : NOT FOUND") {
Write-Host "[!] SPSS not detected; file tools only will be available" -ForegroundColor Yellow
Write-Host "To use analysis tools, install IBM SPSS Statistics first." -ForegroundColor Yellow
}
Write-Host ""
Write-Host "[3/4] Installing Claude Code skills..." -ForegroundColor Yellow
$skillsDir = "$env:USERPROFILE\.claude\skills"
if (-not (Test-Path $skillsDir)) {
New-Item -ItemType Directory -Path $skillsDir -Force | Out-Null
}
Copy-Item -Recurse -Force "skills\spss-analyst" "$skillsDir\spss-analyst"
Copy-Item -Recurse -Force "skills\spss-mcp-guard" "$skillsDir\spss-mcp-guard"
Write-Host "[OK] Skills installed to $skillsDir" -ForegroundColor Green
Write-Host ""
Write-Host "[4/4] Auto-configuring Claude Code..." -ForegroundColor Yellow
try {
$configOutput = spss-mcp configure-claude 2>&1
Write-Host $configOutput
Write-Host "[OK] Claude Code configuration updated" -ForegroundColor Green
} catch {
Write-Host "[X] Auto-configuration failed. Run manually: spss-mcp configure-claude" -ForegroundColor Red
Write-Host $_ -ForegroundColor Yellow
Read-Host "Press Enter to exit"
exit 1
}
Write-Host ""
Write-Host "========================================" -ForegroundColor Cyan
Write-Host " Installation complete!" -ForegroundColor Green
Write-Host "========================================" -ForegroundColor Cyan
Write-Host ""
Write-Host "Next steps:" -ForegroundColor Yellow
Write-Host "1. Restart Claude Code" -ForegroundColor White
Write-Host "2. In Claude Code, type: Check SPSS status" -ForegroundColor White
Write-Host ""
Write-Host "Full documentation: README.md or QUICK_START.md" -ForegroundColor Gray
Write-Host ""
Read-Host "Press Enter to exit"