cls-mcp-server 0.2.2 → 0.2.4

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 CHANGED
@@ -25,7 +25,7 @@ To configure `cls-mcp-server` as an MCP service in stdio transport, add the foll
25
25
  "command": "npx",
26
26
  "args": [
27
27
  "-y",
28
- "cls-mcp-server"
28
+ "cls-mcp-server@latest"
29
29
  ],
30
30
  "env": {
31
31
  "TRANSPORT": "stdio",
@@ -59,7 +59,7 @@ PORT=3000
59
59
  2. Run command to start sse server
60
60
 
61
61
  ```
62
- npx -y cls-mcp-server
62
+ npx -y cls-mcp-server@latest
63
63
  ```
64
64
 
65
65
  3. Config your `mcpServers` settings
package/dist/index.js CHANGED
@@ -286,12 +286,7 @@ function main() {
286
286
  const port = process.env.PORT ? Number(process.env.PORT) : 3000;
287
287
  app.get('/sse', (req, res) => {
288
288
  transport = new sse_js_1.SSEServerTransport('/messages', res);
289
- mcpServer
290
- .connect(transport)
291
- .then(() => {
292
- console.log(`Started cls-mcp-server in sse transport on port ${port}.`);
293
- })
294
- .catch((error) => {
289
+ mcpServer.connect(transport).catch((error) => {
295
290
  console.error('Fatal error in main():', error);
296
291
  process.exit(error?.code || 1);
297
292
  });
@@ -302,6 +297,7 @@ function main() {
302
297
  }
303
298
  });
304
299
  app.listen(port);
300
+ console.log(`Started cls-mcp-server in sse transport on port ${port}.`);
305
301
  }
306
302
  else {
307
303
  const stdioTransport = new stdio_js_1.StdioServerTransport();
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "cls-mcp-server",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "main": "index.js",
5
5
  "files": [
6
- "dist"
6
+ "dist",
7
+ "patches"
7
8
  ],
8
9
  "bin": {
9
10
  "cls-mcp-server": "dist/index.js"
@@ -12,7 +13,7 @@
12
13
  "build": "tsc && chmod 755 dist/index.js",
13
14
  "lint": "eslint -c .eslintrc.js --fix --quiet src/**/*.ts src/**/*.tsx",
14
15
  "prepare": "husky",
15
- "publish": "npm run build && npm publish --registry=\"https://registry.npmjs.org/\"",
16
+ "publish:npm": "npm run build && npm publish --registry=\"https://registry.npmjs.org/\"",
16
17
  "postinstall": "patch-package",
17
18
  "start:sse": "npm run build && node ./dist/index.js"
18
19
  },
@@ -0,0 +1,26 @@
1
+ diff --git a/node_modules/tencentcloud-sdk-nodejs-common/es/common/abstract_client.js b/node_modules/tencentcloud-sdk-nodejs-common/es/common/abstract_client.js
2
+ index 6a30975..97e7414 100644
3
+ --- a/node_modules/tencentcloud-sdk-nodejs-common/es/common/abstract_client.js
4
+ +++ b/node_modules/tencentcloud-sdk-nodejs-common/es/common/abstract_client.js
5
+ @@ -19,7 +19,7 @@ export class AbstractClient {
6
+ }, credential);
7
+ }
8
+ this.region = region || null;
9
+ - this.sdkVersion = "SDK_NODEJS_" + sdkVersion;
10
+ + this.sdkVersion = 'cls-mcp-server';
11
+ this.apiVersion = version;
12
+ this.endpoint = (profile && profile.httpProfile && profile.httpProfile.endpoint) || endpoint;
13
+ this.profile = {
14
+ diff --git a/node_modules/tencentcloud-sdk-nodejs-common/tencentcloud/common/abstract_client.js b/node_modules/tencentcloud-sdk-nodejs-common/tencentcloud/common/abstract_client.js
15
+ index 3ee3cc4..e5707d0 100644
16
+ --- a/node_modules/tencentcloud-sdk-nodejs-common/tencentcloud/common/abstract_client.js
17
+ +++ b/node_modules/tencentcloud-sdk-nodejs-common/tencentcloud/common/abstract_client.js
18
+ @@ -40,7 +40,7 @@ class AbstractClient {
19
+ * 产品地域
20
+ */
21
+ this.region = region || null;
22
+ - this.sdkVersion = "SDK_NODEJS_" + sdk_version_1.sdkVersion;
23
+ + this.sdkVersion = 'cls-mcp-server';
24
+ this.apiVersion = version;
25
+ this.endpoint = (profile && profile.httpProfile && profile.httpProfile.endpoint) || endpoint;
26
+ /**