MCP 备份服务器
专用的 MCP 服务器,为 AI 代理和代码编辑工具提供备份和恢复功能。已在 Cursor 和 Windsurf 编辑器中测试。
存储库: https://github.com/hexitex/MCP-Backup-Server
为什么要使用这个(而不是 Git)
该系统的用途与 Git 不同:
优点:
- 使用代理上下文创建即时、有针对性的备份
- 比 Git 更简单,确保单操作安全
- 在备份中保留思考过程和意图
- 无需提交消息或分支
- 更适合进行重大改变的人工智能代理
- 无需初始化存储库即可工作
- 编辑期间更快地获取紧急“保存点”
缺点:
- 不适用于长期版本跟踪
- 有限的协作功能
- 没有合并或冲突解决
- 没有分布式备份功能
- 不能替代适当的版本控制
- 存储完整的文件副本而不是差异
**何时使用:**在进行有风险的编辑、文件夹重组之前,或者当您需要使用上下文进行快速安全备份时。
**何时使用 Git:**为了正确的版本历史记录、协作和项目管理。
特征
- 保留代理上下文和推理
- 创建有针对性的、最小的备份
- 支持文件和文件夹操作
- 维护版本历史记录
- 提供恢复安全
- 使用模式过滤
- 轨道操作
- 允许取消
设置
通过 Smithery 安装
要通过Smithery自动安装 Claude Desktop 的备份服务器:
手动安装
配置
环境:
BACKUP_DIR
:备份目录(./.code_backups)EMERGENCY_BACKUP_DIR
:紧急备份(./.code_emergency_backups)MAX_VERSIONS
:版本限制(10)
在编辑器中配置:
Windsurf MCP 配置:
Cursor:创建具有类似配置的.cursor/mcp.json
。
工具
文件操作
backup_create
:使用上下文创建备份backup_list
:列出可用的备份backup_restore
:使用安全备份恢复
文件夹操作
backup_folder_create
:使用模式过滤进行备份backup_folder_list
:列出文件夹备份backup_folder_restore
:恢复文件夹结构
管理
backup_list_all
:列出所有备份mcp_cancel
:取消操作
何时使用备份
仅在真正需要时创建备份:
- 重构之前:更改重要代码时
- 删除文件夹之前:重组项目结构时
- 多个相关更改:更新多个相关文件时
- 恢复主要工作:继续进行重大变更时
- 恢复前:恢复前创建安全备份
保持备份的最小化和目的性。记录每次备份的必要性。
复制粘贴规则
对于人类用户
一开始你可能要提到这些简单的命令,比如 MCP 工具
代理示例
快速备份
恢复会话
核心变化
还原点
管理
执照
麻省理工学院
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
为 AI 代理和代码编辑工具提供备份和恢复功能的专用服务器,创建具有上下文保存的即时目标备份。
Related MCP Servers
- -securityAlicense-qualityProvides code manipulation, execution, and version control capabilities. It allows AI assistants to read, write, and execute code while maintaining a history of changes.Last updated -8PythonMIT License
JSON Resume MCP Serverofficial
AsecurityAlicenseAqualityA server that enhances AI assistants with the ability to update your JSON Resume by analyzing your coding projects, automatically extracting skills and generating professional descriptions.Last updated -33239TypeScriptThe Unlicense- -securityAlicense-qualityA Model Context Protocol server that enables AI agents to retrieve and understand entire codebases at once, providing tools to analyze local workspaces or remote GitHub repositories.Last updated -9TypeScriptMIT License
- -securityFlicense-qualityA server that enables AI assistants to execute JavaScript code with persistent context through stateful REPL sessions, file operations, and package management features.Last updated -TypeScript