From 4083ee3f94a8ab26075cf6ff64739810593f30b5 Mon Sep 17 00:00:00 2001 From: Johnson Date: Wed, 25 Feb 2026 23:02:52 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B8=85=E7=90=86=20registry=20?= =?UTF-8?q?=E6=9D=A1=E7=9B=AE=20=E2=80=94=20=E7=A7=BB=E9=99=A4=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E6=97=B6=E5=AD=97=E6=AE=B5=EF=BC=8C=E8=A7=84=E8=8C=83?= =?UTF-8?q?=E9=9D=99=E6=80=81=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apps(8 个): - 删除顶层 requirements(已在 install.requirements 中) - 删除 installStatus、latestVersion(运行时/冗余字段) - 将 configNeeded 移入 install.configNeeded - 删除 install 内的 composePath/envTemplatePath MCP(7 个): - 删除 protocol/status/origin/transport(由 sync 层按目录类型注入) Services(5 个): - 删除 protocol/status/origin(由 sync 层注入) 原则:Registry 只存静态数据,运行时字段由客户端 sync 层注入默认值。 Co-Authored-By: Claude Opus 4.6 --- apps/anythingllm/index.json | 20 +++++--------------- apps/coze/index.json | 20 +++++--------------- apps/dify/index.json | 23 +++++------------------ apps/lobechat/index.json | 20 +++++--------------- apps/n8n/index.json | 20 +++++--------------- apps/open-webui/index.json | 20 +++++--------------- apps/openclaw/index.json | 23 ++++++----------------- apps/ragflow/index.json | 23 +++++------------------ mcp/db-mcp/index.json | 4 ---- mcp/dify-mcp/index.json | 4 ---- mcp/fetch-mcp/index.json | 4 ---- mcp/fs-mcp/index.json | 4 ---- mcp/github-mcp/index.json | 4 ---- mcp/memory-mcp/index.json | 4 ---- mcp/playwright-mcp/index.json | 4 ---- services/baidu-map/index.json | 3 --- services/deepl-translate/index.json | 3 --- services/dify-rag/index.json | 3 --- services/ragflow-pipeline/index.json | 3 --- services/wecom-webhook/index.json | 3 --- 20 files changed, 41 insertions(+), 171 deletions(-) diff --git a/apps/anythingllm/index.json b/apps/anythingllm/index.json index 98cf7c4..a136dae 100644 --- a/apps/anythingllm/index.json +++ b/apps/anythingllm/index.json @@ -12,11 +12,9 @@ "文档对话" ], "version": "1.6.2", - "latestVersion": "1.6.2", "author": "Mintplex Labs", "githubUrl": "https://github.com/Mintplex-Labs/anything-llm", "stars": 30200, - "installStatus": "not_installed", "install": { "method": "docker", "requirements": { @@ -26,18 +24,10 @@ "ports": [ 3001 ] - } - }, - "requirements": { - "docker": true, - "minMemory": "2GB", - "minDisk": "5GB", - "ports": [ - 3001 + }, + "configNeeded": [ + "Docker 运行环境", + "LLM API Key" ] - }, - "configNeeded": [ - "Docker 运行环境", - "LLM API Key" - ] + } } diff --git a/apps/coze/index.json b/apps/coze/index.json index d6a46a5..051e1b9 100644 --- a/apps/coze/index.json +++ b/apps/coze/index.json @@ -12,11 +12,9 @@ "插件" ], "version": "0.5.0", - "latestVersion": "0.5.0", "author": "Coze", "githubUrl": "https://github.com/coze-dev/coze", "stars": 12300, - "installStatus": "not_installed", "install": { "method": "docker", "requirements": { @@ -26,18 +24,10 @@ "ports": [ 8800 ] - } - }, - "requirements": { - "docker": true, - "minMemory": "4GB", - "minDisk": "8GB", - "ports": [ - 8800 + }, + "configNeeded": [ + "Docker 运行环境", + "API Key 配置" ] - }, - "configNeeded": [ - "Docker 运行环境", - "API Key 配置" - ] + } } diff --git a/apps/dify/index.json b/apps/dify/index.json index 5853660..28163b0 100644 --- a/apps/dify/index.json +++ b/apps/dify/index.json @@ -13,15 +13,11 @@ "Workflow" ], "version": "0.8.3", - "latestVersion": "0.8.3", "author": "Dify.AI", "githubUrl": "https://github.com/langgenius/dify", "stars": 56200, - "installStatus": "not_installed", "install": { "method": "docker-compose", - "composePath": "dify/docker-compose.yml", - "envTemplatePath": "dify/.env.example", "requirements": { "docker": true, "minMemory": "4GB", @@ -30,19 +26,10 @@ 3000, 5001 ] - } - }, - "requirements": { - "docker": true, - "minMemory": "4GB", - "minDisk": "10GB", - "ports": [ - 3000, - 5001 + }, + "configNeeded": [ + "Docker 运行环境", + "OpenAI API Key(可选)" ] - }, - "configNeeded": [ - "Docker 运行环境", - "OpenAI API Key(可选)" - ] + } } diff --git a/apps/lobechat/index.json b/apps/lobechat/index.json index bada77d..47fccc2 100644 --- a/apps/lobechat/index.json +++ b/apps/lobechat/index.json @@ -12,11 +12,9 @@ "插件" ], "version": "1.20.0", - "latestVersion": "1.20.0", "author": "LobeHub", "githubUrl": "https://github.com/lobehub/lobe-chat", "stars": 48900, - "installStatus": "not_installed", "install": { "method": "docker", "requirements": { @@ -26,18 +24,10 @@ "ports": [ 3210 ] - } - }, - "requirements": { - "docker": true, - "minMemory": "1GB", - "minDisk": "3GB", - "ports": [ - 3210 + }, + "configNeeded": [ + "Docker 运行环境", + "OpenAI API Key(可选)" ] - }, - "configNeeded": [ - "Docker 运行环境", - "OpenAI API Key(可选)" - ] + } } diff --git a/apps/n8n/index.json b/apps/n8n/index.json index 8f6dafa..e8c0007 100644 --- a/apps/n8n/index.json +++ b/apps/n8n/index.json @@ -12,11 +12,9 @@ "Integration" ], "version": "1.64.0", - "latestVersion": "1.64.0", "author": "n8n-io", "githubUrl": "https://github.com/n8n-io/n8n", "stars": 50600, - "installStatus": "not_installed", "install": { "method": "docker", "requirements": { @@ -26,18 +24,10 @@ "ports": [ 5678 ] - } - }, - "requirements": { - "docker": true, - "minMemory": "2GB", - "minDisk": "5GB", - "ports": [ - 5678 + }, + "configNeeded": [ + "Docker 运行环境", + "数据库(SQLite / PostgreSQL)" ] - }, - "configNeeded": [ - "Docker 运行环境", - "数据库(SQLite / PostgreSQL)" - ] + } } diff --git a/apps/open-webui/index.json b/apps/open-webui/index.json index 4be54e8..0e2090c 100644 --- a/apps/open-webui/index.json +++ b/apps/open-webui/index.json @@ -12,11 +12,9 @@ "WebUI" ], "version": "0.4.8", - "latestVersion": "0.4.8", "author": "Open WebUI", "githubUrl": "https://github.com/open-webui/open-webui", "stars": 52800, - "installStatus": "not_installed", "install": { "method": "docker", "requirements": { @@ -26,18 +24,10 @@ "ports": [ 8080 ] - } - }, - "requirements": { - "docker": true, - "minMemory": "2GB", - "minDisk": "5GB", - "ports": [ - 8080 + }, + "configNeeded": [ + "Docker 运行环境", + "Ollama 或 OpenAI API Key" ] - }, - "configNeeded": [ - "Docker 运行环境", - "Ollama 或 OpenAI API Key" - ] + } } diff --git a/apps/openclaw/index.json b/apps/openclaw/index.json index 2eb07ce..8ed9b90 100644 --- a/apps/openclaw/index.json +++ b/apps/openclaw/index.json @@ -13,11 +13,9 @@ "Sandbox" ], "version": "0.9.0", - "latestVersion": "0.9.0", "author": "OpenClaw", "githubUrl": "https://github.com/openclaw/openclaw", "stars": 8500, - "installStatus": "not_installed", "install": { "method": "docker-compose", "requirements": { @@ -28,20 +26,11 @@ 8080, 3000 ] - } - }, - "requirements": { - "docker": true, - "minMemory": "4GB", - "minDisk": "10GB", - "ports": [ - 8080, - 3000 + }, + "configNeeded": [ + "Docker 运行环境", + "Node.js 18+", + "API Key 配置" ] - }, - "configNeeded": [ - "Docker 运行环境", - "Node.js 18+", - "API Key 配置" - ] + } } diff --git a/apps/ragflow/index.json b/apps/ragflow/index.json index 1e2d3e4..70beedd 100644 --- a/apps/ragflow/index.json +++ b/apps/ragflow/index.json @@ -12,14 +12,11 @@ "知识库" ], "version": "0.14.0", - "latestVersion": "0.15.0", "author": "InfiniFlow", "githubUrl": "https://github.com/infiniflow/ragflow", "stars": 28400, - "installStatus": "not_installed", "install": { "method": "docker-compose", - "composePath": "ragflow/docker-compose.yml", "requirements": { "docker": true, "minMemory": "8GB", @@ -29,20 +26,10 @@ 443, 80 ] - } - }, - "requirements": { - "docker": true, - "minMemory": "8GB", - "minDisk": "20GB", - "ports": [ - 9380, - 443, - 80 + }, + "configNeeded": [ + "Docker 运行环境", + "Elasticsearch / Infinity 数据库" ] - }, - "configNeeded": [ - "Docker 运行环境", - "Elasticsearch / Infinity 数据库" - ] + } } diff --git a/mcp/db-mcp/index.json b/mcp/db-mcp/index.json index e1d5890..bcdf20f 100644 --- a/mcp/db-mcp/index.json +++ b/mcp/db-mcp/index.json @@ -2,10 +2,6 @@ "id": "db-mcp", "name": "Database MCP", "description": "PostgreSQL 数据库查询与管理,支持 SQL 执行和 Schema 浏览", - "protocol": "mcp", - "status": "offline", - "origin": "registry", - "transport": "stdio", "capabilities": [ "sql_query", "schema_browse", diff --git a/mcp/dify-mcp/index.json b/mcp/dify-mcp/index.json index c103ef5..92ad02c 100644 --- a/mcp/dify-mcp/index.json +++ b/mcp/dify-mcp/index.json @@ -2,12 +2,8 @@ "id": "dify-mcp", "name": "Dify MCP Bridge", "description": "Dify 平台 Agent 工具集桥接,支持调用 Dify 内置工具和自定义工具", - "protocol": "mcp", - "status": "offline", - "origin": "app", "sourceAppId": "dify", "sourceAppName": "Dify", - "transport": "streamable-http", "capabilities": [ "tool_invoke", "workflow_trigger", diff --git a/mcp/fetch-mcp/index.json b/mcp/fetch-mcp/index.json index d5510d5..f483f30 100644 --- a/mcp/fetch-mcp/index.json +++ b/mcp/fetch-mcp/index.json @@ -2,10 +2,6 @@ "id": "fetch-mcp", "name": "Fetch MCP", "description": "网页内容获取与转换,将网页转为 Markdown 供 LLM 使用", - "protocol": "mcp", - "status": "offline", - "origin": "registry", - "transport": "stdio", "capabilities": [ "url_fetch", "html_to_markdown", diff --git a/mcp/fs-mcp/index.json b/mcp/fs-mcp/index.json index be33a03..ffd6785 100644 --- a/mcp/fs-mcp/index.json +++ b/mcp/fs-mcp/index.json @@ -2,10 +2,6 @@ "id": "fs-mcp", "name": "Filesystem MCP", "description": "本地文件系统操作,支持读写、搜索、监控文件变化", - "protocol": "mcp", - "status": "offline", - "origin": "registry", - "transport": "stdio", "capabilities": [ "file_read", "file_write", diff --git a/mcp/github-mcp/index.json b/mcp/github-mcp/index.json index 12eb60c..5d77f99 100644 --- a/mcp/github-mcp/index.json +++ b/mcp/github-mcp/index.json @@ -2,10 +2,6 @@ "id": "github-mcp", "name": "GitHub MCP", "description": "代码仓库操作,支持 PR、Issue、代码搜索和仓库管理", - "protocol": "mcp", - "status": "offline", - "origin": "registry", - "transport": "stdio", "capabilities": [ "repo_read", "pr_manage", diff --git a/mcp/memory-mcp/index.json b/mcp/memory-mcp/index.json index 996992b..4ab8269 100644 --- a/mcp/memory-mcp/index.json +++ b/mcp/memory-mcp/index.json @@ -2,10 +2,6 @@ "id": "memory-mcp", "name": "Memory MCP", "description": "基于知识图谱的持久化记忆服务,支持实体和关系的存取", - "protocol": "mcp", - "status": "offline", - "origin": "registry", - "transport": "stdio", "capabilities": [ "entity_store", "relation_store", diff --git a/mcp/playwright-mcp/index.json b/mcp/playwright-mcp/index.json index f2207ca..76741d2 100644 --- a/mcp/playwright-mcp/index.json +++ b/mcp/playwright-mcp/index.json @@ -2,10 +2,6 @@ "id": "playwright-mcp", "name": "Playwright MCP", "description": "浏览器自动化 — 网页导航、截图、表单填写、DOM 操作、PDF 生成", - "protocol": "mcp", - "status": "offline", - "origin": "registry", - "transport": "stdio", "capabilities": [ "page_navigate", "screenshot", diff --git a/services/baidu-map/index.json b/services/baidu-map/index.json index bb1536f..dbea357 100644 --- a/services/baidu-map/index.json +++ b/services/baidu-map/index.json @@ -2,9 +2,6 @@ "id": "baidu-map", "name": "百度地图 API", "description": "地理位置服务,支持地理编码、路线规划和 POI 搜索", - "protocol": "http", - "status": "offline", - "origin": "manual", "endpoint": "https://api.map.baidu.com/v3", "capabilities": [ "geocoding", diff --git a/services/deepl-translate/index.json b/services/deepl-translate/index.json index d194d27..15603c1 100644 --- a/services/deepl-translate/index.json +++ b/services/deepl-translate/index.json @@ -2,9 +2,6 @@ "id": "deepl-translate", "name": "DeepL 翻译", "description": "高质量多语言翻译服务,支持 30+ 语言互译和文档翻译", - "protocol": "http", - "status": "offline", - "origin": "manual", "endpoint": "https://api-free.deepl.com/v2", "capabilities": [ "text_translate", diff --git a/services/dify-rag/index.json b/services/dify-rag/index.json index 98c9911..abebea3 100644 --- a/services/dify-rag/index.json +++ b/services/dify-rag/index.json @@ -2,9 +2,6 @@ "id": "dify-rag", "name": "Dify RAG API", "description": "Dify 知识库检索服务,支持语义搜索和多知识库联合检索", - "protocol": "http", - "status": "offline", - "origin": "app", "sourceAppId": "dify", "sourceAppName": "Dify", "endpoint": "http://localhost:3000/api/v1/datasets", diff --git a/services/ragflow-pipeline/index.json b/services/ragflow-pipeline/index.json index c53384e..c8539f4 100644 --- a/services/ragflow-pipeline/index.json +++ b/services/ragflow-pipeline/index.json @@ -2,9 +2,6 @@ "id": "ragflow-pipeline", "name": "RagFlow Pipeline", "description": "深度文档理解 RAG 引擎,支持复杂格式文档解析和多级检索", - "protocol": "http", - "status": "offline", - "origin": "app", "sourceAppId": "ragflow", "sourceAppName": "RagFlow", "endpoint": "http://localhost:9380/api/v1", diff --git a/services/wecom-webhook/index.json b/services/wecom-webhook/index.json index fa6fbb9..376f959 100644 --- a/services/wecom-webhook/index.json +++ b/services/wecom-webhook/index.json @@ -2,9 +2,6 @@ "id": "wecom-webhook", "name": "企业微信 Webhook", "description": "企业微信机器人消息通知,支持文本、Markdown 和卡片消息", - "protocol": "http", - "status": "offline", - "origin": "manual", "endpoint": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send", "capabilities": [ "text_message",