@oh-agent/dsh-mcp-manager 0.1.0 → 0.1.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/README.md +61 -5
- package/README.zh.md +18 -6
- package/lib/probe.js +6 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# @oh-agent/dsh-mcp-manager
|
|
2
2
|
|
|
3
|
+
[English](#english) · 中文
|
|
4
|
+
|
|
5
|
+
一个设置页,管理散落在本机各个 AI 开发工具里的 MCP 服务器。
|
|
6
|
+
|
|
7
|
+
同一个 MCP 服务器,在 Claude Code 里写在 `~/.claude.json`,在 Cursor 里写在
|
|
8
|
+
`~/.cursor/mcp.json`,在 VS Code 里叫 `servers` 而不是 `mcpServers`,在 OpenCode 里
|
|
9
|
+
`command` 又变成了数组。这个插件把 18 个工具各自的配置文件读出来,按「文件」分组展示 ——
|
|
10
|
+
每个配置文件一张卡片,点开看它声明了哪些服务器、每个服务器用什么启动命令、哪些字段带着明文令牌。
|
|
11
|
+
每个服务器给一个开关,把它挂进 DeepSeek Harness;再给一次真连探活,看它到底能不能启动、
|
|
12
|
+
手里有哪些工具。
|
|
13
|
+
|
|
14
|
+
**开关只作用于 DeepSeek Harness,不改动任何其他工具的配置文件。** 这是整个插件最重要的一条约束。
|
|
15
|
+
|
|
16
|
+
入口:DeepSeek Harness → **设置 → MCP**(位于「技能管理」和「插件市场」之间)。
|
|
17
|
+
|
|
18
|
+
## 安装
|
|
19
|
+
|
|
20
|
+
**方式一:插件管理页**(推荐)
|
|
21
|
+
|
|
22
|
+
设置 → 插件管理 → 安装,搜索 `@oh-agent/dsh-mcp-manager`。
|
|
23
|
+
|
|
24
|
+
**方式二:让 agent 安装**
|
|
25
|
+
|
|
26
|
+
直接对 agent 说「安装 @oh-agent/dsh-mcp-manager」,它等价于:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
plugin_manager action: install_bundle target: "@oh-agent/dsh-mcp-manager@0.1.1"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`target` 也可以填一个绝对目录 —— 本地源码目录,或者
|
|
33
|
+
[v0.1.1 release](https://github.com/wangbobo-coder/dsh-mcp-manager/releases) 里附的
|
|
34
|
+
`dsh-mcp-manager.tgz` 解出来的目录。
|
|
35
|
+
|
|
36
|
+
**不要**手动 `pnpm add` 进 profile,也不要手改 profile 的 `package.json` 或
|
|
37
|
+
`cordis.patch.yml`:装了包不等于选中了它的 bundle,手动装的后果是那一行存在但永远不会被挂载。
|
|
38
|
+
|
|
39
|
+
安装后增加一个设置页和一个 agent 工具(`mcp_manage`)。它没有任何运行时依赖,不需要构建,
|
|
40
|
+
也没有 `allowBuilds` 授权步骤。要求 Node `^22.19.0 || >=24.0.0`(DeepSeek Harness 自带
|
|
41
|
+
Node 24,无需另装)。
|
|
42
|
+
|
|
43
|
+
页面会读取其他工具的配置文件,但**开关不需要对它们有写权限**。所有数据都不离开本机 ——
|
|
44
|
+
唯一的对外流量是你主动点的那次探活,且只发往你点的那一个服务器。
|
|
45
|
+
|
|
46
|
+
完整中文文档(支持的工具清单、方言差异、安全模型、已知限制)见
|
|
47
|
+
[README.zh.md](README.zh.md)。
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## English
|
|
52
|
+
|
|
3
53
|
Management page for the MCP servers scattered across every local AI development
|
|
4
54
|
tool — one card per configuration file showing what it declares, one switch per
|
|
5
55
|
server that mounts it in DeepSeek Harness, and one probe of what actually
|
|
@@ -10,11 +60,16 @@ Market).
|
|
|
10
60
|
|
|
11
61
|
## Install
|
|
12
62
|
|
|
13
|
-
Install the bundle from the **Plugin Manager** page in Settings
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
63
|
+
Install the bundle from the **Plugin Manager** page in Settings, or point
|
|
64
|
+
`plugin_manager` at the npm package:
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
plugin_manager action: install_bundle target: "@oh-agent/dsh-mcp-manager@0.1.1"
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
An absolute directory works as `target` too, which is how you install a local
|
|
71
|
+
checkout or the `dsh-mcp-manager.tgz` attached to the
|
|
72
|
+
[v0.1.1 release](https://github.com/wangbobo-coder/dsh-mcp-manager/releases).
|
|
18
73
|
|
|
19
74
|
Do not `pnpm add` the package into the profile by hand, and do not edit the
|
|
20
75
|
profile's `package.json` or `cordis.patch.yml`: installing a package is not the
|
|
@@ -350,3 +405,4 @@ node scripts/test-locale.mjs en/zh key parity
|
|
|
350
405
|
- **The MCP registry is not consulted.** `registry.modelcontextprotocol.io` is
|
|
351
406
|
explicitly preview and not intended for direct host consumption, so server
|
|
352
407
|
discovery is by scanning local files only.
|
|
408
|
+
|
package/README.zh.md
CHANGED
|
@@ -6,15 +6,26 @@
|
|
|
6
6
|
|
|
7
7
|
## 安装
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[v0.1.0 release](https://github.com/wangbobo-coder/dsh-mcp-manager/releases) 里附的
|
|
11
|
-
`dsh-mcp-manager.tgz`。agent 侧的等价写法是 `plugin_manager` 的 `action: install_bundle`,
|
|
12
|
-
`target` 填 bundle 的绝对目录。
|
|
9
|
+
**方式一:插件管理页**(推荐)
|
|
13
10
|
|
|
14
|
-
|
|
11
|
+
设置 → 插件管理 → 安装,搜索 `@oh-agent/dsh-mcp-manager`。
|
|
12
|
+
|
|
13
|
+
**方式二:让 agent 安装**
|
|
14
|
+
|
|
15
|
+
直接说「安装 @oh-agent/dsh-mcp-manager」,等价于:
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
plugin_manager action: install_bundle target: "@oh-agent/dsh-mcp-manager@0.1.1"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`target` 也可以填一个绝对目录 —— 本地源码目录,或者
|
|
22
|
+
[v0.1.1 release](https://github.com/wangbobo-coder/dsh-mcp-manager/releases) 里附的
|
|
23
|
+
`dsh-mcp-manager.tgz` 解出来的目录。
|
|
24
|
+
|
|
25
|
+
**不要**手动 `pnpm add` 进 profile,也不要手改 profile 的 `package.json` 或
|
|
15
26
|
`cordis.patch.yml`:装了包不等于选中了它的 bundle,手动装的后果是那一行存在但永远不会被挂载。
|
|
16
27
|
|
|
17
|
-
安装后增加一个设置页和一个 agent 工具(`mcp_manage`)。它没有任何运行时依赖,不需要构建,也没有 `allowBuilds`
|
|
28
|
+
安装后增加一个设置页和一个 agent 工具(`mcp_manage`)。它没有任何运行时依赖,不需要构建,也没有 `allowBuilds` 授权步骤。要求 Node `^22.19.0 || >=24.0.0`(DeepSeek Harness 自带 Node 24,无需另装)。
|
|
18
29
|
|
|
19
30
|
页面会读取其他工具的配置文件,但**开关不需要对它们有写权限**。所有数据都不离开本机 —— 唯一的对外流量是你主动点的那次探活,且只发往你点的那一个服务器。
|
|
20
31
|
|
|
@@ -211,3 +222,4 @@ node scripts/test-locale.mjs en/zh key parity
|
|
|
211
222
|
## 许可证
|
|
212
223
|
|
|
213
224
|
MIT
|
|
225
|
+
|
package/lib/probe.js
CHANGED
|
@@ -20,7 +20,12 @@
|
|
|
20
20
|
import { spawn } from 'node:child_process';
|
|
21
21
|
|
|
22
22
|
const PROTOCOL_VERSION = '2025-06-18';
|
|
23
|
-
|
|
23
|
+
/*
|
|
24
|
+
* Sent to every server we handshake with, so a server's logs attribute the
|
|
25
|
+
* connection to this plugin and a version we still recognise. `test-release.mjs`
|
|
26
|
+
* asserts it matches package.json — a stale value here is otherwise invisible.
|
|
27
|
+
*/
|
|
28
|
+
const CLIENT_INFO = { name: 'dsh-mcp-manager', version: '0.1.1' };
|
|
24
29
|
|
|
25
30
|
function rpcRequest(id, method, params) {
|
|
26
31
|
return JSON.stringify({ jsonrpc: '2.0', id, method, params });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-agent/dsh-mcp-manager",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "One settings page for every MCP server on your machine: scan each AI tool's own config file, see which directory holds which server, probe whether it really starts, and mount or unmount it in DeepSeek Harness without ever editing the other tools' files. / 一个设置页管理本机所有 AI 开发工具的 MCP:按配置文件分组展示、真连探活、只在 DeepSeek Harness 内挂载/卸载,绝不改动其他工具的配置。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -66,3 +66,4 @@
|
|
|
66
66
|
"node": "^22.19.0 || >=24.0.0"
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
+
|