MCP ToolKit / MCP 工具集
基于 Model Context Protocol (MCP) 设计和实现的综合工具集,提供文件系统操作、命令执行、系统工具等多种功能,兼容 Windows、Linux 和 macOS。
A comprehensive MCP tools collection based on the Model Context Protocol (MCP), providing filesystem operations, command execution, system tools and more, compatible with Windows, Linux, and macOS.
项目简介 / Project Overview
MCP ToolKit 是一个功能丰富、安全可靠的 MCP 工具集合,旨在为 AI 模型提供强大的系统交互能力。项目采用模块化设计,支持灵活扩展,未来将持续集成更多实用工具。
MCP ToolKit is a feature-rich and secure MCP tools collection designed to provide powerful system interaction capabilities for AI models. The project adopts a modular design, supports flexible expansion, and will continue to integrate more practical tools in the future.
核心特性 / Core Features
- 🚀 多功能集成 - 文件系统、命令执行、系统工具等多种功能
- 🔒 安全可靠 - 沙箱隔离、黑名单机制、路径验证等多重安全保障
- ⚡ 高性能 - Sonic JSON库、结构体预热等性能优化
- 🛡️ 稳定性强 - Panic Recovery机制确保服务稳定运行
- 🔌 灵活传输 - 支持 Stdio、HTTP、SSE 多种传输方式
- 🌍 跨平台 - 完美支持 Windows、Linux、macOS
- 📦 模块化设计 - 易于扩展和维护
功能特性 / Features
文件操作 / File Operations
- ✅ 创建文件 / Create files
- ✅ 读取文件 / Read files
- ✅ 写入文件 / Write files
- ✅ 删除文件 / Delete files
- ✅ 复制文件 / Copy files
- ✅ 移动文件 / Move files
- ✅ 获取文件状态 / Get file status
- ✅ 检查文件是否存在 / Check file existence
目录操作 / Directory Operations
- ✅ 创建目录 / Create directories
- ✅ 列出目录内容 / List directory contents
- ✅ 删除目录 / Delete directories
- ✅ 复制目录 / Copy directories
- ✅ 移动目录 / Move directories
批量操作 / Batch Operations
- ✅ 批量删除 / Batch delete
- ✅ 文件搜索 / File search (支持通配符 / supports wildcards)
命令执行 / Command Execution
- ✅ 在沙箱内执行命令 / Execute commands within sandbox
- ✅ 工作目录管理 / Working directory management
- ✅ 命令黑名单保护 / Command blacklist protection
- ✅ 目录黑名单保护 / Directory blacklist protection
- ✅ 命令超时控制 / Command timeout control
- ✅ 输出捕获(stdout/stderr) / Output capture (stdout/stderr)
- ✅ 跨平台命令支持 / Cross-platform command support
- ✅ 异步命令执行 / Asynchronous command execution
- ✅ 命令执行历史记录 / Command execution history
- ✅ 权限级别控制 / Permission level control
- ✅ 环境变量配置 / Environment variable configuration
- ✅ 审计日志 / Audit logging
系统工具 / System Tools
- ✅ 获取当前系统时间 / Get current system time
- ✅ 获取系统信息 / Get system information (OS, CPU, Memory, GPU, Network)
安全特性 / Security Features
- ✅ 沙箱目录限制 / Sandbox directory restriction
- ✅ 路径遍历保护 / Path traversal protection
- ✅ 命令黑名单机制 / Command blacklist mechanism
- ✅ 命令参数路径验证 / Command argument path validation
- ✅ 系统目录保护 / System directory protection
- ✅ 危险命令拦截 / Dangerous command interception