@sunshaobei/dsh-mcp-manager 3.3.0 → 3.3.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.en.md CHANGED
@@ -316,7 +316,7 @@ await ctx.mcpManagerPro.registerServer({
316
316
  change detected during the wait aborts the save and preserves the external contents.
317
317
  - All `/api/dsh-mcp/*` routes are restricted to loopback access (non-loopback → 403 / wrong
318
318
  method → 405)
319
- - **stdio subprocess environment sanitization (official dsh-mcp-client semantics)**: sanitization
319
+ - **stdio subprocess environment sanitization (host MCP client semantics)**: sanitization
320
320
  applies to the **inherited parent environment** only — credential-shaped names (`KEY` /
321
321
  `PASSWORD` / `SECRET` / `TOKEN`) and every `DSH_*` variable are stripped from the parent
322
322
  environment so host secrets never leak into the MCP subprocess implicitly; **an `env` entry you
@@ -420,7 +420,7 @@ pnpm --filter dsh-mcp-manager test
420
420
  ## Known Limitations
421
421
 
422
422
  - **The `mcp__` registration name is internal only**: servers are mounted by the official
423
- dsh-mcp-client, so the host registers tools as `mcp__<id>__<tool>`, where `id` is a
423
+ host MCP client, so the host registers tools as `mcp__<id>__<tool>`, where `id` is a
424
424
  **random short string** allocated per (workspace, server) — stable within one plugin
425
425
  assembly, opaque, and not derivable from the server name; it changes on plugin reload or
426
426
  host restart. Those names are removed from the model's tool list, and the model reaches
@@ -491,3 +491,7 @@ MIT
491
491
  After application startup, global MCPs and projects in the official workspace registry are prepared in the background. Configuration saves and source-file changes refresh affected connections. Switching sessions reads a workspace snapshot without waiting for connection, discovery, or retry; newly added workspaces are prepared once in the background.
492
492
 
493
493
  Global connections are shared, while enable switches persist per workspace and apply to the UI, catalog injection, discovery, and execution. Late responses from a previous workspace cannot replace the current workspace snapshot.
494
+
495
+ ## 3.3.1
496
+
497
+ - Fix the missing plugin settings card on 0.2.2: use the scoped bundle package as the config key and register both bundle-level and row-level cards.
package/README.md CHANGED
@@ -264,7 +264,7 @@ MCP 连接检查在应用启动后于后台预热全局配置及官方工作区
264
264
  - 服务器配置:`<DSH_HOME>/dsh-mcp-manager/mcp.json`(仅存 `${ENV}` 引用,**不落盘密钥本身**);
265
265
  落盘 0600 权限 + 同目录临时文件原子替换;Windows 上替换遇到 `EPERM` / `EBUSY` 时会有界异步重试,重试期间检测到外部修改则中止以保留外部内容
266
266
  - 所有 `/api/dsh-mcp/*` 路由仅限 loopback 访问(非回环 403 / 方法错 405)
267
- - **stdio 子进程环境净化(官方 dsh-mcp-client 口径)**:净化只作用于**继承的父环境**——
267
+ - **stdio 子进程环境净化(宿主 MCP 客户端口径)**:净化只作用于**继承的父环境**——
268
268
  凭据词根(`KEY` / `PASSWORD` / `SECRET` / `TOKEN`)与全部 `DSH_*` 变量从父环境摘掉,
269
269
  避免把宿主机密隐式透传给 MCP 子进程;**用户在配置里显式声明的 `env` 原样传给子进程**
270
270
  (显式层在净化之后合并)——`env` 不是脱敏面,要隔离就别往里写凭据
@@ -339,7 +339,7 @@ pnpm --filter dsh-mcp-manager test
339
339
 
340
340
  ## 已知限制
341
341
 
342
- - **`mcp__` 注册名只作内部标识**:服务器由官方 dsh-mcp-client 装载,宿主注册名为
342
+ - **`mcp__` 注册名只作内部标识**:服务器由宿主 MCP 客户端装载,宿主注册名为
343
343
  `mcp__<id>__<tool>`,`id` 是按 (工作空间, 服务器名) 分配的 **随机短串**(同一次插件装配内
344
344
  稳定;插件重载或宿主重启后变化;不透明,不能由服务器名推导)。这些名字会被从模型工具列表
345
345
  摘除,模型经 `ws_mcp_call` 转发触达——**不要在任何脚本或提示词里写死工具名**,
@@ -387,10 +387,11 @@ pnpm --filter dsh-mcp-manager test
387
387
 
388
388
  MIT
389
389
 
390
- ## 3.3.0 变更摘要
390
+ ## 3.3.1 变更摘要
391
391
 
392
392
  - 新增三个独立入口开关:浮窗 / 左侧导航 / 设置页;浮窗跟随会话,另两个面板可选工作区
393
393
  - 新增 `GET /api/dsh-mcp/workspaces`,嵌入面板顶部提供工作区下拉
394
394
  - 快速接入的每个 mcp.json 来源新增「导入」:选择本地 JSON 文件,与已有内容合并(同名保留已有)
395
395
  - 新增 `showFloat` / `showSidebar` / `showSettings` 配置键;旧配置缺省时按默认值运行
396
396
  - 面板头/标签/内容区间距调整;监听 locale 注册失败时继续绑定并回落到自带中文
397
+ - 修复 0.2.2 插件页看不到设置卡:bundle package key 改为真实 scope 包名,并同时注册包级/行级配置卡
package/lib/client.js CHANGED
@@ -154,7 +154,7 @@ window.__ModuleLoader__.load({
154
154
  };
155
155
 
156
156
  // src/shared/constants.ts
157
- var MCP_MANAGER_BUNDLE_PACKAGE = "dsh-mcp-manager";
157
+ var MCP_MANAGER_BUNDLE_PACKAGE = "@sunshaobei/dsh-mcp-manager";
158
158
  var MCP_MANAGER_ROW_ID = "dsh-mcp-manager";
159
159
  var MCP_MANAGER_SETTINGS_NAMESPACE = "dsh-mcp-manager";
160
160
  var MCP_MANAGER_IDENTITY = Object.freeze({
@@ -2605,24 +2605,24 @@ window.__ModuleLoader__.load({
2605
2605
  ensureStyle({ id: "dsh-mcp-manager-style", cssText: ui_default + style_default });
2606
2606
  const disposers = [];
2607
2607
  const slots = ctx.get("slots");
2608
- const configForms = ctx.get("configForms");
2609
- if (slots !== void 0 && configForms !== void 0) {
2610
- ctx.effect(
2611
- () => configForms.whileServed(
2612
- [MCP_MANAGER_IDENTITY.settingsNamespace],
2613
- () => slots.inject(
2614
- ROW_CONFIG_SLOT,
2615
- () => slots.register(
2616
- {
2617
- name: ROW_CONFIG_SLOT,
2618
- key: MCP_MANAGER_IDENTITY.rowConfigKey,
2619
- locale: NS
2620
- },
2621
- (props) => React4.createElement(SettingsCard, props)
2622
- )
2623
- )
2624
- ),
2625
- "dsh-mcp-manager: row config page"
2608
+ if (slots !== void 0) {
2609
+ const configCard = (props) => React4.createElement(SettingsCard, props);
2610
+ const registerConfigCard = (name, key) => {
2611
+ try {
2612
+ return slots.inject(
2613
+ name,
2614
+ () => slots.register({ name, key, locale: NS }, configCard)
2615
+ );
2616
+ } catch (error) {
2617
+ console.warn(`[dsh-mcp-manager] ${name} 注册失败:`, error);
2618
+ return void 0;
2619
+ }
2620
+ };
2621
+ disposers.push(
2622
+ ...[
2623
+ registerConfigCard("plugins.bundle.config", MCP_MANAGER_IDENTITY.bundlePackage),
2624
+ registerConfigCard(ROW_CONFIG_SLOT, MCP_MANAGER_IDENTITY.rowConfigKey)
2625
+ ].filter((dispose) => dispose !== void 0)
2626
2626
  );
2627
2627
  }
2628
2628
  let disposeFloat;
@@ -2926,7 +2926,7 @@ window.__ModuleLoader__.load({
2926
2926
  console.warn("[dsh-mcp-manager] mount failed:", error);
2927
2927
  }
2928
2928
  }
2929
- var inject = ["sessions", "slots", "configForms", "locale"];
2929
+ var inject = ["sessions", "slots", "locale"];
2930
2930
 
2931
2931
  Object.defineProperty(module.exports, Symbol.toStringTag, { value: 'Module' })
2932
2932
  return module.exports
package/lib/index.js CHANGED
@@ -2354,7 +2354,7 @@ var ROUTE_FENCE = {
2354
2354
  var SCOPE_GLOBAL = "global";
2355
2355
  var SCOPE_PROJECT = "project";
2356
2356
  var MIDDLEWARE_GLOBAL_ROOT = "@global";
2357
- var MCP_MANAGER_BUNDLE_PACKAGE = "dsh-mcp-manager";
2357
+ var MCP_MANAGER_BUNDLE_PACKAGE = "@sunshaobei/dsh-mcp-manager";
2358
2358
  var MCP_MANAGER_ROW_ID = "dsh-mcp-manager";
2359
2359
  var MCP_MANAGER_SETTINGS_NAMESPACE = "dsh-mcp-manager";
2360
2360
  var MCP_MANAGER_IDENTITY = Object.freeze({
@@ -15,8 +15,8 @@ export declare const SCOPE_PROJECT = "project";
15
15
  export declare const MIDDLEWARE_GLOBAL_ROOT = "@global";
16
16
  /** dsh 0.1.7-rc.2 插件行配置的 canonical identity;宿主与客户端只消费此对象。 */
17
17
  export declare const MCP_MANAGER_IDENTITY: Readonly<{
18
- bundlePackage: "dsh-mcp-manager";
18
+ bundlePackage: "@sunshaobei/dsh-mcp-manager";
19
19
  rowId: "dsh-mcp-manager";
20
20
  settingsNamespace: "dsh-mcp-manager";
21
- rowConfigKey: "dsh-mcp-manager#dsh-mcp-manager";
21
+ rowConfigKey: "@sunshaobei/dsh-mcp-manager#dsh-mcp-manager";
22
22
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunshaobei/dsh-mcp-manager",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "description": "Manage MCP servers (stdio / streamable-http) for dsh web; floating pill, left-sidebar entry and settings-page entry (each switchable), full panel with a workspace picker, and one-click mcp.json file import with merge. DSH MCP 管理器:浮窗 / 左侧导航 / 设置页三个独立入口,完整面板可选工作区,快速接入支持 mcp.json 文件导入合并。已连接服务器的工具一律经中间层工具(ws_mcp_search / ws_mcp_detail / ws_mcp_call / ws_mcp_list)访问。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",