🛠️ MCP 开发工具
自主AI开发中的文件与目录操作
 ](package.json) ](https://github.com/ThibautPontieux/mcp-dev-tools)
14款强大的MCP工具 提供企业级安全的文件和目录操作,以及85%的自主工作流自动化。
______________________________________________________________________
⚡ 快速入门
# Install
npm install @mcp-servers/dev-tools
# Configure
# Add to your Claude Desktop configuration...______________________________________________________________________
✨ 特点
- ✅ 14 个MCP工具 - 完整的文件和目录操作
- 🔒(锁形图标,常用于表示安全、保密或锁定状态) 企业安全 - 路径验证、速率限制、受保护路径
- 🤖 机器人 85% 自主 - 自动化的包管理和验证
- 📦 箱子/包裹 零漏洞 - 所有依赖项均为最新且安全
- ✨ TypeScript - 在严格模式下实现完全类型安全
- 📚 书籍 综合文档 - 完整的文档网站
______________________________________________________________________
🛠️ 可用工具
文件操作 (7)
read_file · write_file · rename_file · delete_file · copy_file · file_exists · get_file_info
目录操作 (4)
list_directory · create_directory · delete_directory · move_directory
搜索行动(3)
search_files · search_content · find_duplicates
______________________________________________________________________
📚 文档
______________________________________________________________________
🚀 安装
npm install @mcp-servers/dev-tools克劳德桌面配置
在您的Claude Desktop配置文件中添加:
{
"mcpServers": {
"dev-tools": {
"command": "node",
"args": ["/path/to/mcp-dev-tools/dist/index.js"],
"env": {
"WORKSPACE_PATH": "/your/workspace/path"
}
}
}
}______________________________________________________________________
💡 示例用法
// List files in directory
await listDirectory({
path: "src",
recursive: true,
fileTypes: [".ts", ".js"]
});
// Search in file contents
await searchContent({
query: "function",
path: "src",
recursive: true
});
// Find duplicate files
await findDuplicates({
path: "assets",
compareBy: "hash"
});______________________________________________________________________
🔒 安全
- ✅ 路径遍历防护
- ✅ 速率限制
- ✅ 受保护路径配置
- ✅ 删除前自动备份
- ✅ 对所有操作进行输入验证
______________________________________________________________________
📊 状态
| 指标 | 值 |
|---|---|
| 版本 | 1.2.0 |
| MCP 工具 | 14 |
| 依赖项 | 2个生产环境,10个开发环境 |
| 安全问题 | 0 |
| 构建状态 | ✅ 通过 |
| 测试覆盖率 | 准备好了 |
______________________________________________________________________
🤝 贡献(或“参与贡献”)
欢迎投稿!请参阅我们的 贡献指南.
# Clone repository
git clone https://github.com/ThibautPontieux/mcp-dev-tools.git
# Install dependencies
cd mcp-dev-tools/packages/dev-tools
npm install
# Build
npm run build
# Run validation
./scripts/pre-commit-check.sh______________________________________________________________________
📝 脚本
npm run build # Build TypeScript
npm run build:watch # Watch mode
npm test # Run tests
npm run lint # Lint code
./scripts/package-analyzer.sh # Analyze packages
./scripts/auto-update-packages.sh # Auto-update dependencies
./scripts/pre-commit-check.sh # Validate everything______________________________________________________________________
🗺️ 路线图
- \[x\] 阶段1-3:核心文件操作
- \[x\] 第四到第五阶段:目录与搜索操作
- \[x\] 第六阶段:文件读写工具
- \[x\] 阶段7:自动化包管理
- \[ \] 第八阶段:单元测试(180+个测试)
- \[ \] 第9阶段:CI/CD流水线
- \[ \] 第10阶段:发布NPM包
______________________________________________________________________
📄 许可证
麻省理工学院 © 2025 蒂博·庞蒂厄
______________________________________________________________________
🔗 链接
______________________________________________________________________
专为自主AI开发而打造,倾注爱心
