cls-mcp-server 0.2.5 → 0.2.7
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 +1 -1
- package/dist/index.js +2 -2
- package/package.json +4 -1
package/README.md
CHANGED
@@ -6,7 +6,7 @@ This project is a Node.js server that integrates with Tencent Cloud Log Service
|
|
6
6
|
|
7
7
|
### Install Node.js
|
8
8
|
|
9
|
-
Follow [Node.js](https://nodejs.org/) instructions to install Node.js.
|
9
|
+
Follow [Node.js](https://nodejs.org/) instructions to install Node.js. LTS version is recommended.
|
10
10
|
|
11
11
|
### MCP Server Setup
|
12
12
|
|
package/dist/index.js
CHANGED
@@ -26,10 +26,10 @@ const MultiTopicSearchInformationSchema = zod_1.z.object({
|
|
26
26
|
const SearchLogRequestSchema = {
|
27
27
|
From: zod_1.z
|
28
28
|
.number()
|
29
|
-
.describe('要检索分析的日志的起始时间,Unix时间戳(需要传毫秒粒度)。To-From 时间范围建议不要过大,建议默认近15
|
29
|
+
.describe('要检索分析的日志的起始时间,Unix时间戳(需要传毫秒粒度)。To-From 时间范围建议不要过大,建议默认近15分钟,否则会导致返回的日志过多,影响性能。计算相对时间(如近15分钟)时,如果AI模型不知道当前时间,AI模型应该先调用GetCurrentTimestamp工具获取当前时间,再基于这个当前时间去计算相对时间。'),
|
30
30
|
To: zod_1.z
|
31
31
|
.number()
|
32
|
-
.describe('要检索分析的日志的结束时间,Unix时间戳(需要传毫秒粒度)。To-From 时间范围建议不要过大,建议默认近15
|
32
|
+
.describe('要检索分析的日志的结束时间,Unix时间戳(需要传毫秒粒度)。To-From 时间范围建议不要过大,建议默认近15分钟,否则会导致返回的日志过多,影响性能。计算相对时间(如近15分钟)时,如果AI模型不知道当前时间,AI模型应该先调用GetCurrentTimestamp工具获取当前时间,再基于这个当前时间去计算相对时间。'),
|
33
33
|
Query: zod_1.z.string().describe('检索分析语句,最大长度为12KB。如果不限定检索条件,可传 * 或 空字符串,可查询所有日志'),
|
34
34
|
TopicId: zod_1.z.string().optional().describe('要检索分析的日志主题ID,仅能指定一个日志主题'),
|
35
35
|
Topics: zod_1.z
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cls-mcp-server",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.7",
|
4
4
|
"main": "index.js",
|
5
5
|
"files": [
|
6
6
|
"dist"
|
@@ -54,5 +54,8 @@
|
|
54
54
|
"eslint -c .eslintrc.js --fix"
|
55
55
|
]
|
56
56
|
},
|
57
|
+
"engines": {
|
58
|
+
"node": ">=16 <=22"
|
59
|
+
},
|
57
60
|
"packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
|
58
61
|
}
|