dsh-mcp-connector 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -1
- package/README.md +5 -2
- package/cordis.patch.yml +1 -1
- package/docs/MARKET-REGISTRATION.md +4 -4
- package/lib/constants.js +2 -0
- package/lib/index.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.2.1] - 2026-08-21
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- 上线独立公共 `dsh-mcp-connector-registry`,新市场卡片合并后无需重发 npm 即可被客户端刷新获取。
|
|
12
|
+
- npm 发布流程切换为 GitHub Actions OIDC Trusted Publishing。
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- `catalogUrl` 默认指向公共 Registry,显式空字符串仍可关闭远程目录;拉取失败时保留缓存/内置目录回退。
|
|
17
|
+
|
|
7
18
|
## [0.2.0] - 2026-08-21
|
|
8
19
|
|
|
9
20
|
### Added
|
|
@@ -69,6 +80,7 @@
|
|
|
69
80
|
- 外部 URL 与导入 Header 执行安全校验。
|
|
70
81
|
- iframe 消息校验同源和消息来源。
|
|
71
82
|
|
|
72
|
-
[Unreleased]: https://github.com/duhu2000/dsh-mcp-connector/compare/v0.2.
|
|
83
|
+
[Unreleased]: https://github.com/duhu2000/dsh-mcp-connector/compare/v0.2.1...HEAD
|
|
84
|
+
[0.2.1]: https://github.com/duhu2000/dsh-mcp-connector/compare/v0.2.0...v0.2.1
|
|
73
85
|
[0.2.0]: https://github.com/duhu2000/dsh-mcp-connector/compare/v0.1.0...v0.2.0
|
|
74
86
|
[0.1.0]: https://github.com/duhu2000/dsh-mcp-connector/releases/tag/v0.1.0
|
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
- 市场 Bearer/API Key 连接器先执行 MCP initialize 连通性与凭据校验,全部 Server 通过后才持久化凭据并进入“已安装”。
|
|
18
18
|
- 生命周期管理:连接持久化、重启恢复、启停、断开、OAuth 刷新与撤销。
|
|
19
19
|
- 目录运营:内置目录、远程 registry、本地覆盖,支持 `published` 上下架与 `featured` 精选。
|
|
20
|
+
- 独立远程 Registry:新市场卡片合并后客户端刷新即可见,无需重新发布 npm;远程不可用时自动回退内置目录。
|
|
20
21
|
- Registry 工具链:Schema/唯一性/密钥审计、MCP/OAuth 无凭据探针、每周健康巡检。
|
|
21
22
|
- 平滑迁移:显式扫描并复制两个旧企查查 OAuth 插件授权;不删除原插件或原凭据。
|
|
22
23
|
- 对话工具:`mcp_connector_catalog`、`connect`、`configure`、`import_json`、`install_from_url`、`status`、`set_enabled`、`disconnect`、`refresh_catalog`、`publish`、`tools_list`。
|
|
@@ -56,13 +57,15 @@ Bundle 默认配置位于 `cordis.patch.yml`:
|
|
|
56
57
|
- id: mcp-connector
|
|
57
58
|
name: dsh-mcp-connector
|
|
58
59
|
config:
|
|
59
|
-
catalogUrl: ''
|
|
60
|
+
catalogUrl: 'https://raw.githubusercontent.com/duhu2000/dsh-mcp-connector-registry/main/catalog.json'
|
|
60
61
|
persistSecrets: true
|
|
61
62
|
entryPrefix: mcp
|
|
62
63
|
refreshSkewMs: 300000
|
|
63
64
|
openBrowser: true
|
|
64
65
|
```
|
|
65
66
|
|
|
67
|
+
`catalogUrl` 默认指向公共 [dsh-mcp-connector-registry](https://github.com/duhu2000/dsh-mcp-connector-registry),支持 ETag/TTL 缓存;拉取失败时继续使用上次缓存或随包内置目录。需要离线/私有模式时可将其显式设为空字符串。
|
|
68
|
+
|
|
66
69
|
## 开发与发布门禁
|
|
67
70
|
|
|
68
71
|
```bash
|
|
@@ -72,7 +75,7 @@ npm run registry:validate
|
|
|
72
75
|
npm run dev:ui
|
|
73
76
|
```
|
|
74
77
|
|
|
75
|
-
`check` 执行语法检查、自动测试和 npm 发布包白名单校验;`dev:ui` 启动不含真实凭据的本地 mock 市场。CI 使用 `--legacy-peer-deps` 安装显式测试依赖,DSH 运行期 peer 仍由 Host 提供。`v*` Tag 会触发 GitHub Actions;Tag 必须与 `package.json`
|
|
78
|
+
`check` 执行语法检查、自动测试和 npm 发布包白名单校验;`dev:ui` 启动不含真实凭据的本地 mock 市场。CI 使用 `--legacy-peer-deps` 安装显式测试依赖,DSH 运行期 peer 仍由 Host 提供。`v*` Tag 会触发 GitHub Actions;Tag 必须与 `package.json` 版本一致。Release 通过 npm Trusted Publishing (GitHub OIDC) 发布,不依赖长期 `NPM_TOKEN`。
|
|
76
79
|
|
|
77
80
|
当前公开版本为 [`dsh-mcp-connector@0.2.0`](https://www.npmjs.com/package/dsh-mcp-connector),对应 [GitHub Release v0.2.0](https://github.com/duhu2000/dsh-mcp-connector/releases/tag/v0.2.0)。
|
|
78
81
|
|
package/cordis.patch.yml
CHANGED
|
@@ -20,12 +20,12 @@ Bearer/API Key 型连接器可在卡片上点「配置」,一次填写凭据
|
|
|
20
20
|
|
|
21
21
|
## 3. 提交公共市场
|
|
22
22
|
|
|
23
|
-
1.
|
|
24
|
-
2. 运行 `npm
|
|
23
|
+
1. Fork 公开仓库 [`duhu2000/dsh-mcp-connector-registry`](https://github.com/duhu2000/dsh-mcp-connector-registry),在 `connectors/<id>.json` 新增一个描述文件,一个连接器一个文件。
|
|
24
|
+
2. 运行 `npm install --legacy-peer-deps` 和 `npm run check`。
|
|
25
25
|
3. 提交 PR。CI 会检查 Schema、重复 id/serverName、密钥、URL、MCP initialize、OAuth 元数据和图标。
|
|
26
|
-
4.
|
|
26
|
+
4. 合并后 CI 重建根目录 `catalog.json`;客户端点击“刷新”后可见,无需重新发布 `dsh-mcp-connector` npm 包。
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
插件默认读取 `https://raw.githubusercontent.com/duhu2000/dsh-mcp-connector-registry/main/catalog.json`;远程不可用时自动回退上次缓存或随包内置目录。
|
|
29
29
|
|
|
30
30
|
## 4. OAuth 一键授权要求
|
|
31
31
|
|
package/lib/constants.js
CHANGED
|
@@ -17,6 +17,8 @@ export const JSON_CONNECTOR_ID = '__json__';
|
|
|
17
17
|
export const RESERVED_ID_PREFIXES = ['qcc-', 'dsh-', 'mcp-connector-'];
|
|
18
18
|
|
|
19
19
|
/** 请求 / 刷新默认值 */
|
|
20
|
+
export const DEFAULT_CATALOG_URL =
|
|
21
|
+
'https://raw.githubusercontent.com/duhu2000/dsh-mcp-connector-registry/main/catalog.json';
|
|
20
22
|
export const DEFAULT_REQUEST_TIMEOUT_MS = 15_000;
|
|
21
23
|
export const DEFAULT_REFRESH_SKEW_MS = 300_000;
|
|
22
24
|
export const DEFAULT_CATALOG_TTL_MS = 3_600_000;
|
package/lib/index.js
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import z from '@deepseek-ai/schemastery';
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_ACCOUNT,
|
|
15
|
+
DEFAULT_CATALOG_URL,
|
|
15
16
|
DEFAULT_REQUEST_TIMEOUT_MS,
|
|
16
17
|
DEFAULT_REFRESH_SKEW_MS,
|
|
17
18
|
DEFAULT_CATALOG_TTL_MS,
|
|
@@ -35,8 +36,8 @@ export const name = 'mcp-connector';
|
|
|
35
36
|
export const inject = ['tools', 'storageDomain', 'loader'];
|
|
36
37
|
|
|
37
38
|
export const Config = z.object({
|
|
38
|
-
/** 远程目录 URL
|
|
39
|
-
catalogUrl: z.string().default(
|
|
39
|
+
/** 远程目录 URL(默认公共 registry;显式空字符串 = 仅内置目录) */
|
|
40
|
+
catalogUrl: z.string().default(DEFAULT_CATALOG_URL),
|
|
40
41
|
/** 远程目录缓存 TTL(ms) */
|
|
41
42
|
catalogTtlMs: z.number().default(DEFAULT_CATALOG_TTL_MS),
|
|
42
43
|
/** 额外注入的连接器描述(ops/测试用,优先级高于远程 registry) */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mcp-connector",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "DeepSeek Harness 插件:MCP连接器 —— 连接器目录与上架、通用 OAuth / 自定义 / JSON 三通道连接外部 MCP Server / MCP Connector marketplace & connection manager",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|