cls-mcp-server 0.2.3 → 0.2.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -0
  2. package/package.json +2 -7
package/dist/index.js CHANGED
@@ -70,6 +70,7 @@ mcpServer.tool('SearchLog', 'Search logs based on query parameters', SearchLogRe
70
70
  },
71
71
  },
72
72
  });
73
+ clsClient.sdkVersion = 'cls-mcp-server';
73
74
  const capiParams = {
74
75
  SyntaxRule: 1,
75
76
  UseNewAnalysis: true,
@@ -136,6 +137,7 @@ mcpServer.tool('GetTopicInfoByName', 'search topic info by topic name', {
136
137
  },
137
138
  },
138
139
  });
140
+ clsClient.sdkVersion = 'cls-mcp-server';
139
141
  const response = await clsClient.DescribeTopics({
140
142
  Filters: searchText
141
143
  ? [
@@ -181,6 +183,7 @@ mcpServer.tool('GetRegionCodeByName', 'search region parameter by region name',
181
183
  },
182
184
  },
183
185
  });
186
+ regionClient.sdkVersion = 'cls-mcp-server';
184
187
  const response = await regionClient.DescribeRegions({
185
188
  Product: 'cls',
186
189
  });
@@ -227,6 +230,7 @@ mcpServer.tool('TextToSearchLogQuery', 'get cls SearchLog Query with natual lang
227
230
  },
228
231
  },
229
232
  });
233
+ clsClient.sdkVersion = 'cls-mcp-server';
230
234
  try {
231
235
  const response = await clsClient.request('ChatCompletions', {
232
236
  Model: 'text2sql',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cls-mcp-server",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "main": "index.js",
5
5
  "files": [
6
6
  "dist"
@@ -12,8 +12,7 @@
12
12
  "build": "tsc && chmod 755 dist/index.js",
13
13
  "lint": "eslint -c .eslintrc.js --fix --quiet src/**/*.ts src/**/*.tsx",
14
14
  "prepare": "husky",
15
- "publish:npm": "npm run build && npm publish --registry=\"https://registry.npmjs.org/\"",
16
- "postinstall": "patch-package",
15
+ "publish:npm": "npm i && npm run build && npm publish --registry=\"https://registry.npmjs.org/\"",
17
16
  "start:sse": "npm run build && node ./dist/index.js"
18
17
  },
19
18
  "keywords": [],
@@ -24,9 +23,6 @@
24
23
  "@modelcontextprotocol/sdk": "^1.9.0",
25
24
  "dotenv": "^16.5.0",
26
25
  "express": "^5.1.0",
27
- "lighthouse-mcp-server": "^0.0.6",
28
- "lodash.isnil": "^4.0.0",
29
- "patch-package": "^8.0.0",
30
26
  "tencentcloud-sdk-nodejs-cls": "^4.1.18",
31
27
  "tencentcloud-sdk-nodejs-common": "^4.1.1",
32
28
  "tencentcloud-sdk-nodejs-region": "^4.0.997",
@@ -38,7 +34,6 @@
38
34
  "@types/express": "^5.0.1",
39
35
  "@types/ip": "^1.1.3",
40
36
  "@types/jest": "^29.5.0",
41
- "@types/lodash.isnil": "^4.0.9",
42
37
  "@types/node": "^20.17.30",
43
38
  "@typescript-eslint/eslint-plugin": "^8.26.0",
44
39
  "@typescript-eslint/parser": "^8.26.0",