dsh-mcp 1.12.1 → 1.13.0
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.en.md +15 -2
- package/CHANGELOG.md +14 -1
- package/README.en.md +48 -18
- package/README.md +41 -15
- package/cordis.patch.yml +15 -0
- package/package.json +6 -1
package/CHANGELOG.en.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
**[简体中文](CHANGELOG.
|
|
3
|
+
**[简体中文](CHANGELOG.md) | English**
|
|
4
4
|
|
|
5
5
|
All notable changes to this project are documented in this file.
|
|
6
6
|
|
|
@@ -9,9 +9,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
## Compatibility
|
|
11
11
|
|
|
12
|
-
- **Supported DSH version**: **dsh `0.1.6-alpha.2`** — developed and verified on `0.1.6-alpha.2` (declared in `package.json` → `dsh.supported`). When the DSH and plugin versions do not match, the Settings page reports a diagnosis (check the
|
|
12
|
+
- **Supported DSH version**: **dsh `0.1.6-alpha.2`** — developed and verified on `0.1.6-alpha.2` (declared in `package.json` → `dsh.supported`). When the DSH and plugin versions do not match, the Settings page reports a diagnosis (check whether the bundle is selected → restart `dsh web` → hard-refresh → upgrade both sides).
|
|
13
13
|
- **Release convention**: every version entry states `- **Supported DSH version**: dsh <version>`, mirrored in the GitHub Release notes. The release body is written in **Chinese** (matching [CHANGELOG.md](CHANGELOG.md)), with heading levels mirroring the entry.
|
|
14
14
|
|
|
15
|
+
## [1.13.0] - 2026-10-08
|
|
16
|
+
|
|
17
|
+
- **Supported DSH version**: **dsh `0.1.6-alpha.2`**
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- **The package declares `dsh.bundle`, so it now installs and enables as a bundle**: it declared none before, and the DSH Web plugin manager refused the install at the `not-a-bundle` branch of `plugin-manager.inspect()` — `dsh-mcp declares no dsh.bundle` (both registry and local-path sources are refused), while `dsh plugin add` merely installed the package as a plain profile dependency that still needed a hand-written `- insert: [{ id: dsh-mcp, name: dsh-mcp }]` row to take effect. `package.json` now declares `dsh.bundle.patch` → the package-root `cordis.patch.yml`: installing writes `dsh-mcp` into `dsh.profile.bundles` and that patch inserts the plugin row. `cordis.patch.yml` was added to `files` so it ships in the tarball
|
|
22
|
+
- **The registration row moved into the package; the user patch layers only override config**: `$DSH_HOME/profiles/<profile>/cordis.patch.yml` (profile layer) and `$DSH_HOME/cordis.patch.yml` (machine layer) no longer insert the same id — they use an id-targeted entry to override `config` (`probeTimeoutMs` / `allowBrowserOnMount`), because one row id declared by two layers makes the loader fail to compose. Both READMEs' install, registration and troubleshooting sections were rewritten accordingly, and now state that the in-package bundle patch and the profile patch used for declared servers are two different files
|
|
23
|
+
|
|
24
|
+
### Notes
|
|
25
|
+
|
|
26
|
+
- Added `test/bundle-manifest.test.mjs`: it asserts the manifest declares `dsh.bundle.patch`, that the referenced patch exists and is listed in `files`, and that the patch parses to exactly one inserted row `{ id: dsh-mcp, name: dsh-mcp }` (`js-yaml` parses it; environments without the DSH module closure skip only that subtest)
|
|
27
|
+
|
|
15
28
|
## [1.12.1] - 2026-10-07
|
|
16
29
|
|
|
17
30
|
- **Supported DSH version**: **dsh `0.1.6-alpha.2`**
|
package/CHANGELOG.md
CHANGED
|
@@ -9,9 +9,22 @@
|
|
|
9
9
|
|
|
10
10
|
## 兼容性
|
|
11
11
|
|
|
12
|
-
- **支持版本**:**dsh `0.1.6-alpha.2`** —— 本插件在 `0.1.6-alpha.2` 上开发与验证(`package.json` → `dsh.supported` 同步声明)。DSH 与插件版本不匹配时,设置页会给出排查诊断(核对
|
|
12
|
+
- **支持版本**:**dsh `0.1.6-alpha.2`** —— 本插件在 `0.1.6-alpha.2` 上开发与验证(`package.json` → `dsh.supported` 同步声明)。DSH 与插件版本不匹配时,设置页会给出排查诊断(核对 bundle 是否已选中 → 重启 `dsh web` → 硬刷新 → 同步升级)。
|
|
13
13
|
- **发版约定**:每个版本条目都要声明 `- **支持版本**:dsh <版本>`,并在 GitHub Release notes 中同步。Release 正文用**中文**(与本文档一致),标题层级与条目一致。
|
|
14
14
|
|
|
15
|
+
## [1.13.0] - 2026-10-08
|
|
16
|
+
|
|
17
|
+
- **支持版本**:**dsh `0.1.6-alpha.2`**
|
|
18
|
+
|
|
19
|
+
### 变更
|
|
20
|
+
|
|
21
|
+
- **声明 `dsh.bundle`,插件现在能作为 bundle 安装/启用**:此前包内没有 `dsh.bundle`,DSH Web 的插件管理页在 `plugin-manager.inspect()` 的 `not-a-bundle` 分支直接拒掉安装——报错 `dsh-mcp declares no dsh.bundle`(registry 与本地路径两种来源都拒),`dsh plugin add` 也只把包当作普通依赖装进 profile,必须再手写 `- insert: [{ id: dsh-mcp, name: dsh-mcp }]` 注册行才生效。现在 `package.json` 声明 `dsh.bundle.patch` → 包根 `cordis.patch.yml`:安装时 DSH 自动把 `dsh-mcp` 写入 `dsh.profile.bundles`,并由该 patch insert 插件行;`cordis.patch.yml` 已加入 `files`,随 tarball 发布
|
|
22
|
+
- **注册行移入包内,用户 patch 层只做配置覆盖**:`$DSH_HOME/profiles/<profile>/cordis.patch.yml`(用户层)与 `$DSH_HOME/cordis.patch.yml`(机器层)不再 insert 同一 id,改用 id-targeted 条目覆盖 `config`(`probeTimeoutMs` / `allowBrowserOnMount`)——同一 id 由两层声明会让 loader 组合失败。README 中英的安装、注册与排查章节据此重写,并说明「包内 bundle patch」与「声明式服务器用的 profile patch」是两个文件
|
|
23
|
+
|
|
24
|
+
### 说明
|
|
25
|
+
|
|
26
|
+
- 新增 `test/bundle-manifest.test.mjs`:断言清单声明 `dsh.bundle.patch`、被引用的 patch 文件存在且列入 `files`、patch 解析后恰好 insert 一行 `{ id: dsh-mcp, name: dsh-mcp }`(解析用 `js-yaml`;无 DSH 模块闭包的环境只跳过该子测试)
|
|
27
|
+
|
|
15
28
|
## [1.12.1] - 2026-10-07
|
|
16
29
|
|
|
17
30
|
- **支持版本**:**dsh `0.1.6-alpha.2`**
|
package/README.en.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://dshfind.com/en/plugins/ArvinQi/dsh-mcp?ref=badge)
|
|
4
4
|
|
|
5
|
-
> **Supported DSH version**: `dsh 0.1.6-alpha.2` — developed and verified on `0.1.6-alpha.2`, declared in `package.json` → `dsh.supported`. When the DSH and plugin versions do not match, the Settings page shows a diagnosis (check the
|
|
5
|
+
> **Supported DSH version**: `dsh 0.1.6-alpha.2` — developed and verified on `0.1.6-alpha.2`, declared in `package.json` → `dsh.supported`. When the DSH and plugin versions do not match, the Settings page shows a diagnosis (check whether the bundle is selected → restart `dsh web` → hard-refresh → upgrade both sides).
|
|
6
6
|
|
|
7
7
|

|
|
8
8
|
|
|
@@ -88,7 +88,8 @@ Since 1.11.0 those declarations appear in Settings → MCP, badged "cordis decla
|
|
|
88
88
|
|
|
89
89
|
```
|
|
90
90
|
dsh-mcp/
|
|
91
|
-
├── package.json name=dsh-mcp; dsh.client
|
|
91
|
+
├── package.json name=dsh-mcp; dsh.bundle (auto-registration) and dsh.client declarations; zero npm dependencies
|
|
92
|
+
├── cordis.patch.yml bundle patch: inserts the plugin row (id/name = dsh-mcp) on install
|
|
92
93
|
├── lib/
|
|
93
94
|
│ ├── index.js host half (McpManagerService, built from mcp-manager)
|
|
94
95
|
│ ├── cordis-servers.js reads natively declared MCP servers from the patch layers (1.11.0)
|
|
@@ -132,13 +133,20 @@ npm test
|
|
|
132
133
|
|
|
133
134
|
### 1. Install
|
|
134
135
|
|
|
135
|
-
**Option 1:
|
|
136
|
+
**Option 1: Web UI (recommended)**
|
|
137
|
+
|
|
138
|
+
DSH Web → **Settings → Plugins**, enter the package name `dsh-mcp` (or the absolute path of a local
|
|
139
|
+
directory) → Install. This runs the same pnpm path as `dsh plugin add`; since 1.13.0 the package
|
|
140
|
+
declares `dsh.bundle`, so installing it registers it as a profile bundle layer automatically (see
|
|
141
|
+
section 2) and no hand-written registration row is needed.
|
|
142
|
+
|
|
143
|
+
**Option 2: npm (after publishing)**
|
|
136
144
|
|
|
137
145
|
```sh
|
|
138
146
|
dsh plugin --profile web add dsh-mcp
|
|
139
147
|
```
|
|
140
148
|
|
|
141
|
-
**Option
|
|
149
|
+
**Option 3: GitHub git source**
|
|
142
150
|
|
|
143
151
|
```sh
|
|
144
152
|
dsh plugin --profile web add github:ArvinQi/dsh-mcp
|
|
@@ -146,7 +154,7 @@ dsh plugin --profile web add github:ArvinQi/dsh-mcp
|
|
|
146
154
|
dsh plugin --profile web add git+https://github.com/ArvinQi/dsh-mcp.git
|
|
147
155
|
```
|
|
148
156
|
|
|
149
|
-
**Option
|
|
157
|
+
**Option 4: local development (link)**
|
|
150
158
|
|
|
151
159
|
```sh
|
|
152
160
|
dsh plugin --profile web add link:<absolute path to this repo>
|
|
@@ -158,17 +166,37 @@ dsh plugin --profile web add link:<absolute path to this repo>
|
|
|
158
166
|
|
|
159
167
|
### 2. Registration (all install options)
|
|
160
168
|
|
|
161
|
-
|
|
169
|
+
**Since 1.13.0 registration is automatic.** The package manifest declares `dsh.bundle.patch`,
|
|
170
|
+
pointing at the shipped `<package dir>/cordis.patch.yml`. On install, DSH writes the package name
|
|
171
|
+
into `dsh.profile.bundles` in `$DSH_HOME/profiles/<profile>/package.json`, and that patch then
|
|
172
|
+
inserts the plugin row (one row provides both the host manager and the client settings page):
|
|
162
173
|
|
|
163
174
|
```yaml
|
|
175
|
+
# <package dir>/cordis.patch.yml — ships with the package, applies once the bundle is selected
|
|
164
176
|
- insert:
|
|
165
177
|
- id: dsh-mcp
|
|
166
178
|
name: dsh-mcp
|
|
167
179
|
```
|
|
168
180
|
|
|
169
|
-
> ⚠️
|
|
170
|
-
>
|
|
171
|
-
>
|
|
181
|
+
> ⚠️ Do not insert the same row again in your own `$DSH_HOME/profiles/<profile>/cordis.patch.yml`
|
|
182
|
+
> (or the machine-wide `$DSH_HOME/cordis.patch.yml`): one row id declared by two layers makes the
|
|
183
|
+
> loader fail to compose. Those two files are the **user patch layer**, distinct from the bundle
|
|
184
|
+
> patch that ships inside the package.
|
|
185
|
+
|
|
186
|
+
To override configuration, use an **id-targeted** entry (the user patch layer applies after every
|
|
187
|
+
bundle layer, and it replaces the whole `config`, so keys you omit fall back to the `Config`
|
|
188
|
+
defaults):
|
|
189
|
+
|
|
190
|
+
```yaml
|
|
191
|
+
- id: dsh-mcp
|
|
192
|
+
config:
|
|
193
|
+
allowBrowserOnMount: true
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
> Upgrading a profile from an older release (<1.13.0): replace that
|
|
197
|
+
> `- insert: [{ id: dsh-mcp, name: dsh-mcp }]` block with the id-targeted override above, and get
|
|
198
|
+
> `dsh-mcp` into `dsh.profile.bundles` (enable it in the Web Plugins page once `dsh-mcp` shows as
|
|
199
|
+
> installed, or add the name to that array directly).
|
|
172
200
|
|
|
173
201
|
Then **restart `dsh web`** and **hard-refresh the browser** (`Cmd/Ctrl + Shift + R`):
|
|
174
202
|
|
|
@@ -188,17 +216,19 @@ Then **restart `dsh web`** and **hard-refresh the browser** (`Cmd/Ctrl + Shift +
|
|
|
188
216
|
|
|
189
217
|
Check in order:
|
|
190
218
|
|
|
191
|
-
1. **Is the plugin registered?**
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
the
|
|
219
|
+
1. **Is the plugin row registered?** `dsh.profile.bundles` in
|
|
220
|
+
`$DSH_HOME/profiles/web/package.json` should contain `dsh-mcp` (the Web Plugins page should show
|
|
221
|
+
`dsh-mcp` as installed and enabled). Since 1.13.0 the install writes this automatically; for a
|
|
222
|
+
profile migrated from an older release, follow section 2 — convert the old manual insert into an
|
|
223
|
+
id-targeted override and select the package into `bundles`. **One row id declared by two layers
|
|
224
|
+
does not take effect.**
|
|
195
225
|
2. **Did you restart `dsh web`?** Refreshing the browser is not enough — the settings entry comes
|
|
196
226
|
from the client roster, and roster changes require **restarting the process**.
|
|
197
227
|
3. **Did you hard-refresh the browser?** After the restart use `Cmd/Ctrl + Shift + R`
|
|
198
228
|
(Windows/Linux: `Ctrl + Shift + R`); a plain `F5` may load a cached old page.
|
|
199
229
|
4. **Is it installed in the right profile?** Make sure both the install and the registration use
|
|
200
|
-
the `web` profile (`dsh plugin --profile web add dsh-mcp` +
|
|
201
|
-
|
|
230
|
+
the `web` profile (`dsh plugin --profile web add dsh-mcp` + that profile's
|
|
231
|
+
`dsh.profile.bundles`); other profiles have their own settings pages.
|
|
202
232
|
5. **Is it the latest version?** npm metadata caching can pin an old version; force the version
|
|
203
233
|
with `dsh plugin --profile web add dsh-mcp@latest` (or `@1.8.0`).
|
|
204
234
|
|
|
@@ -209,9 +239,9 @@ Check in order:
|
|
|
209
239
|
mix with the new host (typical symptom: `client api: ... 404` or `env is not iterable` — both
|
|
210
240
|
come from mixing versions);
|
|
211
241
|
- An error shaped like `transport failure for /api/mcpManager/list: HTTP 404` means the host did
|
|
212
|
-
not register the `mcpManager` service: usually the plugin host half is not active (
|
|
213
|
-
|
|
214
|
-
|
|
242
|
+
not register the `mcpManager` service: usually the plugin host half is not active (the bundle is
|
|
243
|
+
not selected in `dsh.profile.bundles`, or the wrong profile was installed) or the client and host
|
|
244
|
+
versions disagree. Verify `bundles` and the install location per Q1, restart, and
|
|
215
245
|
hard-refresh; if it persists, upgrade both `dsh web` and the plugin to the latest versions.
|
|
216
246
|
|
|
217
247
|
**Q3: MCP tools do not show up in an agent session?**
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://dshfind.com/zh/plugins/ArvinQi/dsh-mcp?ref=badge)
|
|
6
6
|
|
|
7
|
-
> **支持版本**:`dsh 0.1.6-alpha.2` —— 本插件在 `0.1.6-alpha.2` 上开发与验证,`package.json` → `dsh.supported` 同步声明。DSH
|
|
7
|
+
> **支持版本**:`dsh 0.1.6-alpha.2` —— 本插件在 `0.1.6-alpha.2` 上开发与验证,`package.json` → `dsh.supported` 同步声明。DSH 与插件两侧版本不匹配时,设置页会给出排查诊断(检查 bundle 是否已选中 → 重启 `dsh web` → 硬刷新 → 同步升级)。
|
|
8
8
|
|
|
9
9
|

|
|
10
10
|
|
|
@@ -94,7 +94,8 @@ DSH 原生支持在组合里直接声明 MCP 服务器:**一行一台**,`nam
|
|
|
94
94
|
|
|
95
95
|
```
|
|
96
96
|
dsh-mcp/
|
|
97
|
-
├── package.json name=dsh-mcp;dsh.client 声明;零 npm dependencies
|
|
97
|
+
├── package.json name=dsh-mcp;dsh.bundle(自动注册)与 dsh.client 声明;零 npm dependencies
|
|
98
|
+
├── cordis.patch.yml bundle patch:安装后自动 insert 插件行(id/name = dsh-mcp)
|
|
98
99
|
├── lib/
|
|
99
100
|
│ ├── index.js host 半部(McpManagerService,源自 mcp-manager 构建产物)
|
|
100
101
|
│ ├── cordis-servers.js 读取 patch 层原生声明的 MCP 服务器(1.11.0)
|
|
@@ -137,13 +138,19 @@ npm test
|
|
|
137
138
|
|
|
138
139
|
### 1. 安装
|
|
139
140
|
|
|
140
|
-
**方式一:
|
|
141
|
+
**方式一:Web 界面(推荐)**
|
|
142
|
+
|
|
143
|
+
DSH Web → **设置 → 插件**,填入包名 `dsh-mcp`(或本地目录的绝对路径)→ 安装。走的是与
|
|
144
|
+
`dsh plugin add` 相同的 pnpm 路径;1.13.0 起包内声明了 `dsh.bundle`,安装即自动注册为
|
|
145
|
+
profile 的 bundle 层(见第 2 节),不再需要手写注册行。
|
|
146
|
+
|
|
147
|
+
**方式二:npm(发布到 npm 后)**
|
|
141
148
|
|
|
142
149
|
```sh
|
|
143
150
|
dsh plugin --profile web add dsh-mcp
|
|
144
151
|
```
|
|
145
152
|
|
|
146
|
-
|
|
153
|
+
**方式三:GitHub git 源**
|
|
147
154
|
|
|
148
155
|
```sh
|
|
149
156
|
dsh plugin --profile web add github:ArvinQi/dsh-mcp
|
|
@@ -151,7 +158,7 @@ dsh plugin --profile web add github:ArvinQi/dsh-mcp
|
|
|
151
158
|
dsh plugin --profile web add git+https://github.com/ArvinQi/dsh-mcp.git
|
|
152
159
|
```
|
|
153
160
|
|
|
154
|
-
|
|
161
|
+
**方式四:本地开发(link)**
|
|
155
162
|
|
|
156
163
|
```sh
|
|
157
164
|
dsh plugin --profile web add link:<本仓库绝对路径>
|
|
@@ -161,18 +168,36 @@ dsh plugin --profile web add link:<本仓库绝对路径>
|
|
|
161
168
|
> symlink(本机开发用,不入库),否则 `link:` 安装的 symlink 被 realpath 后无法解析
|
|
162
169
|
> `@deepseek-ai/*`。
|
|
163
170
|
|
|
164
|
-
### 2.
|
|
171
|
+
### 2. 注册与生效(四种方式通用)
|
|
165
172
|
|
|
166
|
-
|
|
173
|
+
**1.13.0 起自动注册,无需手写注册行**。包内 `package.json` 声明了 `dsh.bundle.patch`,指向随包
|
|
174
|
+
发布的 `<包目录>/cordis.patch.yml`。DSH 在安装时会把包名写入
|
|
175
|
+
`$DSH_HOME/profiles/<profile>/package.json` 的 `dsh.profile.bundles`,该 patch 随即自动 insert
|
|
176
|
+
插件行(host 管理器与 client 设置页由同一行提供):
|
|
167
177
|
|
|
168
178
|
```yaml
|
|
179
|
+
# <包目录>/cordis.patch.yml —— 随包发布,bundle 被选中后自动生效
|
|
169
180
|
- insert:
|
|
170
181
|
- id: dsh-mcp
|
|
171
182
|
name: dsh-mcp
|
|
172
183
|
```
|
|
173
184
|
|
|
174
|
-
> ⚠️
|
|
175
|
-
>
|
|
185
|
+
> ⚠️ 不要在自己的 `$DSH_HOME/profiles/<profile>/cordis.patch.yml`(或机器级
|
|
186
|
+
> `$DSH_HOME/cordis.patch.yml`)里再 insert 同一行:同一 id 由两层声明会让 loader 组合失败。
|
|
187
|
+
> 这两个文件是**用户 patch 层**,和包内随包发布的 bundle patch 是两回事。
|
|
188
|
+
|
|
189
|
+
需要覆盖配置时用 **id-targeted** 条目(用户 patch 层在所有 bundle 层之后应用,且会替换整份
|
|
190
|
+
`config`,未列出的键回落到 `Config` 默认值):
|
|
191
|
+
|
|
192
|
+
```yaml
|
|
193
|
+
- id: dsh-mcp
|
|
194
|
+
config:
|
|
195
|
+
allowBrowserOnMount: true
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
> 从旧版(<1.13.0)升级的 profile:把原来那段 `- insert: [{ id: dsh-mcp, name: dsh-mcp }]`
|
|
199
|
+
> 换成上面的 id-targeted 覆盖,并让 `dsh-mcp` 进入 `dsh.profile.bundles`(Web 插件页把
|
|
200
|
+
> `dsh-mcp` 显示为「已安装」后启用,或直接加进该数组)。
|
|
176
201
|
|
|
177
202
|
然后**重启 `dsh web`**,并**硬刷新浏览器**(`Cmd/Ctrl + Shift + R`):
|
|
178
203
|
|
|
@@ -190,15 +215,16 @@ dsh plugin --profile web add link:<本仓库绝对路径>
|
|
|
190
215
|
|
|
191
216
|
按顺序检查:
|
|
192
217
|
|
|
193
|
-
1.
|
|
194
|
-
|
|
195
|
-
|
|
218
|
+
1. **插件行是否已注册**:`$DSH_HOME/profiles/web/package.json` 的 `dsh.profile.bundles` 应含
|
|
219
|
+
`dsh-mcp`(Web 插件页里 `dsh-mcp` 应显示为「已安装 + 已启用」)。1.13.0 起安装自动写入;
|
|
220
|
+
旧版手工 insert 的 profile 按第 2 节改成 id-targeted 覆盖并把包选入 bundles——同一 id 由两层
|
|
221
|
+
声明不会生效。
|
|
196
222
|
2. **是否重启了 `dsh web`**:仅刷新浏览器不够——设置页入口来自 client roster,
|
|
197
223
|
插件集变更必须**重启进程**才进入 roster。
|
|
198
224
|
3. **是否硬刷新了浏览器**:重启后用 `Cmd/Ctrl + Shift + R`(Windows/Linux:`Ctrl + Shift + R`)
|
|
199
225
|
强制刷新;普通 `F5` 可能加载缓存的旧页面。
|
|
200
226
|
4. **是否装到了正确的 profile**:确认安装与注册都在 `web` profile
|
|
201
|
-
(`dsh plugin --profile web add dsh-mcp` +
|
|
227
|
+
(`dsh plugin --profile web add dsh-mcp` + 该 profile 的 `dsh.profile.bundles`);
|
|
202
228
|
装到其他 profile 则在其他 profile 的设置页查看。
|
|
203
229
|
5. **是否为最新版本**:npm 元数据缓存可能导致装到旧版,可强制指定版本
|
|
204
230
|
`dsh plugin --profile web add dsh-mcp@latest`(或 `@1.8.0`)。
|
|
@@ -209,8 +235,8 @@ dsh plugin --profile web add link:<本仓库绝对路径>
|
|
|
209
235
|
- 若升级过插件,请重启后**硬刷新**,避免旧 client bundle 与新版 host 不匹配
|
|
210
236
|
(典型现象:操作报 `client api: ... 404` 或 `env is not iterable`,都是新旧版本混用所致);
|
|
211
237
|
- 报错形如 `transport failure for /api/mcpManager/list: HTTP 404` 表示宿主端没有注册
|
|
212
|
-
`mcpManager` 服务:多半是插件 host
|
|
213
|
-
client 与 host 版本不一致。请按 Q1
|
|
238
|
+
`mcpManager` 服务:多半是插件 host 半未生效(bundle 未被选入 `dsh.profile.bundles`,或装错
|
|
239
|
+
profile)或 client 与 host 版本不一致。请按 Q1 核对 bundles 与安装位置、重启后硬刷新;
|
|
214
240
|
仍不行则把 `dsh web` 与插件版本都升到最新再试。
|
|
215
241
|
|
|
216
242
|
**Q3:MCP 工具没有出现在 agent 会话里?**
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# dsh-mcp bundle patch: the single row that provides the MCP manager.
|
|
2
|
+
#
|
|
3
|
+
# The row's package carries both halves, so one row is enough:
|
|
4
|
+
# - host: McpManagerService (persisted server definitions, runtime mounts of
|
|
5
|
+
# @deepseek-ai/dsh-mcp-client, credential injection, connection probes)
|
|
6
|
+
# - client: the Settings → MCP page, mounted through this package's `dsh.client`
|
|
7
|
+
# declaration (scanned by client-modules while the row is active)
|
|
8
|
+
#
|
|
9
|
+
# The row keeps the Config schema defaults (probeTimeoutMs 15000,
|
|
10
|
+
# allowBrowserOnMount true). A profile overrides them with an id-targeted entry
|
|
11
|
+
# in its own cordis.patch.yml, applied after every bundle layer; do not insert a
|
|
12
|
+
# second row with this id.
|
|
13
|
+
- insert:
|
|
14
|
+
- id: dsh-mcp
|
|
15
|
+
name: dsh-mcp
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "MCP 管理界面 + tool search:可视化配置/启停/刷新 MCP 服务器与工具勾选,按需检索(tool search)热注入;工具列表稳定命中缓存、不撑爆上下文。DeepSeek Harness plugin: MCP management UI + tool search — stable tool list, cache-friendly, no context bloat.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./lib/index.js",
|
|
9
9
|
"./client": "./lib/client.js",
|
|
10
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
10
11
|
"./package.json": "./package.json"
|
|
11
12
|
},
|
|
12
13
|
"files": [
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
"src",
|
|
15
16
|
"scripts",
|
|
16
17
|
"static",
|
|
18
|
+
"cordis.patch.yml",
|
|
17
19
|
"README.md",
|
|
18
20
|
"README.en.md",
|
|
19
21
|
"CHANGELOG.md",
|
|
@@ -40,6 +42,9 @@
|
|
|
40
42
|
},
|
|
41
43
|
"dsh": {
|
|
42
44
|
"supported": "0.1.6-alpha.2",
|
|
45
|
+
"bundle": {
|
|
46
|
+
"patch": "./cordis.patch.yml"
|
|
47
|
+
},
|
|
43
48
|
"client": {
|
|
44
49
|
"inject": [
|
|
45
50
|
"@deepseek-ai/dsh-api-remotes",
|