@deepseek-ai/dsh-mcp-client 0.0.1-rc.2 → 0.0.1-rc.5
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/lib/index.js +4 -4
- package/lib/types/tools.d.ts +3 -3
- package/package.json +14 -14
package/lib/index.js
CHANGED
|
@@ -48,7 +48,7 @@ function createTransport(config) {
|
|
|
48
48
|
//#endregion
|
|
49
49
|
//#region lib/types/tools.js
|
|
50
50
|
/**
|
|
51
|
-
* Tool bridge: discovers MCP tools, registers them on the harness
|
|
51
|
+
* Tool bridge: discovers MCP tools, registers them on the harness ToolRuntime
|
|
52
52
|
* under deterministic server-qualified public names, and handles re-sync when
|
|
53
53
|
* the server's tool list changes.
|
|
54
54
|
*
|
|
@@ -103,7 +103,7 @@ function callToolUncached(client, rawName, args, exec, opts) {
|
|
|
103
103
|
*
|
|
104
104
|
* @param serverName - Stable local namespace from plugin config.
|
|
105
105
|
* @param rawName - The MCP server's own tool name.
|
|
106
|
-
* @returns The globally unique, model-facing
|
|
106
|
+
* @returns The globally unique, model-facing ToolRuntime name.
|
|
107
107
|
*/
|
|
108
108
|
function publicToolName(serverName, rawName) {
|
|
109
109
|
const joined = `mcp__${serverName}__${rawName}`;
|
|
@@ -113,7 +113,7 @@ function publicToolName(serverName, rawName) {
|
|
|
113
113
|
return `${normalized.slice(0, MAX_PUBLIC_NAME_LENGTH - HASH_LENGTH - 1)}_${hash}`;
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
|
-
* Sync the MCP server's tool list into the harness
|
|
116
|
+
* Sync the MCP server's tool list into the harness ToolRuntime.
|
|
117
117
|
*
|
|
118
118
|
* Two phases keep the swap safe:
|
|
119
119
|
*
|
|
@@ -207,7 +207,7 @@ function createOutput(rawName, structuredSchema) {
|
|
|
207
207
|
* per-page schema cache from pre-validating a different contract.
|
|
208
208
|
*
|
|
209
209
|
* When the MCP server returns `isError: true`, the executor throws so that
|
|
210
|
-
* the
|
|
210
|
+
* the ToolRuntime's catch path produces an `isError` result for the model.
|
|
211
211
|
*/
|
|
212
212
|
function createExecutor(client, rawName, taskRequired, opts) {
|
|
213
213
|
return async (args, exec) => {
|
package/lib/types/tools.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Tool bridge: discovers MCP tools, registers them on the harness
|
|
2
|
+
* Tool bridge: discovers MCP tools, registers them on the harness ToolRuntime
|
|
3
3
|
* under deterministic server-qualified public names, and handles re-sync when
|
|
4
4
|
* the server's tool list changes.
|
|
5
5
|
*
|
|
@@ -40,11 +40,11 @@ export type McpResult<Structured extends JsonValue = JsonValue> = {
|
|
|
40
40
|
*
|
|
41
41
|
* @param serverName - Stable local namespace from plugin config.
|
|
42
42
|
* @param rawName - The MCP server's own tool name.
|
|
43
|
-
* @returns The globally unique, model-facing
|
|
43
|
+
* @returns The globally unique, model-facing ToolRuntime name.
|
|
44
44
|
*/
|
|
45
45
|
export declare function publicToolName(serverName: string, rawName: string): string;
|
|
46
46
|
/**
|
|
47
|
-
* Sync the MCP server's tool list into the harness
|
|
47
|
+
* Sync the MCP server's tool list into the harness ToolRuntime.
|
|
48
48
|
*
|
|
49
49
|
* Two phases keep the swap safe:
|
|
50
50
|
*
|
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.0.1-rc.
|
|
4
|
+
"version": "0.0.1-rc.5",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "restricted"
|
|
7
7
|
},
|
|
@@ -32,26 +32,26 @@
|
|
|
32
32
|
],
|
|
33
33
|
"license": "BSD-3-Clause",
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.
|
|
36
|
-
"@deepseek-ai/dsh-llm": "^0.0.1-rc.
|
|
37
|
-
"@deepseek-ai/dsh-subprocess": "^0.0.1-rc.
|
|
38
|
-
"@deepseek-ai/dsh-timeout": "^0.0.1-rc.
|
|
39
|
-
"@deepseek-ai/cordis": "^4.0.1-rc.
|
|
40
|
-
"@deepseek-ai/dsh-tools": "^0.0.1-rc.
|
|
35
|
+
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.5",
|
|
36
|
+
"@deepseek-ai/dsh-llm": "^0.0.1-rc.5",
|
|
37
|
+
"@deepseek-ai/dsh-subprocess": "^0.0.1-rc.5",
|
|
38
|
+
"@deepseek-ai/dsh-timeout": "^0.0.1-rc.5",
|
|
39
|
+
"@deepseek-ai/cordis": "^4.0.1-rc.4",
|
|
40
|
+
"@deepseek-ai/dsh-tools": "^0.0.1-rc.5"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
44
44
|
"zod": "^4.4.3",
|
|
45
|
-
"@deepseek-ai/schemastery": "^3.18.1-rc.
|
|
45
|
+
"@deepseek-ai/schemastery": "^3.18.1-rc.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@modelcontextprotocol/server-everything": "^2026.7.4",
|
|
49
49
|
"@modelcontextprotocol/server-filesystem": "^2026.7.4",
|
|
50
|
-
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.
|
|
51
|
-
"@deepseek-ai/dsh-
|
|
52
|
-
"@deepseek-ai/dsh-
|
|
53
|
-
"@deepseek-ai/
|
|
54
|
-
"@deepseek-ai/dsh-
|
|
55
|
-
"@deepseek-ai/
|
|
50
|
+
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.5",
|
|
51
|
+
"@deepseek-ai/dsh-llm": "^0.0.1-rc.5",
|
|
52
|
+
"@deepseek-ai/dsh-subprocess": "^0.0.1-rc.5",
|
|
53
|
+
"@deepseek-ai/dsh-timeout": "^0.0.1-rc.5",
|
|
54
|
+
"@deepseek-ai/dsh-tools": "^0.0.1-rc.5",
|
|
55
|
+
"@deepseek-ai/cordis": "^4.0.1-rc.4"
|
|
56
56
|
}
|
|
57
57
|
}
|