@momeidejiyi/dsh-general-mcp 0.1.3 → 0.1.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 CHANGED
@@ -1,4 +1,4 @@
1
- // @momeidejiyi/dsh-general-mcp@0.1.3 (generated)
1
+ // @momeidejiyi/dsh-general-mcp@0.1.5 (generated)
2
2
 
3
3
  // packages/general-mcp/src/index.ts
4
4
  import { appendFileSync } from "node:fs";
@@ -112,6 +112,7 @@ function buildCatalog(serverName, tools, publicName, settings = {}) {
112
112
  }
113
113
 
114
114
  // packages/general-mcp/src/client.ts
115
+ var CLIENT_VERSION = "0.1.5";
115
116
  var MODERN = "2026-07-28";
116
117
  var LEGACY = "2025-06-18";
117
118
  var META_VERSION = "io.modelcontextprotocol/protocolVersion";
@@ -141,7 +142,7 @@ var McpClient = class {
141
142
  const result = await this.request("initialize", {
142
143
  protocolVersion: LEGACY,
143
144
  capabilities: {},
144
- clientInfo: { name: "dsh-general-mcp", version: "0.1.1" }
145
+ clientInfo: { name: "dsh-general-mcp", version: CLIENT_VERSION }
145
146
  });
146
147
  if (typeof result?.protocolVersion === "string") this.protocolVersion = result.protocolVersion;
147
148
  await this.notify("notifications/initialized", {});
@@ -213,7 +214,7 @@ var McpClient = class {
213
214
  jsonrpc: "2.0",
214
215
  id,
215
216
  method,
216
- params: era === "modern" ? { ...params, _meta: { ...params?._meta, [META_VERSION]: MODERN, [META_CLIENT]: { name: "dsh-general-mcp", version: "0.1.1" }, [META_CAPS]: {} } } : params
217
+ params: era === "modern" ? { ...params, _meta: { ...params?._meta, [META_VERSION]: MODERN, [META_CLIENT]: { name: "dsh-general-mcp", version: CLIENT_VERSION }, [META_CAPS]: {} } } : params
217
218
  };
218
219
  let response = await this.send(body, signal, method, era, toolName);
219
220
  if (response.status === 404 && this.sessionId !== void 0 && method !== "initialize") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momeidejiyi/dsh-general-mcp",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Single-endpoint MCP bridge for DSH: connects one gateway and registers its tools.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
package/src/client.ts CHANGED
@@ -22,6 +22,7 @@ export interface McpCallResult {
22
22
  isError?: boolean
23
23
  }
24
24
 
25
+ const CLIENT_VERSION = '0.1.5'
25
26
  const MODERN = '2026-07-28'
26
27
  const LEGACY = '2025-06-18'
27
28
  const META_VERSION = 'io.modelcontextprotocol/protocolVersion'
@@ -58,7 +59,7 @@ export class McpClient {
58
59
  const result = await this.request('initialize', {
59
60
  protocolVersion: LEGACY,
60
61
  capabilities: {},
61
- clientInfo: { name: 'dsh-general-mcp', version: '0.1.1' },
62
+ clientInfo: { name: 'dsh-general-mcp', version: CLIENT_VERSION },
62
63
  })
63
64
  if (typeof (result as any)?.protocolVersion === 'string') this.protocolVersion = (result as any).protocolVersion
64
65
  await this.notify('notifications/initialized', {})
@@ -139,7 +140,7 @@ export class McpClient {
139
140
  id,
140
141
  method,
141
142
  params: era === 'modern'
142
- ? { ...params, _meta: { ...(params as any)?._meta, [META_VERSION]: MODERN, [META_CLIENT]: { name: 'dsh-general-mcp', version: '0.1.1' }, [META_CAPS]: {} } }
143
+ ? { ...params, _meta: { ...(params as any)?._meta, [META_VERSION]: MODERN, [META_CLIENT]: { name: 'dsh-general-mcp', version: CLIENT_VERSION }, [META_CAPS]: {} } }
143
144
  : params,
144
145
  }
145
146
  let response = await this.send(body, signal, method, era, toolName)