@deepseek-ai/dsh-mcp-client 0.2.0-rc.2 → 0.2.1-alpha.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.i18n.yaml CHANGED
@@ -36,8 +36,8 @@
36
36
  en: 4e213d68082b07f0
37
37
  zh: 7617949ba46a3b63
38
38
  /deepseek-ai-dsh-mcp-client/understand-the-implementation/source-map:
39
- en: ab2bbaa701f24c2c
40
- zh: c6db79438239388e
39
+ en: f134d7502d573290
40
+ zh: 5dd8ad502f8db776
41
41
  /deepseek-ai-dsh-mcp-client/understand-the-implementation/lifecycle-and-sync:
42
42
  en: ae9029b48b2a2e4e
43
43
  zh: 048f08361b799667
@@ -48,8 +48,8 @@
48
48
  en: fef482a6f8cc789f
49
49
  zh: 08f4c594ec83b4a1
50
50
  /deepseek-ai-dsh-mcp-client/further-exploration:
51
- en: 402f4148cc9a39eb
52
- zh: 02060d6909b39f7e
51
+ en: 1374f838098f1fc4
52
+ zh: a8393b3130fd7a72
53
53
  /deepseek-ai-dsh-mcp-client/model-experience:
54
54
  en: 215e7ba838619b7b
55
55
  zh: a311da3843709f90
package/README.md CHANGED
@@ -119,7 +119,6 @@ This section explains the design decisions behind the bridge and points at the c
119
119
  | [`src/server-context.ts`](src/server-context.ts) | Resource-provider registration and literal server instructions |
120
120
  | [`src/tools.ts`](src/tools.ts) | Tool bridge: discovery, naming, registration swap, execution, image projection |
121
121
  | [`src/transport.ts`](src/transport.ts) | Transport factory: stdio spawn with scrubbed env, Streamable HTTP |
122
- | — | No runtime invariant companion is published; MCP generations contribute through the tool registry, but the bridge exposes no independent server-to-tool snapshot after an asynchronous resync. |
123
122
 
124
123
  The exported `createMcpToolDefinition(ctx, options)` adapts an upstream tool schema and raw-result callback to the same canonical values, errors, and durable image projection. Each callback receives the exact `ToolExecution`, including its Agent and cancellation signal; SDK spec-type validation checks its result before projection. Callers own registration, cancellation deadlines, and provider teardown. The native Cua Driver provider uses this adapter without opening an MCP transport.
125
124
 
@@ -147,8 +146,8 @@ The child environment starts from the subprocess seam's `scrubbedParentEnv()`
147
146
  Read these pages when the package-level contract is not enough. They move from the shared tool registry to the bridge's design evidence and worked example configurations.
148
147
 
149
148
  - [Tools subsystem reference](../../../docs/subsystems/tools.md) — the `ToolRuntime` and `ctx.tools.register()` contract that receives the bridged tools.
150
- - [MCP client plugin Agent Note](../../../.agents/notes/implemented/feature/2026-07-07-mcp-client-plugin.md) — the naming invariants, discovery and execution design, alternatives, and consequences.
151
- - [Canonical tool output contract Agent Note](../../../.agents/notes/implemented/architecture/2026-07-20-canonical-tool-output-contract.md) — how MCP results map into the canonical tool-output contract.
149
+ - [historical MCP client plugin Agent Note](../../../.agents/notes/archived/feature/2026-07-07-mcp-client-plugin.md) — the naming invariants, discovery and execution design, alternatives, and consequences.
150
+ - [Canonical tool output contract reference](../../core/tools/README.md) — how MCP results map into the canonical tool-output contract.
152
151
  - [Third-party memory MCP guide](../../../docs/user/guide/mcp-memory.md) — three memory-server overlays using this package.
153
152
  - [Generated configuration catalog](../../../docs/config-catalog.md#deepseek-aidsh-mcp-client) — every accepted config field and its source declaration.
154
153
 
package/README.zh.md CHANGED
@@ -119,7 +119,6 @@ kind: "package-reference"
119
119
  | [`src/server-context.ts`](src/server-context.ts) | 资源提供方注册与字面服务器指令 |
120
120
  | [`src/tools.ts`](src/tools.ts) | 工具桥接:发现、命名、注册交换、执行、图片投影 |
121
121
  | [`src/transport.ts`](src/transport.ts) | 传输工厂:带清洗环境的 stdio spawn、Streamable HTTP |
122
- | — | 不发布运行时不变式伴生入口;MCP 世代会通过工具注册表发挥作用,但桥接在异步重新同步后不提供独立的服务器工具映射快照。 |
123
122
 
124
123
  导出的 `createMcpToolDefinition(ctx, options)` 将上游工具 schema 和原始结果回调适配到相同的规范值、错误和持久化图像投影。每次回调都收到原样的 `ToolExecution`,包括其 Agent 和取消信号;SDK 的规范类型校验会在投影前检查返回结果。调用方负责注册、取消截止时间和提供方卸载。原生 Cua Driver 提供方使用此适配函数,无需打开 MCP 传输。
125
124
 
@@ -147,8 +146,8 @@ SDK 通过旧版通知或现代协议订阅接收工具列表变化。监督器
147
146
  当包级约定不够用时阅读以下页面。它们从共享工具注册表逐步进入桥接的设计证据与可运行的示例配置。
148
147
 
149
148
  - [工具子系统参考](../../../docs/subsystems/tools.zh.md)——接收已桥接工具的 `ToolRuntime` 与 `ctx.tools.register()` 约定。
150
- - [MCP 客户端插件 Agent Note](../../../.agents/notes/implemented/feature/2026-07-07-mcp-client-plugin.zh.md)——命名不变式、发现与执行设计、备选方案与后果。
151
- - [规范工具输出约定 Agent Note](../../../.agents/notes/implemented/architecture/2026-07-20-canonical-tool-output-contract.zh.md)——MCP 结果如何映射进规范工具输出约定。
149
+ - [历史MCP 客户端插件 Agent Note](../../../.agents/notes/archived/feature/2026-07-07-mcp-client-plugin.md)——命名不变式、发现与执行设计、备选方案与后果。
150
+ - [规范工具输出约定 reference](../../core/tools/README.zh.md)——MCP 结果如何映射进规范工具输出约定。
152
151
  - [第三方记忆 MCP 指南](../../../docs/user/guide/mcp-memory.zh.md)——使用本包的三份记忆服务器 overlay。
153
152
  - [生成配置目录](../../../docs/config-catalog.zh.md#deepseek-aidsh-mcp-client)——每个受支持配置字段及其源声明。
154
153
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-mcp-client",
3
3
  "description": "MCP client bridge: connects to MCP servers and registers their tools on ctx.tools",
4
- "version": "0.2.0-rc.2",
4
+ "version": "0.2.1-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,20 +27,20 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
- "@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
31
- "@deepseek-ai/dsh-scope": "0.2.0-rc.2",
32
- "@deepseek-ai/dsh-timeout": "0.2.0-rc.2",
33
- "@deepseek-ai/dsh-subprocess": "0.2.0-rc.2",
34
- "@deepseek-ai/cordis": "~4.0.4",
35
- "@deepseek-ai/dsh-mcp-resources": "0.2.0-rc.2",
36
- "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
37
- "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
38
- "@deepseek-ai/dsh-tools": "0.2.0-rc.2"
30
+ "@deepseek-ai/dsh-attachment": "0.2.1-alpha.1",
31
+ "@deepseek-ai/dsh-scope": "0.2.1-alpha.1",
32
+ "@deepseek-ai/dsh-llm": "0.2.1-alpha.1",
33
+ "@deepseek-ai/dsh-subprocess": "0.2.1-alpha.1",
34
+ "@deepseek-ai/dsh-timeout": "0.2.1-alpha.1",
35
+ "@deepseek-ai/dsh-tools": "0.2.1-alpha.1",
36
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1",
37
+ "@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.1",
38
+ "@deepseek-ai/dsh-mcp-resources": "0.2.1-alpha.1"
39
39
  },
40
40
  "dependencies": {
41
41
  "@modelcontextprotocol/client": "2.0.0",
42
- "@deepseek-ai/schemastery": "~3.18.4",
43
- "@deepseek-ai/dsh-util-values": "0.2.0-rc.2"
42
+ "@deepseek-ai/dsh-util-values": "0.2.1-alpha.1",
43
+ "@deepseek-ai/schemastery": "~3.18.5-alpha.1"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@modelcontextprotocol/server-everything": "^2026.7.4",
@@ -48,17 +48,17 @@
48
48
  "@modelcontextprotocol/server": "2.0.0",
49
49
  "@modelcontextprotocol/node": "2.0.0",
50
50
  "zod": "^4.4.3",
51
- "@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
52
- "@deepseek-ai/dsh-attachment-local": "0.2.0-rc.2",
53
- "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
54
- "@deepseek-ai/dsh-scope": "0.2.0-rc.2",
55
- "@deepseek-ai/dsh-subprocess": "0.2.0-rc.2",
56
- "@deepseek-ai/dsh-timeout": "0.2.0-rc.2",
57
- "@deepseek-ai/dsh-tools": "0.2.0-rc.2",
58
- "@deepseek-ai/cordis": "~4.0.4",
59
- "@deepseek-ai/dsh-http-proxy": "0.2.0-rc.2",
60
- "@deepseek-ai/dsh-mcp-resources": "0.2.0-rc.2",
61
- "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2"
51
+ "@deepseek-ai/dsh-attachment": "0.2.1-alpha.1",
52
+ "@deepseek-ai/dsh-attachment-local": "0.2.1-alpha.1",
53
+ "@deepseek-ai/dsh-llm": "0.2.1-alpha.1",
54
+ "@deepseek-ai/dsh-scope": "0.2.1-alpha.1",
55
+ "@deepseek-ai/dsh-timeout": "0.2.1-alpha.1",
56
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1",
57
+ "@deepseek-ai/dsh-tools": "0.2.1-alpha.1",
58
+ "@deepseek-ai/dsh-mcp-resources": "0.2.1-alpha.1",
59
+ "@deepseek-ai/dsh-http-proxy": "0.2.1-alpha.1",
60
+ "@deepseek-ai/dsh-subprocess": "0.2.1-alpha.1",
61
+ "@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.1"
62
62
  },
63
63
  "peerDependenciesMeta": {
64
64
  "@deepseek-ai/dsh-mcp-resources": {