# x711 Universal MCP Installer (Windows PowerShell) # Usage: irm https://x711.io/install.ps1 | iex $entry = @{ url = "https://x711.io/mcp"; transport = "streamable-http" } $installed = $false function Patch-Config([string]$path) { if (-not (Test-Path $path)) { return } $cfg = Get-Content $path -Raw | ConvertFrom-Json if (-not $cfg.mcpServers) { $cfg | Add-Member -NotePropertyName mcpServers -NotePropertyValue @{} } if ($cfg.mcpServers.x711) { Write-Host " Already installed: $path"; $script:installed = $true; return } $cfg.mcpServers | Add-Member -NotePropertyName x711 -NotePropertyValue $entry $cfg | ConvertTo-Json -Depth 10 | Set-Content $path Write-Host " Patched: $path" $script:installed = $true } Write-Host "" Write-Host "x711 - Universal MCP Installer" Write-Host "" Patch-Config "$env:APPDATA\Claude\claude_desktop_config.json" Patch-Config "$env:USERPROFILE\.cursor\mcp.json" Patch-Config "$env:USERPROFILE\.windsurf\mcp.json" if (-not $installed) { $dir = "$env:USERPROFILE\.cursor" if (-not (Test-Path $dir)) { New-Item -ItemType Directory -Path $dir | Out-Null } @{ mcpServers = @{ x711 = $entry } } | ConvertTo-Json -Depth 5 | Set-Content "$dir\mcp.json" Write-Host " Created: $dir\mcp.json" } Write-Host "" Write-Host "Restart your AI tool to activate x711 (47 tools including genesis_forge, 10 free calls/day)." Write-Host "Full access: POST https://x711.io/api/onboard" Write-Host ""