脚本工具:通过MCP执行命令

脚本工具:通过MCP执行命令

一个通过MCP执行命令行脚本的工具,支持多种解释器、超时保护和跨平台运行。

快速入门

安装

选项1:从GitHub Releases下载

  1. 访问 GitHub Releases 页面。
  2. 根据您的平台下载对应二进制文件。
    • Linux: script-mcp_linux_amd64
    • macOS: script-mcp_darwin_amd64
    • Windows: script-mcp_windows_amd64.exe
  3. (Linux/macOS)设置可执行权限: chmod +x script-mcp_*
  4. (Linux/macOS)移动到PATH路径: sudo mv script-mcp_* /usr/local/bin/script-mcp@latest

选项2:使用Go安装

go install github.com/nguyenvanduocit/script-mcp

配置

配置示例:

{
  "mcpServers": {
    "script": {
      "command": "/path-to/script-mcp"
    }
  }
}

贡献

  1. Fork仓库。
  2. 创建功能分支 (git checkout -b feature/amazing-feature)。
  3. 提交更改 (git commit -m 'Add some amazing feature')。
  4. 推送分支 (git push origin feature/amazing-feature)。
  5. 提交Pull Request。