PermShell MCP
用于执行带有权限通知的shell命令的模型上下文协议(MCP)服务器。
特性
- 通过咆哮通知以显式权限执行shell命令
- 基于标准化LLM工具的模型上下文协议构建
- 多重保护措施,防止未经授权的命令执行
- 透明权限对话框准确显示将执行的命令
安装
# Clone the repository
git clone https://github.com/yourusername/perm-shell-mcp.git
cd perm-shell-mcp
# Install dependencies
npm install
# Build the project
npm run build用法
作为独立工具
# Start the server directly
npm start使用克劳德桌面
将以下配置添加到您的Claude Desktop配置文件中:
{
"mcpServers": {
"permshell": {
"command": "node",
"args": ["/path/to/perm-shell-mcp/dist/index.js"]
}
}
}可用工具
执行命令
执行具有权限的shell命令。
例子:
Can you list the files in my home directory?系统信息
检索系统信息,包括操作系统、正常运行时间、内存、磁盘和CPU。
例子:
What's my system information?安全
- 所有命令都需要通过桌面通知获得明确的权限
- 命令与其工作目录一起显示,以实现完全透明
- 超时限制可防止进程失控
- 输入净化可防止命令注入
发展
# Run in watch mode for development
npm run dev