# Nexivo MCP, installed and set up in one line, on Windows, in PowerShell: # # irm https://nexivo-link.pages.dev/ai/install.ps1 | iex # # It downloads nexivo-mcp-.tgz from this site, checks its SHA-256, # and installs it in %USERPROFILE%\.nexivo-mcp\app\ with an npm # cache of its own, so it needs no administrator and nothing from npm's # global folder. Then it adds Nexivo MCP to Claude Code and Claude Desktop, # asking nothing: the computer, its password and the Premium key are given # to Claude in the chat. # # Run it again to update Nexivo MCP. To save a computer here instead of # giving its password in a chat, set NEXIVO_MCP_SETUP first: # $env:NEXIVO_MCP_SETUP = 1; irm https://nexivo-link.pages.dev/ai/install.ps1 | iex # # irm | iex runs this in the person's own window, so it never exits (that # would close the window): it returns. It calls npm.cmd, not npm: with # PowerShell's default execution policy, `npm` runs npm.ps1 and is refused. # Plain ASCII only: Windows PowerShell 5.1 reads text without a BOM as ANSI. & { $ErrorActionPreference = 'Stop' $ProgressPreference = 'SilentlyContinue' $Version = '1.1.1' $Sha256 = 'b5ef9a9c2dfe5afc070a9e683818a8e7f3548c4cc9e90109450f05dd343a9eba' $Base = if ($env:NEXIVO_MCP_BASE) { $env:NEXIVO_MCP_BASE } else { 'https://nexivo-link.pages.dev/ai' } $Dir = Join-Path $env:USERPROFILE '.nexivo-mcp' $AppRoot = Join-Path $Dir 'app' $App = Join-Path $AppRoot $Version $Bin = Join-Path $App 'node_modules\nexivo-mcp\bin\nexivo-mcp.mjs' function Say($Text) { Write-Host $Text } function Fail($Text) { Write-Host "Nexivo MCP: $Text" -ForegroundColor Red } # Node.js installed a moment ago (winget) is not on this window's PATH yet. $env:Path = $env:Path + ';' + [Environment]::GetEnvironmentVariable('Path', 'Machine') + ';' + [Environment]::GetEnvironmentVariable('Path', 'User') [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 if (-not (Get-Command node.exe -ErrorAction SilentlyContinue)) { Fail 'Node.js 20.11 or later is needed: winget install OpenJS.NodeJS.LTS Gyan.FFmpeg, then run this again.' return } & node.exe -e "const [a, b] = process.versions.node.split('.').map(Number); process.exit(a > 20 || (a === 20 && b >= 11) ? 0 : 1)" if ($LASTEXITCODE -ne 0) { Fail "Node.js $(& node.exe -v) is too old: 20.11 or later is needed. winget upgrade OpenJS.NodeJS.LTS, then run this again." return } $Npm = Get-Command npm.cmd -ErrorAction SilentlyContinue if (-not $Npm) { Fail 'npm was not found beside Node.js. Reinstall Node.js (winget install OpenJS.NodeJS.LTS), then run this again.' return } if (-not (Get-Command ffmpeg.exe -ErrorAction SilentlyContinue)) { Say 'Note: ffmpeg was not found, and Nexivo MCP needs it to see the screen: winget install Gyan.FFmpeg' } if (Test-Path $Bin) { Say "Nexivo MCP $Version is already installed." } else { try { if (Test-Path $App) { Remove-Item $App -Recurse -Force } New-Item -ItemType Directory -Path $App -Force | Out-Null $Tgz = Join-Path $App "nexivo-mcp-$Version.tgz" Say "Downloading Nexivo MCP $Version..." Invoke-WebRequest -Uri "$Base/nexivo-mcp-$Version.tgz" -OutFile $Tgz -UseBasicParsing } catch { Fail "the download failed ($($_.Exception.Message)). Check this computer is online, then run this again." return } $Got = (Get-FileHash -Path $Tgz -Algorithm SHA256).Hash.ToLowerInvariant() if ($Got -ne $Sha256) { Remove-Item $App -Recurse -Force -ErrorAction SilentlyContinue Fail "the download is not the file it should be (its SHA-256 is $Got). Run this again; if it says this again, tell Nexivo." return } Say 'Installing...' & $Npm.Source install --prefix $App --cache (Join-Path $Dir 'npm-cache') --no-audit --no-fund --update-notifier=false --loglevel=error $Tgz | Out-Null if ($LASTEXITCODE -ne 0 -or -not (Test-Path $Bin)) { Fail 'npm could not install it (its messages are above). Run this again; if it says this again, tell Nexivo.' return } # Older versions: Claude is moved to this one by setup, below. One that a running # Claude still has open stays until the next run. Get-ChildItem -Path $AppRoot -Directory | Where-Object { $_.Name -ne $Version } | ForEach-Object { Remove-Item $_.FullName -Recurse -Force -ErrorAction SilentlyContinue } Say "Installed in $App." } Say '' if ($env:NEXIVO_MCP_SETUP) { & node.exe $Bin setup } else { & node.exe $Bin register } }