Duplicacy-MCP
A tiny bridge that reads Duplicacy backup metrics from a Prometheus exporter and exposes them as an MCP server, enabling LLMs to monitor backup status, progress, and health.
______________________________________________________________________
你得到了什么
| 类型 | 用途 | MCP URI/工具id |
|---|---|---|
| 资源 | 以只读方式浏览备份状态、进度和运行状况 | duplicacy://status |
duplicacy://progress duplicacy://health | | 工具 |查询备份历史记录、列出快照并检查修剪状态| get_backup_status get_backup_history list_snapshots get_prune_status |
所有内容都通过单个JSON-RPC端点公开(/mcp). LLM/代理人可以: initialize -> readResource -> listTools -> callTool …等等。
______________________________________________________________________
快速入门(Docker Compose)
services:
duplicacy-mcp:
image: drumsergio/duplicacy-mcp:0.1.0
ports:
- "127.0.0.1:8080:8080"
environment:
- DUPLICACY_EXPORTER_URL=http://duplicacy-exporter:9750安全说明: HTTP传输侦听 127.0.0.1:8080 默认情况下。如果需要在网络上公开它,请将其放置在具有身份验证的反向代理后面。通过npm安装(stdio传输)
npx duplicacy-mcp或全局安装:
npm install -g duplicacy-mcp
duplicacy-mcp这将从GitHub Release为您的平台下载预构建的Go二进制文件,并使用stdio传输运行它。至少需要一个 出版发行.
本地建设
git clone https://github.com/GeiserX/duplicacy-mcp
cd duplicacy-mcp
# (optional) create .env from the sample
cp .env.example .env && $EDITOR .env
go run ./cmd/server配置
| 变量 | 默认值 | 描述 |
|---|---|---|
DUPLICACY_EXPORTER_URL | http://localhost:9750 | 重复Prometheus导出器URL(不带尾随/) |
LISTEN_ADDR | 127.0.0.1:8080 | HTTP监听地址(Docker设置 0.0.0.0:8080) |
TRANSPORT | _(空=HTTP)_ | 设置为 stdio 用于stdio传输 |
把它们放在一个 .env 文件(来自 .env.example)或者将它们置于环境中。
测试
经过测试 检查员 目前,它正在全面运作。在进行PR之前,请确保此MCP服务器通过此介质运行良好。
客户端LLM的示例配置
{
"schema_version": "v1",
"name_for_human": "Duplicacy-MCP",
"name_for_model": "duplicacy_mcp",
"description_for_human": "Monitor Duplicacy backup status, progress, and health via Prometheus metrics.",
"description_for_model": "Interact with a Duplicacy backup monitoring server that reads metrics from a Prometheus exporter. First call initialize, then reuse the returned session id in header \"Mcp-Session-Id\" for every other call. Use readResource to fetch URIs that begin with duplicacy://. Use listTools to discover available actions and callTool to execute them.",
"auth": { "type": "none" },
"api": {
"type": "jsonrpc-mcp",
"url": "http://localhost:8080/mcp",
"init_method": "initialize",
"session_header": "Mcp-Session-Id"
},
"contact_email": "acsdesk@protonmail.com",
"legal_info_url": "https://github.com/GeiserX/duplicacy-mcp/blob/main/LICENSE"
}学分
重复 --无锁重复数据删除云备份
复制品出口商 --普罗米修斯复制出口商
MCP-GO --现代MCP实施
GoRelease --无痛多弓松解术
维护者
@盖泽尔.
贡献
尽情潜水吧! 提出问题 或提交PR。
重复MCP遵循 贡献者契约 行为准则。
GeiserX的其他MCP服务器
- 现金飞行员mcp --被动收入监测
- 生殖细胞mcp --TR-069设备管理
- lynxprompt-mcp --AI配置蓝图
- 泵式mcp --燃料和电动汽车充电价格
- 电报档案mcp --电报消息存档
相关项目
| 项目 | 描述 |
|---|---|
| 复制cli cron | 使用Duplicacy CLI实现基于Docker的加密双存储备份自动化 |
| 复制品出口商 | 用于重复备份的实时Prometheus导出器 |
| 重复 | Home Assistant自定义集成,用于监控重复备份 |
| 复制品容器 | 用于在Kubernetes上运行Duplicacy的容器映像和Helm chart |
