Token导航 LogoToken导航TokenDH.com
Script MCP logo
开发工具stdio官方级别未说明来源级核验

Script MCP

MCP Server

MCP server to for running script

工具数

1

提示词数

0

GitHub Stars

0

资源数

0
命令行工具Go开发工具

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

nguyenvanduocit

提供方

nguyenvanduocit

最后核验

2026/5/18 04:07

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

脚本工具

通过MCP执行命令行脚本的工具。

特性

  • 安全执行命令行脚本
  • 支持不同的口译员
  • 超时保护
  • 输出和错误捕获
  • 跨平台支持(Linux、macOS、Windows)

安装

有几种方法可以安装脚本工具:

选项1:从GitHub版本下载

  1. 访问 页
  2. 下载适用于您平台的二进制文件:

- script-mcp_linux_amd64\用于linux - script-mcp_darwin_amd64 适用于macOS - script-mcp_windows_amd64.exe` 对于Windows

  1. 使二进制文件可执行(Linux/macOS):
   chmod +x script-mcp_*
  1. 将其移动到您的PATH(Linux/macOS):
   sudo mv script-mcp_* /usr/local/bin/script-mcp@latest

选项2:去安装

go install github.com/nguyenvanduocit/script-mcp

配置

克劳德

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

CLI使用情况

除了MCP服务器之外, script-mcp 提供独立的CLI二进制文件(script-cli)用于直接终端使用——不需要MCP客户端。

安装

just install-cli
# or
go install github.com/nguyenvanduocit/script-mcp/cmd/script-cli@latest

快速开始

不需要凭据。CLI在本地执行脚本。

script-cli execute --content "echo Hello, World!"

命令

命令描述
execute (或 exec, run)安全执行超时脚本

示例

# Run a shell command
script-cli execute --content "ls -la"

# Run with a specific interpreter
script-cli execute --content "print('Hello')" --interpreter /usr/bin/python3

# Run with a working directory
script-cli execute --content "pwd" --working-dir /tmp

# Run a multi-line script
script-cli execute --content "#!/bin/bash
echo 'Starting...'
date
echo 'Done'"

# JSON output (captures stdout/stderr separately)
script-cli exec --content "echo hello" --output json

旗帜

标志描述
--content要执行的脚本内容(必需)
--interpreter解释器路径(默认值: /bin/sh)
--working-dir执行工作目录
--env通往 .env 文件
--output输出格式: text (默认)或 json
注: 脚本在30秒后超时。

贡献

  1. 分叉存储库
  2. 创建功能分支(git checkout -b feature/amazing-feature)
  3. 提交您的更改(git commit -m 'Add some amazing feature')
  4. 推到分支(git push origin feature/amazing-feature)
  5. 打开拉取请求

许可证

此项目根据MIT许可证获得许可-有关详细信息,请参阅许可证文件。

安装

自制(macOS/Linux)

brew install nguyenvanduocit/tap/script-mcp

目录标签

目录标签

命令行工具Go开发工具developer-tools本地部署脚本执行跨平台支持

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

1

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP