dsh-mcp-connector 0.2.93 → 0.2.95

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.en.md +2 -2
  3. package/README.md +2 -2
  4. package/docs/USER-GUIDE.md +1 -1
  5. package/docs/screenshots/01-market-overview.jpg +0 -0
  6. package/docs/screenshots/02-connector-detail.jpg +0 -0
  7. package/docs/screenshots/03-tool-discovery.jpg +0 -0
  8. package/docs/screenshots/04-json-import.jpg +0 -0
  9. package/docs/screenshots/05-unified-tool-search.png +0 -0
  10. package/docs/screenshots/06-tool-parameters.png +0 -0
  11. package/docs/screenshots/07-connection-diagnostics.png +0 -0
  12. package/docs/screenshots/08-ten-recommendations.jpg +0 -0
  13. package/docs/screenshots/README.md +1 -1
  14. package/docs/screenshots/assets.json +30 -30
  15. package/docs/screenshots/en/01-market-overview.jpg +0 -0
  16. package/docs/screenshots/en/02-connector-detail.jpg +0 -0
  17. package/docs/screenshots/en/03-tool-discovery.jpg +0 -0
  18. package/docs/screenshots/en/04-json-import.jpg +0 -0
  19. package/docs/screenshots/en/05-unified-tool-search.png +0 -0
  20. package/docs/screenshots/en/06-tool-parameters.png +0 -0
  21. package/docs/screenshots/en/07-connection-diagnostics.png +0 -0
  22. package/docs/screenshots/en/08-ten-recommendations.jpg +0 -0
  23. package/docs/screenshots/en/assets.json +30 -30
  24. package/docs/screenshots/en/demo.gif +0 -0
  25. package/docs/tutorials/FIRST-SUCCESS-SCENARIOS.md +1 -1
  26. package/lib/client.js +17 -0
  27. package/lib/discovery-policy.js +5 -1
  28. package/lib/i18n/locales/en/tools.js +4 -0
  29. package/lib/index.js +9 -4
  30. package/lib/schema.js +2 -0
  31. package/lib/tools.js +16 -0
  32. package/package.json +1 -1
  33. package/registry/catalog.json +3 -0
  34. package/registry/schema/connector.schema.json +1 -0
  35. package/ui/index.html +4 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.95
4
+
5
+ - Add a standalone Settings → MCP Connector page with the existing sidebar visibility switch and open-panel action, including hosts without a Plugins settings page (#216).
6
+ - Retain the legacy plugin settings card and shared profile preference; hiding the shortcut does not disable connections or tools.
7
+ - Cover delayed settings slots, removal/remount and opening with the sidebar hidden. Windows Desktop and the original reporter environment still require acceptance; this does not close #166 or #216.
8
+
9
+ ## 0.2.94
10
+
11
+ - Clarify session activation steps and expose exact preview revision and activation arguments in model-visible text, without inventing user consent (#212).
12
+ - Observe pending stdio Host registration with bounded startup retries and automatic tool discovery refresh (#210).
13
+ - Support optional HTTPS credential-help links with a backward-compatible homepage fallback and bilingual labels (#209).
14
+ - Automated and credential-free UI checks do not replace real TuShare or Windows Desktop acceptance. The provider Content-Type issue #208 remains unresolved.
15
+
3
16
  ## 0.2.93
4
17
 
5
18
  - Reposition homepage recommendations around ten specialist data sources, preserving card sizes, category previews and fixed ordering.
package/README.en.md CHANGED
@@ -114,7 +114,7 @@ As of 2026-10-24, the public Registry publishes 112 connector descriptors. After
114
114
  | Connection diagnostics and last-success cache | |
115
115
  | ![Connection diagnostics](https://raw.githubusercontent.com/duhu2000/dsh-mcp-connector/main/docs/screenshots/en/07-connection-diagnostics.png) | |
116
116
 
117
- <!-- generated:media -->English UI screenshots and GIF were captured from v0.2.93 (2026-11-02), using the credential-free Mock harness. Provider content retains its original language. They demonstrate UI, not real business acceptance; counts are fixtures. See [asset provenance](docs/screenshots/README.md).<!-- /generated:media -->
117
+ <!-- generated:media -->English UI screenshots and GIF were captured from v0.2.95 (2026-11-07), using the credential-free Mock harness. Provider content retains its original language. They demonstrate UI, not real business acceptance; counts are fixtures. See [asset provenance](docs/screenshots/README.md).<!-- /generated:media -->
118
118
 
119
119
  ## Installation
120
120
 
@@ -245,7 +245,7 @@ npm run dev:ui
245
245
 
246
246
  Every Registry merge regenerates `catalog-stats.json`; an hourly workflow in this repository synchronizes the Chinese and English product copy plus a local stats snapshot. The static npm README updates with package releases, while the live badges above read the Registry directly and therefore stay current without another npm release.
247
247
 
248
- <!-- generated:version -->The current public version is [`dsh-mcp-connector@0.2.93`](https://www.npmjs.com/package/dsh-mcp-connector), with [GitHub Release v0.2.93](https://github.com/duhu2000/dsh-mcp-connector/releases/tag/v0.2.93).<!-- /generated:version -->
248
+ <!-- generated:version -->The current public version is [`dsh-mcp-connector@0.2.95`](https://www.npmjs.com/package/dsh-mcp-connector), with [GitHub Release v0.2.95](https://github.com/duhu2000/dsh-mcp-connector/releases/tag/v0.2.95).<!-- /generated:version -->
249
249
 
250
250
  See [CHANGELOG.md](CHANGELOG.md) for version history and [docs/DESKTOP-E2E.md](docs/DESKTOP-E2E.md) for the Desktop release checklist.
251
251
 
package/README.md CHANGED
@@ -128,7 +128,7 @@ Desktop 需要完全退出并重新启动应用;Web 需要停止原 `dsh web`
128
128
  | 连接诊断与最后成功缓存 | |
129
129
  | ![连接诊断](https://raw.githubusercontent.com/duhu2000/dsh-mcp-connector/main/docs/screenshots/07-connection-diagnostics.png) | |
130
130
 
131
- <!-- generated:media -->截图与 GIF 采集自 v0.2.93(2026-11-02)无凭据 Mock 页面,展示界面而非真实业务验收;市场数量是测试夹具。来源与更新方法见 [素材说明](docs/screenshots/README.md)。<!-- /generated:media -->
131
+ <!-- generated:media -->截图与 GIF 采集自 v0.2.95(2026-11-07)无凭据 Mock 页面,展示界面而非真实业务验收;市场数量是测试夹具。来源与更新方法见 [素材说明](docs/screenshots/README.md)。<!-- /generated:media -->
132
132
 
133
133
  ## 安装
134
134
 
@@ -252,7 +252,7 @@ npm run dev:ui
252
252
 
253
253
  公共 Registry 每次合并后会生成 `catalog-stats.json`;本仓库的定时工作流每小时同步中英文介绍和统计快照。npm 页面中的静态正文随版本发布更新,上方动态统计徽标则直接读取 Registry,可在不发布新 npm 版本时保持实时数量一致。
254
254
 
255
- <!-- generated:version -->当前公开版本为 [`dsh-mcp-connector@0.2.93`](https://www.npmjs.com/package/dsh-mcp-connector),对应 [GitHub Release v0.2.93](https://github.com/duhu2000/dsh-mcp-connector/releases/tag/v0.2.93)。<!-- /generated:version -->
255
+ <!-- generated:version -->当前公开版本为 [`dsh-mcp-connector@0.2.95`](https://www.npmjs.com/package/dsh-mcp-connector),对应 [GitHub Release v0.2.95](https://github.com/duhu2000/dsh-mcp-connector/releases/tag/v0.2.95)。<!-- /generated:version -->
256
256
 
257
257
  版本能力与变更记录见 [CHANGELOG.md](CHANGELOG.md)。
258
258
  Desktop 发版回归见 [docs/DESKTOP-E2E.md](docs/DESKTOP-E2E.md)。
@@ -48,7 +48,7 @@ dsh web
48
48
  重启后,可以用以下任一方式打开:
49
49
 
50
50
  - 在 DSH 左侧主导航点击“MCP连接器”。DSH `>=0.2.0-rc.2` 使用宿主原生面板行,展开、折叠、选中态和键盘操作均与其他主导航一致;DSH `0.1.x` 自动使用左侧底部兼容入口。
51
- - 打开“设置 → 插件 → 插件配置 → MCP连接器”,展开卡片并点击“打开 MCP连接器”。该按钮直接复用同一个连接器弹框,不要求侧边栏入口可见;关闭弹框后仍回到设置页。
51
+ - 打开“设置 → MCP连接器”,展开卡片并点击“打开 MCP连接器”。支持旧插件配置页的宿主也可从“设置 → 插件 → 插件配置 → MCP连接器”进入;部分 DSH 版本没有“插件”菜单,不应以该菜单是否存在判断插件安装状态。按钮复用同一个连接器弹框,不要求侧边栏入口可见;关闭弹框后仍回到设置页。
52
52
 
53
53
  如需腾出侧边栏空间,可在同一配置卡片关闭“在侧边栏显示 MCP连接器”。该偏好作用于当前 DSH profile,并在重启后保留;它只隐藏快捷入口,不停用插件、已连接 MCP Server 或工具。如果隐藏时正在原生连接器面板,页面会先返回当前会话;之后仍可从该配置卡片直接打开弹框,或重新开启入口。旧版 DSH 没有 Settings 能力时,插件保持入口可见,不会因设置功能进入 Safe Mode。
54
54
 
Binary file
@@ -1,6 +1,6 @@
1
1
  # 产品截图与演示的来源及更新
2
2
 
3
- <!-- generated:media -->本组 8 张截图和 GIF 均从 v0.2.93 于 2026-11-02 重新采集,未修改截图中的版本文字。<!-- /generated:media -->
3
+ <!-- generated:media -->本组 8 张截图和 GIF 均从 v0.2.95 于 2026-11-07 重新采集,未修改截图中的版本文字。<!-- /generated:media -->
4
4
 
5
5
  前七张素材由真实产品 UI 的无凭据 Mock harness 渲染:1280×720 浏览器视口、800px 产品面板、桌面两列卡片。顶部保留“无凭据 Mock”标识;目录数、连接数与工具数是演示夹具,不代表生产统计或真实授权、业务验收。不会读取用户 profile、调用服务商或上传业务数据。
6
6
 
@@ -2,9 +2,9 @@
2
2
  "schemaVersion": 1,
3
3
  "capture": {
4
4
  "locale": "zh-CN",
5
- "capturedOn": "2026-11-02",
6
- "sourceVersion": "0.2.93",
7
- "sourceFingerprint": "6d17a6dc58f0c41f8f203b9bd639d1d12553055b9ceba379894b856a22bb8a1e",
5
+ "capturedOn": "2026-11-07",
6
+ "sourceVersion": "0.2.95",
7
+ "sourceFingerprint": "b788ef56910a9889473ba31cf85cb234f4b55ab49c1a47ca1e8e52d760b9ce0a",
8
8
  "browserViewport": {
9
9
  "width": 1280,
10
10
  "height": 720
@@ -17,63 +17,63 @@
17
17
  "screenshots": [
18
18
  {
19
19
  "path": "docs/screenshots/01-market-overview.jpg",
20
- "sha256": "471b8b0415b4dc0dbe098e47ac69f3f0369702d2a244fa96686a3a35498c38e2",
20
+ "sha256": "2a71b536ee91824b554f2e6807bb42e06f8615aed151674f78f8fecb91213f68",
21
21
  "width": 1280,
22
22
  "height": 720,
23
- "capturedOn": "2026-11-02",
24
- "sourceVersion": "0.2.93"
23
+ "capturedOn": "2026-11-07",
24
+ "sourceVersion": "0.2.95"
25
25
  },
26
26
  {
27
27
  "path": "docs/screenshots/02-connector-detail.jpg",
28
- "sha256": "6886539a19ba981e769d136d82bc2a5175ef9d2bc1aa8ca91d6ff024d8dc03db",
28
+ "sha256": "cc1768734c0f8dd0a90dc38537f0a2eeeb51893835e4f6233f6bc55dd7dafcfa",
29
29
  "width": 1280,
30
30
  "height": 720,
31
- "capturedOn": "2026-11-02",
32
- "sourceVersion": "0.2.93"
31
+ "capturedOn": "2026-11-07",
32
+ "sourceVersion": "0.2.95"
33
33
  },
34
34
  {
35
35
  "path": "docs/screenshots/03-tool-discovery.jpg",
36
- "sha256": "53717a57dd1b4896295197c762bfd6e93dbe7741e238234e6dad66e1b1c6decf",
36
+ "sha256": "8dc26d9aa5c82bb6e13507ca29a6b9ce70b7804750d43ec4298455a7e57fd0b5",
37
37
  "width": 1280,
38
38
  "height": 720,
39
- "capturedOn": "2026-11-02",
40
- "sourceVersion": "0.2.93"
39
+ "capturedOn": "2026-11-07",
40
+ "sourceVersion": "0.2.95"
41
41
  },
42
42
  {
43
43
  "path": "docs/screenshots/04-json-import.jpg",
44
- "sha256": "828ea73f9de75527dd6074e8ac1df7d6bfeda29c6c6f7932a3ad76a155c65673",
44
+ "sha256": "b34713ac827b507d5a81a44391b78e0e0dabc47bc62402f7372f6e332de1a3fe",
45
45
  "width": 1280,
46
46
  "height": 720,
47
- "capturedOn": "2026-11-02",
48
- "sourceVersion": "0.2.93"
47
+ "capturedOn": "2026-11-07",
48
+ "sourceVersion": "0.2.95"
49
49
  },
50
50
  {
51
51
  "path": "docs/screenshots/05-unified-tool-search.png",
52
- "sha256": "6e78a8f2963f2ca0023c728d35df1f0b64be2e624a853797be84a8540108f170",
52
+ "sha256": "d268cc593d8b84bc3448de72068793a8fb1cae51755aabb096ed93458577629e",
53
53
  "width": 1280,
54
54
  "height": 720,
55
- "capturedOn": "2026-11-02",
56
- "sourceVersion": "0.2.93"
55
+ "capturedOn": "2026-11-07",
56
+ "sourceVersion": "0.2.95"
57
57
  },
58
58
  {
59
59
  "path": "docs/screenshots/06-tool-parameters.png",
60
- "sha256": "1a7da495edb7cc99defa78f4062fc41a1d795b37479f95d47a52894bb20e5a03",
60
+ "sha256": "26e38c6a31cf799d3c5cd4c6110895e080743b8d627dc3a5c12780aa2807f400",
61
61
  "width": 1280,
62
62
  "height": 720,
63
- "capturedOn": "2026-11-02",
64
- "sourceVersion": "0.2.93"
63
+ "capturedOn": "2026-11-07",
64
+ "sourceVersion": "0.2.95"
65
65
  },
66
66
  {
67
67
  "path": "docs/screenshots/07-connection-diagnostics.png",
68
- "sha256": "716f0bc5d0d9697bcb21bc01f6504ff2e49d22aa84170ef55d3fec066d20c46c",
68
+ "sha256": "634f505b41936b56880bebfc5c02a9630cc5373d5e28063e670aadf9684be5bf",
69
69
  "width": 1280,
70
70
  "height": 720,
71
- "capturedOn": "2026-11-02",
72
- "sourceVersion": "0.2.93"
71
+ "capturedOn": "2026-11-07",
72
+ "sourceVersion": "0.2.95"
73
73
  },
74
74
  {
75
75
  "path": "docs/screenshots/08-ten-recommendations.jpg",
76
- "sha256": "b6f3c7e1c9107808501e92ce2d8a69e879c38deb328f043c4ab0639761aca347",
76
+ "sha256": "bf4ede198296e3a47836d8478a25efc6db620ae9a8420b38627bd20b1708be85",
77
77
  "width": 1280,
78
78
  "height": 1400,
79
79
  "browserViewport": {
@@ -81,17 +81,17 @@
81
81
  "height": 1400
82
82
  },
83
83
  "panelHeight": 1280,
84
- "capturedOn": "2026-11-02",
85
- "sourceVersion": "0.2.93"
84
+ "capturedOn": "2026-11-07",
85
+ "sourceVersion": "0.2.95"
86
86
  }
87
87
  ],
88
88
  "demo": {
89
89
  "path": "docs/demo.gif",
90
- "sha256": "39f70597e0e0f3a73f7019b6cfed38e21e3a50a88a58fcb911e3c541ae4a7922",
90
+ "sha256": "e093440162af16557d7895f510252be40caff2fe623b33764545cba62845a711",
91
91
  "width": 960,
92
92
  "height": 540,
93
- "capturedOn": "2026-11-02",
94
- "sourceVersion": "0.2.93",
93
+ "capturedOn": "2026-11-07",
94
+ "sourceVersion": "0.2.95",
95
95
  "durationSeconds": 36
96
96
  }
97
97
  }
@@ -2,9 +2,9 @@
2
2
  "schemaVersion": 1,
3
3
  "capture": {
4
4
  "locale": "en",
5
- "capturedOn": "2026-11-02",
6
- "sourceVersion": "0.2.93",
7
- "sourceFingerprint": "6d17a6dc58f0c41f8f203b9bd639d1d12553055b9ceba379894b856a22bb8a1e",
5
+ "capturedOn": "2026-11-07",
6
+ "sourceVersion": "0.2.95",
7
+ "sourceFingerprint": "b788ef56910a9889473ba31cf85cb234f4b55ab49c1a47ca1e8e52d760b9ce0a",
8
8
  "browserViewport": {
9
9
  "width": 1280,
10
10
  "height": 720
@@ -17,63 +17,63 @@
17
17
  "screenshots": [
18
18
  {
19
19
  "path": "docs/screenshots/en/01-market-overview.jpg",
20
- "sha256": "f41a6680291d7e74b83468f9bdbaec49d84086864a17c8574236ca18c8a8b72e",
20
+ "sha256": "ca203309d8d32481628dea1847b0a5e5945c751c6800bd360636a2eb9945fd41",
21
21
  "width": 1280,
22
22
  "height": 720,
23
- "capturedOn": "2026-11-02",
24
- "sourceVersion": "0.2.93"
23
+ "capturedOn": "2026-11-07",
24
+ "sourceVersion": "0.2.95"
25
25
  },
26
26
  {
27
27
  "path": "docs/screenshots/en/02-connector-detail.jpg",
28
- "sha256": "ed98b1d59a94a601213cef5c4cc3ef00f16288fc230396bf5ac95288d46ee0af",
28
+ "sha256": "10554fd4bd6d470abf42270665d6c667bda224c03b6aa5c77bcdbf6ced68c9b4",
29
29
  "width": 1280,
30
30
  "height": 720,
31
- "capturedOn": "2026-11-02",
32
- "sourceVersion": "0.2.93"
31
+ "capturedOn": "2026-11-07",
32
+ "sourceVersion": "0.2.95"
33
33
  },
34
34
  {
35
35
  "path": "docs/screenshots/en/03-tool-discovery.jpg",
36
- "sha256": "b218a22b23ed0dfe89a6390a50ceead74981d463ccba7979c95d1e644a1cc228",
36
+ "sha256": "9f8843afad82c68fe3d4f08c06e38b3ca8dc7fb8f5bfdfa382677030035db155",
37
37
  "width": 1280,
38
38
  "height": 720,
39
- "capturedOn": "2026-11-02",
40
- "sourceVersion": "0.2.93"
39
+ "capturedOn": "2026-11-07",
40
+ "sourceVersion": "0.2.95"
41
41
  },
42
42
  {
43
43
  "path": "docs/screenshots/en/04-json-import.jpg",
44
- "sha256": "6c7e024f39de8f6aba9cd4e195816caa2995081778a53b1d168d6c163a3afeb5",
44
+ "sha256": "3ec8b61248aecd493242fe1b306dbcea949f0bed71acb788eecbd41ded63d171",
45
45
  "width": 1280,
46
46
  "height": 720,
47
- "capturedOn": "2026-11-02",
48
- "sourceVersion": "0.2.93"
47
+ "capturedOn": "2026-11-07",
48
+ "sourceVersion": "0.2.95"
49
49
  },
50
50
  {
51
51
  "path": "docs/screenshots/en/05-unified-tool-search.png",
52
- "sha256": "1f995b24c8675bd4fe89397fdcdc1f8b667b4be6e331ade32ef058c223fcf690",
52
+ "sha256": "055409c543c44887b115e3eb8edd9c53068c549520ad5bb32ce6fee9d16b13c8",
53
53
  "width": 1280,
54
54
  "height": 720,
55
- "capturedOn": "2026-11-02",
56
- "sourceVersion": "0.2.93"
55
+ "capturedOn": "2026-11-07",
56
+ "sourceVersion": "0.2.95"
57
57
  },
58
58
  {
59
59
  "path": "docs/screenshots/en/06-tool-parameters.png",
60
- "sha256": "5d53541c1eddea4e95465cbf21ee25830b3613b703bc72d21c30dad5f0b60c83",
60
+ "sha256": "ccfac0f822893acb56f560e2323a86349f2aa474f2852043763e3bd677848ecd",
61
61
  "width": 1280,
62
62
  "height": 720,
63
- "capturedOn": "2026-11-02",
64
- "sourceVersion": "0.2.93"
63
+ "capturedOn": "2026-11-07",
64
+ "sourceVersion": "0.2.95"
65
65
  },
66
66
  {
67
67
  "path": "docs/screenshots/en/07-connection-diagnostics.png",
68
- "sha256": "07f0ea1c51c0b54bf244638722d8f1e1c9d781f5764f42890682123c5865d738",
68
+ "sha256": "6fab6d42b225379800bb9c1e98b7768863b91aaf247506e71d32429f0b3b55f2",
69
69
  "width": 1280,
70
70
  "height": 720,
71
- "capturedOn": "2026-11-02",
72
- "sourceVersion": "0.2.93"
71
+ "capturedOn": "2026-11-07",
72
+ "sourceVersion": "0.2.95"
73
73
  },
74
74
  {
75
75
  "path": "docs/screenshots/en/08-ten-recommendations.jpg",
76
- "sha256": "521f4632a537085701ce5778916663467ab846ec09b05849f20be6739be47bbc",
76
+ "sha256": "49f1b8c29426da04aeea13b5e41ee2ada4d4d2f4fc964ae9eb7a02d0ed8fff68",
77
77
  "width": 1280,
78
78
  "height": 1400,
79
79
  "browserViewport": {
@@ -81,17 +81,17 @@
81
81
  "height": 1400
82
82
  },
83
83
  "panelHeight": 1280,
84
- "capturedOn": "2026-11-02",
85
- "sourceVersion": "0.2.93"
84
+ "capturedOn": "2026-11-07",
85
+ "sourceVersion": "0.2.95"
86
86
  }
87
87
  ],
88
88
  "demo": {
89
89
  "path": "docs/screenshots/en/demo.gif",
90
- "sha256": "7b67f9bc36263d7f41467366754b3464698649ee33d0cfad96278c9033bbae71",
90
+ "sha256": "4b5aeb756d961f22168a3373306f0644c8fd3346ff7d66d67d93eaefdd007ee6",
91
91
  "width": 960,
92
92
  "height": 540,
93
- "capturedOn": "2026-11-02",
94
- "sourceVersion": "0.2.93",
93
+ "capturedOn": "2026-11-07",
94
+ "sourceVersion": "0.2.95",
95
95
  "durationSeconds": 36
96
96
  }
97
97
  }
Binary file
@@ -8,7 +8,7 @@
8
8
 
9
9
  | 项目 | 验收要求 |
10
10
  |---|---|
11
- | 前提 | <!-- generated:version -->正式 `dsh-mcp-connector@0.2.93`<!-- /generated:version -->;当前 Workspace;企查查 OAuth 可用;测试账号具有目标企业数据权限 |
11
+ | 前提 | <!-- generated:version -->正式 `dsh-mcp-connector@0.2.95`<!-- /generated:version -->;当前 Workspace;企查查 OAuth 可用;测试账号具有目标企业数据权限 |
12
12
  | 权限/管理员 | 账号权限、组织授权和可见字段由服务商控制;企业组织可能需要管理员开通,当前文档不能替代审批 |
13
13
  | 费用 | 可能受套餐、次数或字段权限影响;MCP连接器无法确认本次费用,调用前在服务商侧核对 |
14
14
  | 运行/数据去向 | 远程 MCP Server;企业名称、查询参数和调用结果经 DSH Host 发送到/返回自 `agent.qcc.com` |
package/lib/client.js CHANGED
@@ -1200,6 +1200,13 @@ window.__ModuleLoader__.load({
1200
1200
  });
1201
1201
  }
1202
1202
 
1203
+ function ConnectorSettingsSection(props) {
1204
+ return (0, react_jsx_runtime.jsx)("ul", {
1205
+ style: { listStyle: "none", margin: 0, padding: 0 },
1206
+ children: (0, react_jsx_runtime.jsx)(ConnectorSettingsCard, props)
1207
+ });
1208
+ }
1209
+
1203
1210
  function installClientSettings(ctx, marketView) {
1204
1211
  if (typeof ctx.inject !== "function") return;
1205
1212
  ctx.inject(["settingsScope"], (settingsCtx) => {
@@ -1225,6 +1232,16 @@ window.__ModuleLoader__.load({
1225
1232
  };
1226
1233
  }, "mcp-connector: sidebar visibility setting");
1227
1234
  settingsCtx.effect(() => installSettingsStyles(), "mcp-connector: settings styles");
1235
+ // Modern hosts may omit the Plugins page entirely. Contribute our own
1236
+ // section without depending on settings.plugin.item or widening tools.
1237
+ settingsCtx.slots.inject("settings.section", () => settingsCtx.slots.register({
1238
+ name: "settings.section",
1239
+ id: CONNECTOR_SETTINGS_NAMESPACE,
1240
+ order: 80,
1241
+ label: t("MCP连接器"),
1242
+ store: marketView,
1243
+ inject: () => ({ settingsScope })
1244
+ }, ConnectorSettingsSection));
1228
1245
  settingsCtx.slots.inject("settings.plugin.item", () => settingsCtx.slots.register({
1229
1246
  name: "settings.plugin.item",
1230
1247
  key: CONNECTOR_SETTINGS_NAMESPACE,
@@ -1,11 +1,15 @@
1
1
  // Pure scheduling policy. No credentials, timers or network operations.
2
2
  export function nextDiscovery(previous, outcome, now = Date.now()) {
3
+ const startupStartedAt = previous?.startupStartedAt ?? now;
4
+ if (outcome.pending && outcome.managed && outcome.diagnosticCode === 'host-tools-pending' && now - startupStartedAt < 60_000) {
5
+ return { failures: 0, nextAt: now + 5_000, reason: 'startup-pending', startupStartedAt };
6
+ }
3
7
  const failures = outcome.ok ? 0 : Math.min((previous?.failures || 0) + 1, 10);
4
8
  if (outcome.errorKind === 'auth') return { failures, nextAt: null, reason: 'auth' };
5
9
  const rateLimited = outcome.errorKind === 'rate-limit';
6
10
  const delay = outcome.ok ? 300_000 : Math.min((rateLimited ? 60_000 : 30_000) * 2 ** (failures - 1), 900_000);
7
11
  const retry = Number.isFinite(outcome.retryAfterMs) ? Math.max(0, outcome.retryAfterMs) : 0;
8
- return { failures, nextAt: now + Math.max(delay, retry), reason: outcome.ok ? 'success' : rateLimited ? 'rate-limit' : 'retry' };
12
+ return { failures, nextAt: now + Math.max(delay, retry), reason: outcome.ok ? 'success' : rateLimited ? 'rate-limit' : 'retry', ...(previous?.startupStartedAt !== undefined ? { startupStartedAt } : {}) };
9
13
  }
10
14
 
11
15
  export function discoveryDue(plan, now = Date.now()) {
@@ -5,6 +5,10 @@
5
5
  * 占位符 `{name}` 必须与 msgid 一致。
6
6
  */
7
7
  export default {
8
+ '下一步:选择同一 connectionKey 下的精确 publicName,调用 preview-activate;不要猜测名称。没有结果时检查连接与工具发现,不要重复空搜索。': 'Next: select exact publicName values under one connectionKey and call preview-activate; do not guess names. If there are no results, check the connection and tool discovery instead of repeating empty searches.',
9
+ '预览不会激活工具。向用户展示以下精确工具并等待明确确认;只有确认后才能把 confirmed 改为 true。不要重复预览或把预览成功当作用户确认。': 'Preview does not activate tools. Show these exact tools to the user and wait for explicit confirmation; only then change confirmed to true. Do not repeat previews or treat a successful preview as user confirmation.',
10
+ '激活已完成,不要再次 search、preview-activate 或 activate。下一次推理使用返回的精确工具;若仍不可见,读取一次 status 后报告问题,不要循环激活。': 'Activation is complete. Do not repeat search, preview-activate or activate. Use the returned exact tools on the next inference; if still unavailable, read status once and report the problem instead of looping.',
11
+ '本次操作失败。先根据错误修正参数或检查 Host;不要原样重复调用,不得绕过用户确认、工作区或治理限制。': 'The operation failed. Correct the parameters or check the Host based on the error; do not repeat the same call or bypass user confirmation, workspace or governance restrictions.',
8
12
  "{count} 条": "{count} entries",
9
13
  " · 需重新授权": " · reauthorization required",
10
14
  ";检查时间:{time}": "; checked at {time}",
package/lib/index.js CHANGED
@@ -2031,6 +2031,7 @@ export async function apply(ctx, config) {
2031
2031
  credentialPlaceholder: d.auth.credentialPlaceholder,
2032
2032
  credentialDescription: d.auth.credentialDescription,
2033
2033
  credentialHelpLabel: d.auth.credentialHelpLabel,
2034
+ credentialHelpUrl: d.auth.credentialHelpUrl,
2034
2035
  credentialFields: d.auth.credentialFields ?? [],
2035
2036
  prompts: d.prompts ?? [],
2036
2037
  probeStatus: d.probeStatus,
@@ -3282,7 +3283,7 @@ export async function apply(ctx, config) {
3282
3283
  serverKey: record.serverKey || record.name, serverName: record.serverName,
3283
3284
  ok: current?.ok === true, cached: Boolean(cached),
3284
3285
  unknown: !current || current.unknown === true,
3285
- pending: !current && !cached,
3286
+ pending: current?.pending === true || (!current && !cached),
3286
3287
  error: current?.error || (!cached && !current ? t('正在后台发现工具,请稍候') : undefined),
3287
3288
  policy: serverPolicy(record),
3288
3289
  ...(cached ? { cacheObservedAt: cached.observedAt, cacheAgeMs: cached.cacheAgeMs, stale: cached.stale } : {}),
@@ -3340,6 +3341,9 @@ export async function apply(ctx, config) {
3340
3341
  const diagnosticCode = registered.error
3341
3342
  ? 'host-status-error'
3342
3343
  : registered.supported ? 'host-tools-pending' : 'host-status-unavailable';
3344
+ const prior = discoveryPlans.get(record.key);
3345
+ const startupPending = liveTools.length === 0 && !cached && registered.supported && !registered.error
3346
+ && (prior?.record !== record || !prior.startupStartedAt || Date.now() - prior.startupStartedAt < 60_000);
3343
3347
  servers.push({
3344
3348
  serverKey: record.serverKey || record.name,
3345
3349
  serverName: record.serverName,
@@ -3350,6 +3354,7 @@ export async function apply(ctx, config) {
3350
3354
  preview: liveTools.length === 0 && !cachedFallback && Boolean(snapshot),
3351
3355
  unknown: liveTools.length === 0,
3352
3356
  diagnosticCode,
3357
+ pending: startupPending,
3353
3358
  policy: serverPolicy(record),
3354
3359
  tools: displayTools.map((tool) => decorateToolPolicy(record, {
3355
3360
  name: tool.name,
@@ -3365,7 +3370,7 @@ export async function apply(ctx, config) {
3365
3370
  } : {}),
3366
3371
  ...(liveTools.length === 0 ? {
3367
3372
  errorKind: registered.supported ? 'startup' : 'host-version',
3368
- error: registered.supported
3373
+ error: startupPending ? t('正在后台发现工具,请稍候') : registered.supported
3369
3374
  ? t('Host 尚未注册该 stdio Server 的工具,请检查启动日志后重试')
3370
3375
  : t('当前 DSH Host 不支持读取工具注册状态,请升级 Host 后重试'),
3371
3376
  } : {}),
@@ -3677,8 +3682,8 @@ export async function apply(ctx, config) {
3677
3682
  const observableApi = observeStatusEvents(discoveryApi, statusEvents);
3678
3683
  scheduleDiscovery();
3679
3684
  const discoveryInterval = setInterval(() => {
3680
- if (statusEvents.clients.size > 0) scheduleDiscovery();
3681
- }, 30_000);
3685
+ if (statusEvents.clients.size > 0 || [...discoveryPlans.values()].some((plan) => plan.reason === 'startup-pending')) scheduleDiscovery();
3686
+ }, 5_000);
3682
3687
  discoveryInterval.unref?.();
3683
3688
  const disposeTools = registerTools(ctx, observableApi, { compact: config.compactManagementTools === true, t });
3684
3689
 
package/lib/schema.js CHANGED
@@ -109,6 +109,7 @@ export const connectorDescriptorSchema = z.object({
109
109
  credentialPlaceholder: z.string().optional(),
110
110
  credentialDescription: z.string().optional(),
111
111
  credentialHelpLabel: z.string().optional(),
112
+ credentialHelpUrl: z.union([z.literal(''), z.string().url().refine((url) => url.startsWith('https://'), 'HTTPS required')]).optional(),
112
113
  credentialFields: z.array(credentialFieldSchema).optional(),
113
114
  })
114
115
  .optional(),
@@ -348,6 +349,7 @@ export function normalizeConnectorDescriptor(raw, { t = tZh } = {}) {
348
349
  credentialPlaceholder: c.auth?.credentialPlaceholder ?? '',
349
350
  credentialDescription: c.auth?.credentialDescription ?? '',
350
351
  credentialHelpLabel: c.auth?.credentialHelpLabel ?? '',
352
+ credentialHelpUrl: c.auth?.credentialHelpUrl ?? '',
351
353
  credentialFields,
352
354
  },
353
355
  servers,
package/lib/tools.js CHANGED
@@ -138,6 +138,22 @@ const sessionToolsOutput = (t) => ({
138
138
  for (const item of value.detail?.active ?? value.detail?.session?.active ?? []) {
139
139
  lines.push(`- ${t('已激活 {name} · 到期 {time}', { name: item.publicName, time: new Date(item.expiresAt).toISOString() })}`);
140
140
  }
141
+ if (value.ok && args.action === 'search') {
142
+ lines.push(t('下一步:选择同一 connectionKey 下的精确 publicName,调用 preview-activate;不要猜测名称。没有结果时检查连接与工具发现,不要重复空搜索。'));
143
+ }
144
+ if (value.ok && args.action === 'preview-activate' && Number.isInteger(value.detail?.baseRevision)) {
145
+ const plan = value.detail;
146
+ lines.push(t('预览不会激活工具。向用户展示以下精确工具并等待明确确认;只有确认后才能把 confirmed 改为 true。不要重复预览或把预览成功当作用户确认。'));
147
+ lines.push(JSON.stringify({ action: 'activate', connectionKey: plan.connectionKey,
148
+ publicNames: plan.publicNames, ttlMinutes: plan.ttlMinutes,
149
+ expectedRevision: plan.baseRevision, confirmed: false }));
150
+ }
151
+ if (value.ok && args.action === 'activate') {
152
+ lines.push(t('激活已完成,不要再次 search、preview-activate 或 activate。下一次推理使用返回的精确工具;若仍不可见,读取一次 status 后报告问题,不要循环激活。'));
153
+ for (const name of value.detail?.activated ?? []) lines.push(`- ${name}`);
154
+ }
155
+ if (Number.isInteger(value.detail?.revision)) lines.push(`revision=${value.detail.revision}`);
156
+ if (!value.ok) lines.push(t('本次操作失败。先根据错误修正参数或检查 Host;不要原样重复调用,不得绕过用户确认、工作区或治理限制。'));
141
157
  if (value.detail?.nextInferenceBoundary) lines.push(t('可见性从下一次模型推理边界生效。'));
142
158
  return [{ type: 'text', text: lines.join('\n') }];
143
159
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mcp-connector",
3
- "version": "0.2.93",
3
+ "version": "0.2.95",
4
4
  "description": "MCP Connector for DeepSeek Harness: a data marketplace connecting enterprise, financial, legal, patent and research data. Manage authorization, search tools and troubleshoot MCP connections. Supports OAuth, API keys and HTTP/stdio.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -89,6 +89,7 @@
89
89
  "credentialPlaceholder": "",
90
90
  "credentialDescription": "",
91
91
  "credentialHelpLabel": "",
92
+ "credentialHelpUrl": "",
92
93
  "credentialFields": []
93
94
  },
94
95
  "servers": [
@@ -183,6 +184,7 @@
183
184
  "credentialPlaceholder": "请输入您的北大法宝 Access Token",
184
185
  "credentialDescription": "用于访问北大法宝 MCP;仅保存在 DSH 本机。",
185
186
  "credentialHelpLabel": "如何获取北大法宝 Token?",
187
+ "credentialHelpUrl": "",
186
188
  "credentialFields": [
187
189
  {
188
190
  "key": "credential",
@@ -326,6 +328,7 @@
326
328
  "credentialPlaceholder": "请输入您的个人 Wind API Key",
327
329
  "credentialDescription": "用于访问 Wind MCP 的个人访问令牌;仅保存在 DSH 本机。",
328
330
  "credentialHelpLabel": "如何获取 Wind API Key?",
331
+ "credentialHelpUrl": "",
329
332
  "credentialFields": [
330
333
  {
331
334
  "key": "credential",
@@ -37,6 +37,7 @@
37
37
  "credentialPlaceholder": { "type": "string" },
38
38
  "credentialDescription": { "type": "string" },
39
39
  "credentialHelpLabel": { "type": "string" },
40
+ "credentialHelpUrl": { "type": "string", "format": "uri", "pattern": "^https://" },
40
41
  "credentialFields": {
41
42
  "type": "array",
42
43
  "items": { "$ref": "#/$defs/credentialField" }
package/ui/index.html CHANGED
@@ -630,6 +630,7 @@
630
630
  // 的扁平映射(与 lib/i18n/locales/en/*.js 同一约定)。缺项回退中文原文,绝不空白。
631
631
  // 少量同名中文在不同上下文需要不同英文时,用 LABELS 的 key 单独提供词条。
632
632
  MESSAGES.en = {
633
+ "如何获取 TuShare Token": "How to get a TuShare Token",
633
634
  "connect": "Connect",
634
635
  "切换界面语言": "Change interface language",
635
636
  "切换语言将重新加载面板,未保存的编辑会丢失。继续吗?": "Changing the language reloads this panel and discards unsaved edits. Continue?",
@@ -2473,11 +2474,12 @@
2473
2474
  const authMode = preset.authMode === 'api-key' ? 'api-key' : 'bearer';
2474
2475
  const servers = preset.servers || [];
2475
2476
  const usesStdio = servers.some((server) => server.transport === 'stdio');
2476
- const homepage = /^https:\/\//i.test(preset.homepage || '') ? preset.homepage : '';
2477
+ const helpUrl = preset.credentialHelpUrl || preset.homepage;
2478
+ const homepage = /^https:\/\//i.test(helpUrl || '') ? helpUrl : '';
2477
2479
  const credentialName = preset.credentialName || (authMode === 'bearer' ? 'Bearer Token' : 'API Key');
2478
2480
  const credentialPlaceholder = preset.credentialPlaceholder || t('仅保存在 DSH 本机');
2479
2481
  const credentialDescription = preset.credentialDescription || t('凭据仅保存在 DSH 本机,不会写入市场目录或对话。');
2480
- const credentialHelpLabel = preset.credentialHelpLabel || t('前往 {vendor} 官网获取', { vendor: preset.vendor || preset.name });
2482
+ const credentialHelpLabel = preset.credentialHelpLabel ? t(preset.credentialHelpLabel) : t('前往 {vendor} 官网获取', { vendor: preset.vendor || preset.name });
2481
2483
  const declaredFields = preset.credentialFields?.length ? preset.credentialFields : [{
2482
2484
  key: 'credential', label: credentialName, placeholder: credentialPlaceholder,
2483
2485
  description: credentialDescription, required: true, secret: true,