使用Smithery CLI工具的安装和使用流程如下:
- Requisitos do sistema:首先确保系统已安装Node.js(版本14或以上)
- 安装CLI:在终端运行命令
npm install -g @smithery/cli
- Verificar a instalação: Executar
smithery --version
Verificar versão - 浏览服务器:访问Smithery官网,按功能或平台筛选合适的MCP服务器
- 安装服务器示例:如需安装GitHub MCP服务器,运行命令
smithery install --server=github.com/smithery-ai/mcp-github --token=$MY_GITHUB_PAT
- Iniciar o servidor:本地安装完成后,运行
smithery start
Início dos serviços
对于安全考虑,建议将所有敏感信息(如API令牌)存储在环境变量中而非直接写入命令。
Essa resposta foi extraída do artigoSmithery: uma plataforma de registro de servidor MCP que conecta IA com ferramentasO