mirror of
https://git.openapi.site/https://github.com/desirecore/registry.git
synced 2026-12-06 02:59:03 +08:00
feat(registry): 收录需选择数据目录的 Repomix 和 Excel MCP
This commit is contained in:
1 parent
91d6e6beeb
commit
d76eedc406
16 files changed
+459
-8
No files matched your search
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2025-2026 Haris Musa
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# 第三方使用说明
|
||||||
|
|
||||||
|
- 独立收录 Excel MCP 2.3.7。
|
||||||
|
- [官方包页面](https://pypi.org/project/excel-mcp-server/)
|
||||||
|
- [上游 v2.3.7 提交](https://github.com/haris-musa/excel-mcp-server/commit/aa9c33d65d3967dd31723d165aa0526ccc952feb)
|
||||||
|
- 发布制品的 SHA-256 为 `25588638d39071b5d8fc0691b9451fa080543c468c8510a0d4ef675e3a66095f`。
|
||||||
|
- 许可证为 [MIT](LICENSE)。
|
||||||
@@ -0,0 +1,114 @@
|
|||||||
|
{
|
||||||
|
"$schema": "../../schemas/catalog-metadata.v1.schema.json",
|
||||||
|
"schemaVersion": 1,
|
||||||
|
"identity": {
|
||||||
|
"kind": "service",
|
||||||
|
"id": "excel-mcp"
|
||||||
|
},
|
||||||
|
"presentation": {
|
||||||
|
"defaultLocale": "zh-CN",
|
||||||
|
"i18n": {
|
||||||
|
"zh-CN": {
|
||||||
|
"name": "Excel MCP",
|
||||||
|
"summary": "只读查看用户选择目录中的 Excel 工作簿。",
|
||||||
|
"description": "选择存放工作簿的目录。使用 `--allow-dir .` 限定工作簿路径,默认只读。安装时由用户选择目录。需要 Python ≥3.11 和 uvx,首次准备依赖时从官方包仓库下载。"
|
||||||
|
},
|
||||||
|
"en-US": {
|
||||||
|
"name": "Excel MCP",
|
||||||
|
"summary": "Read Excel workbooks in the directory selected at installation.",
|
||||||
|
"description": "Workbooks are confined to the selected directory, with editing disabled by default. Dependencies download from the upstream package registry."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
"spreadsheet",
|
||||||
|
"mcp"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"release": {
|
||||||
|
"state": "known",
|
||||||
|
"version": "2.3.7",
|
||||||
|
"versionScheme": "semver"
|
||||||
|
},
|
||||||
|
"timestamps": {
|
||||||
|
"catalogUpdatedAt": {
|
||||||
|
"state": "known",
|
||||||
|
"value": "2026-11-30",
|
||||||
|
"precision": "day"
|
||||||
|
},
|
||||||
|
"releasePublishedAt": {
|
||||||
|
"state": "known",
|
||||||
|
"value": "2026-11-26T09:23:48.032384Z",
|
||||||
|
"precision": "second"
|
||||||
|
},
|
||||||
|
"reviewedAt": {
|
||||||
|
"state": "known",
|
||||||
|
"value": "2026-11-30",
|
||||||
|
"precision": "day"
|
||||||
|
},
|
||||||
|
"upstreamObservedAt": {
|
||||||
|
"state": "known",
|
||||||
|
"value": "2026-11-30",
|
||||||
|
"precision": "day"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"provenance": {
|
||||||
|
"content": {
|
||||||
|
"kind": "package",
|
||||||
|
"url": "https://pypi.org/project/excel-mcp-server",
|
||||||
|
"ref": "2.3.7",
|
||||||
|
"sha256": "25588638d39071b5d8fc0691b9451fa080543c468c8510a0d4ef675e3a66095f"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"governance": {
|
||||||
|
"availability": "installable",
|
||||||
|
"stewardship": "community",
|
||||||
|
"license": {
|
||||||
|
"state": "known",
|
||||||
|
"value": "MIT",
|
||||||
|
"evidencePath": "LICENSE"
|
||||||
|
},
|
||||||
|
"redistribution": "source-pointer-only",
|
||||||
|
"listingMaintainer": {
|
||||||
|
"name": "DesireCore Registry",
|
||||||
|
"url": "https://github.com/desirecore/registry",
|
||||||
|
"verified": true
|
||||||
|
},
|
||||||
|
"upstreamMaintainer": {
|
||||||
|
"name": "Haris Musa",
|
||||||
|
"url": "https://github.com/haris-musa/excel-mcp-server",
|
||||||
|
"verified": true
|
||||||
|
},
|
||||||
|
"branding": {
|
||||||
|
"relationship": "independent-listing",
|
||||||
|
"nameUsage": "nominative",
|
||||||
|
"logoStatus": "not-used"
|
||||||
|
},
|
||||||
|
"compliance": {
|
||||||
|
"licenseEvidencePath": "LICENSE",
|
||||||
|
"noticePath": "THIRD_PARTY_NOTICES.md",
|
||||||
|
"reviewedRef": "2.3.7",
|
||||||
|
"reviewedAt": "2026-11-30",
|
||||||
|
"reviewedBy": "DesireCore catalog review",
|
||||||
|
"upstreamEndorsed": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"compatibility": {
|
||||||
|
"platforms": {
|
||||||
|
"state": "known",
|
||||||
|
"values": [
|
||||||
|
"macos"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"requiredClientVersion": "10.0.216"
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"kind": "service",
|
||||||
|
"protocol": "mcp",
|
||||||
|
"authType": "none",
|
||||||
|
"capabilities": [
|
||||||
|
"describe_workbook",
|
||||||
|
"read_range"
|
||||||
|
],
|
||||||
|
"toolCount": 5
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
title: 安装 Excel MCP
|
||||||
|
---
|
||||||
|
|
||||||
|
# 安装 Excel MCP 2.3.7
|
||||||
|
|
||||||
|
在支持 MCP 数据目录选择的 DesireCore 本机桌面窗口发起安装。需要 Python ≥3.11 和 uvx。当前记录覆盖 macOS。
|
||||||
|
|
||||||
|
选择存放工作簿的目录。使用 `--allow-dir .` 限定工作簿路径,默认只读。 路径由 DesireCore 绑定到本次安装,作为服务的启动工作目录。目录清单和安装信封不保存用户数据目录。取消选择即停止本次安装。
|
||||||
|
|
||||||
|
使用附带的固定目录获取信封执行 MCP 安装和连接测试,再用带同一 `catalogAcquisition` 的接口登记。后端使用用户已选目录。连接成功后再结算。
|
||||||
|
|
||||||
|
代表性验证为 `read_range` 读取合成工作簿中的指定单元格。
|
||||||
|
|
||||||
|
制品身份与许可见 [第三方使用说明](./THIRD_PARTY_NOTICES.md)。
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
{
|
||||||
|
"id": "excel-mcp",
|
||||||
|
"name": "Excel MCP",
|
||||||
|
"type": "mcp",
|
||||||
|
"version": "2.3.7",
|
||||||
|
"author": "Haris Musa",
|
||||||
|
"description": "只读查看用户选择目录中的 Excel 工作簿。",
|
||||||
|
"tags": [
|
||||||
|
"spreadsheet",
|
||||||
|
"mcp"
|
||||||
|
],
|
||||||
|
"icon": "terminal",
|
||||||
|
"platformSupport": [
|
||||||
|
"macos"
|
||||||
|
],
|
||||||
|
"capabilities": [
|
||||||
|
"describe_workbook",
|
||||||
|
"read_range"
|
||||||
|
],
|
||||||
|
"toolCount": 5,
|
||||||
|
"install": {
|
||||||
|
"method": "uvx",
|
||||||
|
"packageName": "excel-mcp-server",
|
||||||
|
"command": "uvx",
|
||||||
|
"args": [
|
||||||
|
"--from",
|
||||||
|
"excel-mcp-server==2.3.7",
|
||||||
|
"excel-mcp-server",
|
||||||
|
"stdio",
|
||||||
|
"--allow-dir",
|
||||||
|
".",
|
||||||
|
"--read-only",
|
||||||
|
"--tools",
|
||||||
|
"workbooks"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"EXCEL_FILES_PATH": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"connection": {
|
||||||
|
"transport": "stdio",
|
||||||
|
"requiresDataDirectory": true,
|
||||||
|
"command": "uvx",
|
||||||
|
"args": [
|
||||||
|
"--from",
|
||||||
|
"excel-mcp-server==2.3.7",
|
||||||
|
"excel-mcp-server",
|
||||||
|
"stdio",
|
||||||
|
"--allow-dir",
|
||||||
|
".",
|
||||||
|
"--read-only",
|
||||||
|
"--tools",
|
||||||
|
"workbooks"
|
||||||
|
],
|
||||||
|
"env": {
|
||||||
|
"EXCEL_FILES_PATH": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
# Excel MCP
|
||||||
|
|
||||||
|
选择存放工作簿的目录。使用 `--allow-dir .` 限定工作簿路径,默认只读。
|
||||||
|
|
||||||
|
`read_range` 读取合成工作簿中的指定单元格。
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
Copyright 2024 Kazuki Yamada
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# 第三方使用说明
|
||||||
|
|
||||||
|
- 独立收录 Repomix MCP 1.19.0。
|
||||||
|
- [官方包页面](https://www.npmjs.com/package/repomix)
|
||||||
|
- [上游 v1.19.0 提交](https://github.com/yamadashy/repomix/commit/20cc7837e9a72e646c7dbfeeb20dbf7b6f5ea12d)
|
||||||
|
- 发布制品的 SHA-256 为 `e5504ac6a3e1729b27b78efa8e7f15c468bda64c5aad533566666e3d95ccc064`。
|
||||||
|
- 许可证为 [MIT](LICENSE)。
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
{
|
||||||
|
"$schema": "../../schemas/catalog-metadata.v1.schema.json",
|
||||||
|
"schemaVersion": 1,
|
||||||
|
"identity": {
|
||||||
|
"kind": "service",
|
||||||
|
"id": "repomix-mcp"
|
||||||
|
},
|
||||||
|
"presentation": {
|
||||||
|
"defaultLocale": "zh-CN",
|
||||||
|
"i18n": {
|
||||||
|
"zh-CN": {
|
||||||
|
"name": "Repomix MCP",
|
||||||
|
"summary": "读取、打包用户选择的代码目录。",
|
||||||
|
"description": "选择要读取或打包的代码目录。使用 `--sandbox .` 将可用文件工具限制在该目录。安装时由用户选择目录。需要 Node.js ≥22 和 npm,首次准备依赖时从官方包仓库下载。"
|
||||||
|
},
|
||||||
|
"en-US": {
|
||||||
|
"name": "Repomix MCP",
|
||||||
|
"summary": "Read and pack the code directory selected at installation.",
|
||||||
|
"description": "The sandbox starts in the selected directory and restricts the available file tools to that directory. Dependencies download from the upstream package registry."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
"developer-tools",
|
||||||
|
"mcp"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"release": {
|
||||||
|
"state": "known",
|
||||||
|
"version": "1.19.0",
|
||||||
|
"versionScheme": "semver"
|
||||||
|
},
|
||||||
|
"timestamps": {
|
||||||
|
"catalogUpdatedAt": {
|
||||||
|
"state": "known",
|
||||||
|
"value": "2026-11-30",
|
||||||
|
"precision": "day"
|
||||||
|
},
|
||||||
|
"releasePublishedAt": {
|
||||||
|
"state": "known",
|
||||||
|
"value": "2026-11-08T03:04:45Z",
|
||||||
|
"precision": "second"
|
||||||
|
},
|
||||||
|
"reviewedAt": {
|
||||||
|
"state": "known",
|
||||||
|
"value": "2026-11-30",
|
||||||
|
"precision": "day"
|
||||||
|
},
|
||||||
|
"upstreamObservedAt": {
|
||||||
|
"state": "known",
|
||||||
|
"value": "2026-11-30",
|
||||||
|
"precision": "day"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"provenance": {
|
||||||
|
"content": {
|
||||||
|
"kind": "package",
|
||||||
|
"url": "https://www.npmjs.com/package/repomix",
|
||||||
|
"ref": "1.19.0",
|
||||||
|
"sha256": "e5504ac6a3e1729b27b78efa8e7f15c468bda64c5aad533566666e3d95ccc064"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"governance": {
|
||||||
|
"availability": "installable",
|
||||||
|
"stewardship": "community",
|
||||||
|
"license": {
|
||||||
|
"state": "known",
|
||||||
|
"value": "MIT",
|
||||||
|
"evidencePath": "LICENSE"
|
||||||
|
},
|
||||||
|
"redistribution": "source-pointer-only",
|
||||||
|
"listingMaintainer": {
|
||||||
|
"name": "DesireCore Registry",
|
||||||
|
"url": "https://github.com/desirecore/registry",
|
||||||
|
"verified": true
|
||||||
|
},
|
||||||
|
"upstreamMaintainer": {
|
||||||
|
"name": "yamadashy",
|
||||||
|
"url": "https://github.com/yamadashy/repomix",
|
||||||
|
"verified": true
|
||||||
|
},
|
||||||
|
"branding": {
|
||||||
|
"relationship": "independent-listing",
|
||||||
|
"nameUsage": "nominative",
|
||||||
|
"logoStatus": "not-used"
|
||||||
|
},
|
||||||
|
"compliance": {
|
||||||
|
"licenseEvidencePath": "LICENSE",
|
||||||
|
"noticePath": "THIRD_PARTY_NOTICES.md",
|
||||||
|
"reviewedRef": "1.19.0",
|
||||||
|
"reviewedAt": "2026-11-30",
|
||||||
|
"reviewedBy": "DesireCore catalog review",
|
||||||
|
"upstreamEndorsed": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"compatibility": {
|
||||||
|
"platforms": {
|
||||||
|
"state": "known",
|
||||||
|
"values": [
|
||||||
|
"macos"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"requiredClientVersion": "10.0.216"
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"kind": "service",
|
||||||
|
"protocol": "mcp",
|
||||||
|
"authType": "none",
|
||||||
|
"capabilities": [
|
||||||
|
"pack_codebase",
|
||||||
|
"read_repomix_output",
|
||||||
|
"grep_repomix_output",
|
||||||
|
"file_system_read_file",
|
||||||
|
"file_system_read_directory"
|
||||||
|
],
|
||||||
|
"toolCount": 5
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
title: 安装 Repomix MCP
|
||||||
|
---
|
||||||
|
|
||||||
|
# 安装 Repomix MCP 1.19.0
|
||||||
|
|
||||||
|
在支持 MCP 数据目录选择的 DesireCore 本机桌面窗口发起安装。需要 Node.js ≥22 和 npm。当前记录覆盖 macOS。
|
||||||
|
|
||||||
|
选择要读取或打包的代码目录。使用 `--sandbox .` 将可用文件工具限制在该目录。 路径由 DesireCore 绑定到本次安装,作为服务的启动工作目录。目录清单和安装信封不保存用户数据目录。取消选择即停止本次安装。
|
||||||
|
|
||||||
|
使用附带的固定目录获取信封执行 MCP 安装和连接测试,再用带同一 `catalogAcquisition` 的接口登记。后端使用用户已选目录。连接成功后再结算。
|
||||||
|
|
||||||
|
代表性验证为 `file_system_read_file` 读取合成项目中的文本文件。
|
||||||
|
|
||||||
|
制品身份与许可见 [第三方使用说明](./THIRD_PARTY_NOTICES.md)。
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"id": "repomix-mcp",
|
||||||
|
"name": "Repomix MCP",
|
||||||
|
"type": "mcp",
|
||||||
|
"version": "1.19.0",
|
||||||
|
"author": "yamadashy",
|
||||||
|
"description": "读取、打包用户选择的代码目录。",
|
||||||
|
"tags": [
|
||||||
|
"developer-tools",
|
||||||
|
"mcp"
|
||||||
|
],
|
||||||
|
"icon": "terminal",
|
||||||
|
"platformSupport": [
|
||||||
|
"macos"
|
||||||
|
],
|
||||||
|
"capabilities": [
|
||||||
|
"pack_codebase",
|
||||||
|
"read_repomix_output",
|
||||||
|
"grep_repomix_output",
|
||||||
|
"file_system_read_file",
|
||||||
|
"file_system_read_directory"
|
||||||
|
],
|
||||||
|
"toolCount": 5,
|
||||||
|
"install": {
|
||||||
|
"method": "npx",
|
||||||
|
"packageName": "repomix",
|
||||||
|
"command": "npx",
|
||||||
|
"args": [
|
||||||
|
"--yes",
|
||||||
|
"--ignore-scripts",
|
||||||
|
"repomix@1.19.0",
|
||||||
|
"--mcp",
|
||||||
|
"--sandbox",
|
||||||
|
"."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"connection": {
|
||||||
|
"transport": "stdio",
|
||||||
|
"requiresDataDirectory": true,
|
||||||
|
"command": "npx",
|
||||||
|
"args": [
|
||||||
|
"--yes",
|
||||||
|
"--ignore-scripts",
|
||||||
|
"repomix@1.19.0",
|
||||||
|
"--mcp",
|
||||||
|
"--sandbox",
|
||||||
|
"."
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
# Repomix MCP
|
||||||
|
|
||||||
|
选择要读取或打包的代码目录。使用 `--sandbox .` 将可用文件工具限制在该目录。
|
||||||
|
|
||||||
|
`file_system_read_file` 读取合成项目中的文本文件。
|
||||||
+3
-3
@@ -6,12 +6,12 @@
|
|||||||
"description": "DesireCore 官方注册表 — 应用、插件、MCP 服务、HTTP API 和第三方外部集成的统一目录",
|
"description": "DesireCore 官方注册表 — 应用、插件、MCP 服务、HTTP API 和第三方外部集成的统一目录",
|
||||||
"maintainer": "DesireCore Team",
|
"maintainer": "DesireCore Team",
|
||||||
"repository": "https://github.com/desirecore/registry",
|
"repository": "https://github.com/desirecore/registry",
|
||||||
"lastUpdated": "2026-11-28",
|
"lastUpdated": "2026-11-30",
|
||||||
"stats": {
|
"stats": {
|
||||||
"totalEntries": 28,
|
"totalEntries": 30,
|
||||||
"dockerApps": 8,
|
"dockerApps": 8,
|
||||||
"nativeApps": 3,
|
"nativeApps": 3,
|
||||||
"mcpServices": 11,
|
"mcpServices": 13,
|
||||||
"httpApis": 5,
|
"httpApis": 5,
|
||||||
"externalIntegrations": 1
|
"externalIntegrations": 1
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,3 +8,32 @@ export function isAuthoredRegistryEntry(entry) {
|
|||||||
export function isApplicationEntry(entry) {
|
export function isApplicationEntry(entry) {
|
||||||
return ['docker-app', 'native-app', 'artifact', 'web-bundle'].includes(entry?.type)
|
return ['docker-app', 'native-app', 'artifact', 'web-bundle'].includes(entry?.type)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Add the scoped MCP connection contract without replacing the published schema fingerprint. */
|
||||||
|
export function withMcpDataDirectory(schema) {
|
||||||
|
const connection = schema?.definitions?.connection
|
||||||
|
if (!connection?.properties) return schema
|
||||||
|
return {
|
||||||
|
...schema,
|
||||||
|
definitions: {
|
||||||
|
...schema.definitions,
|
||||||
|
connection: {
|
||||||
|
...connection,
|
||||||
|
properties: {
|
||||||
|
...connection.properties,
|
||||||
|
requiresDataDirectory: {
|
||||||
|
const: true,
|
||||||
|
description: 'Require the user-selected data folder as the stdio working directory.',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
allOf: [
|
||||||
|
...(connection.allOf ?? []),
|
||||||
|
{
|
||||||
|
if: { required: ['requiresDataDirectory'] },
|
||||||
|
then: { properties: { transport: { const: 'stdio' } } },
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,7 +5,7 @@ import { validateJsonSchema } from './json-schema.mjs'
|
|||||||
import { findStaticMetrics } from './static-metadata.mjs'
|
import { findStaticMetrics } from './static-metadata.mjs'
|
||||||
import { MCP_PACKAGE_REVIEWER, validateMcpPackageReview } from './automated-mcp-review.mjs'
|
import { MCP_PACKAGE_REVIEWER, validateMcpPackageReview } from './automated-mcp-review.mjs'
|
||||||
import { validateApplicationContract } from './application-contract.mjs'
|
import { validateApplicationContract } from './application-contract.mjs'
|
||||||
import { AUTHORED_ENTRY_SCHEMA_FILENAME, isApplicationEntry, isAuthoredRegistryEntry } from './entry-schema.mjs'
|
import { AUTHORED_ENTRY_SCHEMA_FILENAME, isApplicationEntry, isAuthoredRegistryEntry, withMcpDataDirectory } from './entry-schema.mjs'
|
||||||
|
|
||||||
export const CATALOG_SIDECAR_FILENAME = 'catalog-metadata.v1.json'
|
export const CATALOG_SIDECAR_FILENAME = 'catalog-metadata.v1.json'
|
||||||
|
|
||||||
@@ -255,7 +255,7 @@ export function validateRegistry(repoRoot, options = {}) {
|
|||||||
if (entry.type === 'external-integration') counts.externalIntegrations += 1
|
if (entry.type === 'external-integration') counts.externalIntegrations += 1
|
||||||
const effectiveEntrySchema = isAuthoredRegistryEntry(entry) ? authoredEntrySchema
|
const effectiveEntrySchema = isAuthoredRegistryEntry(entry) ? authoredEntrySchema
|
||||||
: ['external-integration', 'native-app', 'artifact'].includes(entry.type) ? externalEntrySchema : currentEntrySchema
|
: ['external-integration', 'native-app', 'artifact'].includes(entry.type) ? externalEntrySchema : currentEntrySchema
|
||||||
if (effectiveEntrySchema !== null && effectiveEntrySchema !== undefined) diagnostics.push(...schemaDiagnostics(entry, effectiveEntrySchema, manifestRelative))
|
if (effectiveEntrySchema !== null && effectiveEntrySchema !== undefined) diagnostics.push(...schemaDiagnostics(entry, withMcpDataDirectory(effectiveEntrySchema), manifestRelative))
|
||||||
for (const message of validateApplicationContract(entry)) diagnostics.push(diagnostic('error', 'application-contract', manifestRelative, '$', message))
|
for (const message of validateApplicationContract(entry)) diagnostics.push(diagnostic('error', 'application-contract', manifestRelative, '$', message))
|
||||||
if (entry.id !== basename(entryDir)) diagnostics.push(diagnostic('error', 'directory-id-mismatch', manifestRelative, '$.id', 'manifest.id 必须与 entries/<id> 目录名一致'))
|
if (entry.id !== basename(entryDir)) diagnostics.push(diagnostic('error', 'directory-id-mismatch', manifestRelative, '$.id', 'manifest.id 必须与 entries/<id> 目录名一致'))
|
||||||
if (seenIds.has(entry.id)) diagnostics.push(diagnostic('error', 'duplicate-id', manifestRelative, '$.id', 'Registry 条目 ID 重复'))
|
if (seenIds.has(entry.id)) diagnostics.push(diagnostic('error', 'duplicate-id', manifestRelative, '$.id', 'Registry 条目 ID 重复'))
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { fileURLToPath } from 'node:url'
|
|||||||
import Ajv from 'ajv'
|
import Ajv from 'ajv'
|
||||||
import { findStaticMetrics } from './catalog/static-metadata.mjs'
|
import { findStaticMetrics } from './catalog/static-metadata.mjs'
|
||||||
import { validateApplicationContract } from './catalog/application-contract.mjs'
|
import { validateApplicationContract } from './catalog/application-contract.mjs'
|
||||||
import { AUTHORED_ENTRY_SCHEMA_FILENAME, isAuthoredRegistryEntry } from './catalog/entry-schema.mjs'
|
import { AUTHORED_ENTRY_SCHEMA_FILENAME, isAuthoredRegistryEntry, withMcpDataDirectory } from './catalog/entry-schema.mjs'
|
||||||
|
|
||||||
const scriptDirectory = dirname(fileURLToPath(import.meta.url))
|
const scriptDirectory = dirname(fileURLToPath(import.meta.url))
|
||||||
const rootArgumentIndex = process.argv.indexOf('--root')
|
const rootArgumentIndex = process.argv.indexOf('--root')
|
||||||
@@ -306,8 +306,8 @@ const compileEntrySchema = (schema, filename) => {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const validateEntry = compileEntrySchema(entrySchema, 'registry-entry.schema.json')
|
const validateEntry = compileEntrySchema(withMcpDataDirectory(entrySchema), 'registry-entry.schema.json')
|
||||||
const validateAuthoredEntry = compileEntrySchema(authoredEntrySchema, AUTHORED_ENTRY_SCHEMA_FILENAME)
|
const validateAuthoredEntry = compileEntrySchema(withMcpDataDirectory(authoredEntrySchema), AUTHORED_ENTRY_SCHEMA_FILENAME)
|
||||||
|
|
||||||
const manifests = []
|
const manifests = []
|
||||||
const seenIds = new Set()
|
const seenIds = new Set()
|
||||||
|
|||||||
Reference in new issue
Block a user