MCP Dependencies Installer
by Xeonice
A cross-platform dependency installation script for Node.js, npx, and uv. It simplifies the process of setting up these essential tools on various operating systems.
View on GitHub
Last updated: N/A
MCP Dependencies Installer
A cross-platform dependency installation script for Node.js, npx, and uv.
Supported Operating Systems
- Linux (Ubuntu, AlmaLinux/CentOS, Alpine)
- macOS
- Windows
Installation Methods
Linux
Ubuntu/Debian
# Download the installation script
curl -O https://raw.githubusercontent.com/yourusername/mcp-depedencies-install/main/install_dependencies.sh
# Make the script executable
chmod +x install_dependencies.sh
# Run the installation script
./install_dependencies.sh
AlmaLinux/CentOS
# Download the installation script
curl -O https://raw.githubusercontent.com/yourusername/mcp-depedencies-install/main/install_dependencies.sh
# Make the script executable
chmod +x install_dependencies.sh
# Run the installation script
./install_dependencies.sh
Alpine Linux
# Download the installation script
curl -O https://raw.githubusercontent.com/yourusername/mcp-depedencies-install/main/install_dependencies.sh
# Make the script executable
chmod +x install_dependencies.sh
# Run the installation script
./install_dependencies.sh
macOS
# Download the installation script
curl -O https://raw.githubusercontent.com/yourusername/mcp-depedencies-install/main/install_dependencies.sh
# Make the script executable
chmod +x install_dependencies.sh
# Run the installation script
./install_dependencies.sh
Windows
# Download the installation script
curl -O https://raw.githubusercontent.com/yourusername/mcp-depedencies-install/main/install_dependencies.sh
# Make the script executable (if using Git Bash or WSL)
chmod +x install_dependencies.sh
# Run the installation script
./install_dependencies.sh
Prerequisites
Linux
curl
andsudo
installed on your system- For Ubuntu/Debian:
apt-get
package manager - For AlmaLinux/CentOS:
dnf
oryum
package manager - For Alpine:
apk
package manager
macOS
curl
installed on your system- Homebrew (will be installed automatically if not present)
Windows
- Windows Package Manager (winget) installed
- Git Bash, WSL, or PowerShell for running the script
What Gets Installed
The script will install the following dependencies:
- Node.js (v22.x LTS)
- npx (v10.x)
- uv (v0.6.x)
Testing
To test the installation script across different environments:
# Make the test script executable
chmod +x test_dependencies.sh
# Run the tests
./test_dependencies.sh
This will test the installation script in Docker containers simulating:
- Ubuntu
- AlmaLinux (CentOS)
- Alpine Linux
- macOS
- Windows
Notes
- The script requires sudo privileges on Linux systems
- After installation, you may need to restart your terminal for PATH changes to take effect
- For Linux and macOS users, the script will automatically add the local bin directory to your PATH
- Windows users should ensure they have the Windows Package Manager (winget) installed before running the script
License
[Your License Here]