System Setup for MCP Servers
Automated installation and verification of MCP runtime dependencies.
Path conventions
Paths in this skill are relative to this skill's Base Directory. Replace <skill-base-dir> with its absolute path in commands.
Missing runtime during a task (fixed order)
Use this when a command fails with command not found, exit code 127, a missing Python or Node version, or a broken venv:
- Look for a user-scope tool first:
uv, conda, nvm (Get-Command uv/command -v uv conda; nvm is a shell function, so check$NVM_DIR). - For Python, use
uv run --python <version> <script.py>oruv python install <version>. - Prefer a user-scope install. If a step needs root, ask for the password once with
workspace__runInPersistentShellandrequireUserInput=true,inputType=password,storeAs=SUDO_PASSWORD, then use plainsudo. Do not usesudo -n,sudo -S,su, orpkexec. - After one install attempt, run the check again. If it still fails, report the error to the user and stop.
If the output contains os error 448 or ERROR_UNTRUSTED_MOUNT_POINT, stop and report: Windows RedirectionGuard blocks the uv Python junction (#2527). Do not reinstall.
Workflow
- Detect OS — identify platform via terminal
- Check installations — run verification commands below
- Install missing components — use platform scripts or installation-guide.md
- Verify — run
verify_setupscript or manual checks; confirm Python 3.11+, Node 18+, uv available
Quick Verification
Windows (PowerShell):
Get-Command python -ErrorAction SilentlyContinue
Get-Command node -ErrorAction SilentlyContinue
Get-Command uv -ErrorAction SilentlyContinue
Linux/macOS:
which python3 && python3 --version
which node && node --version
which uv && uv --version
Report what is missing, then load only the relevant section from the installation guide.
Automated Scripts
Prefer scripts when the user wants hands-off install:
# Windows examples
& "<skill-base-dir>/scripts/verify_setup.ps1"
& "<skill-base-dir>/scripts/install_python.ps1"
& "<skill-base-dir>/scripts/install_node.ps1"
& "<skill-base-dir>/scripts/install_uv.ps1"
# Linux/macOS examples (install_node.sh is Linux-only; on macOS use brew install node)
bash "<skill-base-dir>/scripts/verify_setup.sh"
bash "<skill-base-dir>/scripts/install_python.sh"
bash "<skill-base-dir>/scripts/install_node.sh" # Linux only; no-op if node exists, add --force to reinstall
bash "<skill-base-dir>/scripts/install_uv.sh"
Advanced Topics
- PATH configuration: PATH_CONFIG.md
- Virtual environments: VENV_GUIDE.md
- Offline installation: OFFLINE_INSTALL.md
- OS-specific commands: installation-guide.md
Integration with LibrAgent
LibrAgent MCP servers require:
- Python 3.11+ for Python-based MCP servers
- Node.js 18+ for TypeScript-based MCP servers
- uv for fast Python dependency management
After setup, re-run the verification script before retrying failed MCP servers.