一个用于在 Windows 和 Linux 上执行 CMD 命令,并支持 SSH 连接的 Model Context Protocol (MCP) 服务器实现。此服务器允许您将命令行操作与兼容 MCP 的应用程序集成,为您的操作带来更多便利。
要自动安装 CMD 服务器(针对 Claude Desktop),可通过 Smithery:
npx -y @smithery/cli install server-cmd --client claude
npm install server-cmd
import { MCPCmdServer } from 'server-cmd';
// 初始化服务器
const server = new MCPCmdServer();
// 启动服务器
server.start();
const config = {
// 在此处添加您的配置选项
};
const server = new MCPCmdServer(config);
要设置开发环境,可按以下步骤操作:
git clone https://github.com/PhialsBasement/CMD-MCP-Server.git
cd CMD-MCP-Server
npm install
npm run build
npm run build - 将 TypeScript 编译为 JavaScriptnpm run dev - 在开发模式下运行服务器| 属性 | 详情 |
|---|---|
| 模型类型 | 无 |
| 训练数据 | 无 |
| 依赖项 | typescript(最新版本)、@types/node(Node.js 类型定义)、express(Web 应用框架) |
如果您希望为项目做出贡献,请参考 CONTRIBUTING.md。
如您发现任何安全问题,请通过 security@project.com 与我们联系。
如需帮助或有其他问题,请访问我们的 GitHub 页面 或加入我们的 Discord 社区。
项目在 MIT License 下发布。
感谢您的关注!