超级壳(Super Shell)是一款强大的命令外壳工具,专为开发人员和系统管理员打造,能有效提升工作效率。它支持 Windows、macOS 和 Linux 等跨平台操作,具备命令管理、权限控制、日志记录和远程配置等丰富功能模块。
超级壳是功能强大的命令外壳工具,支持跨平台操作,提供丰富功能模块,可通过配置文件进行个性化设置。
npm install -g super-shell-mcp
超级壳可以通过配置文件 config.json
进行个性化设置。以下是常用的配置选项:
{
"shellType": "auto", // 自动检测 shell 类型,支持 "cmd"、"bash" 和 "powershell"
"timeout": 30000, // 命令执行超时时间(毫秒)
"whitelist": ["ls", "cd", "cp", "rm"], // 允许的命令列表
"blacklist": ["sudo", "su"], // 禁止的命令列表
"logLevel": "INFO" // 日志级别:INFO、DEBUG、ERROR
}
# 示例:配置超级壳使用 PowerShell 在 Windows 上运行
{
"shellType": "powershell",
"workingDirectory": "C:\\Users\\CurrentUser\\Documents"
}
# 示例:执行简单文件操作
super-shell-mcp.exe -c "ls" // 列出当前目录下的文件
super-shell-mcp.exe -c "cd .." // 返回上一级目录
超级壳提供强大的命令控制功能,支持以下操作:
whitelist
和 blacklist
配置,限制或允许特定的命令执行。超级壳基于用户角色和环境变量提供灵活的权限管理:
超级壳内置了完善的日志记录功能,便于调试和监控服务器状态:
logs/super-shell-mcp.log
.gitkeep
文件以跟踪该目录。超级壳支持以下操作系统:
cmd.exe
或 PowerShell 执行命令。\
)需要在 JSON 中转义为双反斜杠 (\\
)。/bin/bash
或用户指定的 shell。\\
)。超级壳遵循 MIT 许可证协议:
MIT License
Copyright (c) [year] [copyright holder]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.