Back to MCP directory
publicPublicdnsLocal runtime

mcp-depedencies-install

一个跨平台的依赖安装脚本,用于自动安装Node.js、npx和uv等工具,支持Linux、macOS和Windows系统。

article

README

🚀 MCP 依赖项安装程序

MCP 依赖项安装程序是一个跨平台的依赖项安装脚本,适用于 Node.js、npx 和 uv。它支持多种操作系统,能帮助用户快速安装所需依赖。

🚀 快速开始

本安装程序支持多种操作系统,你可以依据自己的系统类型,按照对应的安装步骤进行操作。

✨ 主要特性

  • 跨平台支持:支持 Linux(Ubuntu、AlmaLinux/CentOS、Alpine)、macOS 和 Windows 系统。
  • 自动安装:脚本会自动安装 Node.js(v22.x LTS)、npx(v10.x)和 uv(v0.6.x)等依赖项。
  • 测试功能:提供测试脚本,可在 Docker 容器中模拟不同环境进行测试。

📦 安装指南

Linux

Ubuntu/Debian

# 下载安装脚本
curl -O https://raw.githubusercontent.com/yourusername/mcp-depedencies-install/main/install_dependencies.sh

# 设置脚本可执行权限
chmod +x install_dependencies.sh

# 运行安装脚本
./install_dependencies.sh

AlmaLinux/CentOS

# 下载安装脚本
curl -O https://raw.githubusercontent.com/yourusername/mcp-depedencies-install/main/install_dependencies.sh

# 设置脚本可执行权限
chmod +x install_dependencies.sh

# 运行安装脚本
./install_dependencies.sh

Alpine Linux

# 下载安装脚本
curl -O https://raw.githubusercontent.com/yourusername/mcp-depedencies-install/main/install_dependencies.sh

# 设置脚本可执行权限
chmod +x install_dependencies.sh

# 运行安装脚本
./install_dependencies.sh

macOS

# 下载安装脚本
curl -O https://raw.githubusercontent.com/yourusername/mcp-depedencies-install/main/install_dependencies.sh

# 设置脚本可执行权限
chmod +x install_dependencies.sh

# 运行安装脚本
./install_dependencies.sh

Windows

# 下载安装脚本
curl -O https://raw.githubusercontent.com/yourusername/mcp-depedencies-install/main/install_dependencies.sh

# 设置脚本可执行权限(如果使用 Git Bash 或 WSL)
chmod +x install_dependencies.sh

# 运行安装脚本
./install_dependencies.sh

🔧 技术细节

先决条件

Linux

  • 系统已安装 curlsudo
  • 对于 Ubuntu/Debian:apt-get 包管理器。
  • 对于 AlmaLinux/CentOS:dnfyum 包管理器。
  • 对于 Alpine:apk 包管理器。

macOS

  • 系统已安装 curl
  • Homebrew(如果未安装,脚本会自动安装)。

Windows

  • 已安装 Windows 包管理器 (winget)。
  • 已安装 Git Bash、WSL 或 PowerShell 用于运行脚本。

安装内容

脚本将安装以下依赖项:

  1. Node.js(v22.x LTS)
  2. npx(v10.x)
  3. uv(v0.6.x)

测试

要跨不同环境测试安装脚本:

# 设置测试脚本为可执行
chmod +x test_dependencies.sh

# 运行测试
./test_dependencies.sh

这将在 Docker 容器中模拟以下环境进行测试:

  • Ubuntu
  • AlmaLinux(CentOS)
  • Alpine Linux
  • macOS
  • Windows

📄 许可证

[在此处填写许可证信息]

⚠️ 重要提示

  • 脚本需要 sudo 权限在 Linux 系统上运行。
  • 安装完成后,可能需要重新启动终端以使 PATH 变更生效。
  • 对于 Linux 和 macOS 用户,脚本会自动将本地 bin 目录添加到 PATH 中。
  • Windows 用户应确保已安装 Windows 包管理器 (winget) 后再运行脚本。
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client