
MCP ToolKit / MCP 工具套件
一款基于 Model Context Protocol (MCP) 构建的多功能工具集合,涵盖文件管理、命令调用、系统信息获取等核心能力,全面适配 Windows、Linux 与 macOS 平台。
A versatile MCP-based toolkit built upon the Model Context Protocol (MCP), offering robust filesystem handling, command invocation, system utilities and more — fully compatible across Windows, Linux, and macOS.
项目概览 / Project Overview
MCP ToolKit 是一套高安全性、强扩展性的 MCP 工具解决方案,专为增强 AI 模型与本地系统之间的交互能力而设计。项目采用清晰的模块化架构,便于功能迭代与定制开发,后续将持续引入更多实用且可靠的工具组件。
MCP ToolKit is a secure, extensible MCP toolkit engineered to significantly enhance AI models’ interaction capabilities with local systems. Built with a clean modular architecture, it enables seamless feature upgrades and custom integrations — with on#%#$#%@%@%$#%$#%#%#$%@_34d1f91fb2e514b8576fab1a75a89a6bing additions of practical, production-ready tools.
核心亮点 / Core Highlights
- ? 全场景覆盖 — 集成文件操作、命令执行、系统探测等多样化能力
- ? 纵深防御机制 — 沙箱环境隔离、敏感路径拦截、指令白/黑名单管控
- ⚡ 极致性能优化 — 基于 Sonic JSON 的高效序列化、结构体预热加载等技术
- ?️ 高可用保障 — 内置 Panic 恢复机制,确保长期运行稳定性
- ? 多协议支持 — 兼容 Stdio、HTTP、SSE 等多种通信传输方式
- ? 真正跨平台 — 统一代码基线,原生支持 Windows、Linux、macOS
- ? 插件式架构 — 每个功能模块独立封装,易于增删与二次开发
功能详解 / Features
文件管理 / File Management
- ✅ 新建文件 / Create files
- ✅ 查看文件内容 / Read files
- ✅ 修改并保存文件 / Write files
- ✅ 彻底删除文件 / Delete files
- ✅ 文件复制操作 / Copy files
- ✅ 文件重命名与迁移 / Move files
- ✅ 查询文件元数据 / Get file status
- ✅ 判断文件是否存在 / Check file existence
目录管理 / Directory Management
- ✅ 创建新目录 / Create directories
- ✅ 浏览目录结构 / List directory contents
- ✅ 清空并删除目录 / Delete directories
- ✅ 整体复制目录树 / Copy directories
- ✅ 目录重定位 / Move directories
批量处理 / Batch Processing
- ✅ 批量清理指定类型文件 / Batch delete
- ✅ 模糊匹配搜索(通配符支持)/ File search (supports wildcards)
命令调度 / Command Orchestration
- ✅ 受限沙箱内安全执行 / Execute commands in sandboxed environment
- ✅ 当前工作路径动态切换 / Working directory management
- ✅ 预设危险命令拦截列表 / Command blacklist protection
- ✅ 禁止访问关键路径区域 / Directory blacklist protection
- ✅ 自定义超时中断策略 / Command timeout control
- ✅ 实时捕获标准输出与错误流 / Output capture (stdout/stderr)
- ✅ 跨操作系统指令兼容层 / Cross-platform command support
- ✅ 异步非阻塞调用模式 / Asynchronous command execution
- ✅ 完整可追溯执行日志 / Command execution history
- ✅ 多级权限控制体系 / Permission level control
- ✅ 运行时环境变量注入 / Environment variable configuration
- ✅ 全链路审计日志记录 / Audit logging
系统探针 / System Probing
- ✅ 获取本地时间戳 / Get current system time
- ✅ 提取硬件与系统状态(OS 版本、CPU 型号、内存容量、GPU 信息、网络配置)/ Get system information (OS, CPU, Memory, GPU, Network)
安全防护 / Security Safeguards
- ✅ 强制限定沙箱根路径 / Sandbox directory restriction
- ✅ 主动防御路径穿越攻击 / Path traversal protection
- ✅ 可配置命令禁用清单 / Command blacklist mechanism
- ✅ 参数中路径合法性校验 / Command argument path validation
- ✅ 关键系统目录自动保护 / System directory protection
- ✅ 危险操作实时识别与阻断 / Dangerous command interception
源码地址:点击下载








