# Maktabah MCP Installer for Windows (PowerShell) # Usage: powershell -c "irm https://maktabah.underconst.com/mcp/install.ps1 | iex" # # Or download manually: # https://maktabah.underconst.com/mcp/maktabah-mcp-windows-amd64.exe $Repo = "https://maktabah.underconst.com/mcp" $BinDir = "$env:USERPROFILE\.local\bin" $BinName = "maktabah-mcp.exe" $InstallPath = Join-Path $BinDir $BinName # Create directory if not exists if (-not (Test-Path $BinDir)) { New-Item -ItemType Directory -Path $BinDir -Force | Out-Null } $Filename = "maktabah-mcp-windows-amd64.exe" $Url = "$Repo/$Filename" Write-Host "📦 Downloading $Filename ..." -ForegroundColor Cyan try { Invoke-WebRequest -Uri $Url -OutFile $InstallPath -UseBasicParsing Write-Host "✅ Installed to $InstallPath" -ForegroundColor Green } catch { Write-Host "❌ Download failed: $_" -ForegroundColor Red exit 1 } Write-Host "" Write-Host "➡️ Add to PATH manually or use full path in config:" Write-Host "" Write-Host ' {' Write-Host ' "mcpServers": {' Write-Host ' "maktabah": {' Write-Host ' "command": "'"$InstallPath"'",' Write-Host ' "args": ["--base-url", "https://maktabah.underconst.com"]' Write-Host ' }' Write-Host ' }' Write-Host ' }' Write-Host "" Write-Host "🚀 Binaries downloaded to: $InstallPath"