mcp-log-query-server 2.1.1 → 3.1.0
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/config.js +18 -1
- package/index.js +6 -6
- package/package.json +1 -1
package/config.js
CHANGED
|
@@ -570,6 +570,19 @@ export const LOKI_ENVIRONMENTS = {
|
|
|
570
570
|
password: 'nihao123!!',
|
|
571
571
|
defaultProject: 'senior',
|
|
572
572
|
hasProjectLabel: false
|
|
573
|
+
},
|
|
574
|
+
|
|
575
|
+
// 旌阳私有化
|
|
576
|
+
'jingyang': {
|
|
577
|
+
description: '旌阳私有化环境',
|
|
578
|
+
grafanaUrl: 'https://www.jymzzhyl.cn/journals-loki',
|
|
579
|
+
datasourceUid: 'fa2cf4f6-4ee9-424b-a7c4-fa8be330f0c2',
|
|
580
|
+
datasourceId: 1,
|
|
581
|
+
orgId: 1,
|
|
582
|
+
username: 'loki',
|
|
583
|
+
password: 'nihao123!!',
|
|
584
|
+
defaultProject: 'senior',
|
|
585
|
+
hasProjectLabel: false
|
|
573
586
|
}
|
|
574
587
|
};
|
|
575
588
|
|
|
@@ -599,7 +612,11 @@ export const LOKI_ENV_ALIASES = {
|
|
|
599
612
|
// 德阳
|
|
600
613
|
'德阳': 'deyang',
|
|
601
614
|
'deyang': 'deyang',
|
|
602
|
-
'dy': 'deyang'
|
|
615
|
+
'dy': 'deyang',
|
|
616
|
+
// 旌阳
|
|
617
|
+
'旌阳': 'jingyang',
|
|
618
|
+
'jingyang': 'jingyang',
|
|
619
|
+
'jy': 'jingyang'
|
|
603
620
|
};
|
|
604
621
|
|
|
605
622
|
/**
|
package/index.js
CHANGED
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
const server = new Server(
|
|
39
39
|
{
|
|
40
40
|
name: 'mcp-log-query',
|
|
41
|
-
version: '3.
|
|
41
|
+
version: '3.1.0',
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
capabilities: {
|
|
@@ -72,7 +72,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
72
72
|
},
|
|
73
73
|
env: {
|
|
74
74
|
type: 'string',
|
|
75
|
-
description: '环境标识,不指定则查询测试环境(走 SSH)。可选值:cms/prod/生产(CMS生产环境)、城阳/cy/chengyang、临颖/ly/linying、漯河/lh/luohe、德阳/dy/deyang(私有化环境)'
|
|
75
|
+
description: '环境标识,不指定则查询测试环境(走 SSH)。可选值:cms/prod/生产(CMS生产环境)、城阳/cy/chengyang、临颖/ly/linying、漯河/lh/luohe、德阳/dy/deyang、旌阳/jy/jingyang(私有化环境)'
|
|
76
76
|
},
|
|
77
77
|
from: {
|
|
78
78
|
type: 'string',
|
|
@@ -116,7 +116,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
116
116
|
},
|
|
117
117
|
env: {
|
|
118
118
|
type: 'string',
|
|
119
|
-
description: '环境标识,不指定则查询测试环境(走 SSH)。可选值:cms/prod/生产(CMS生产环境)、城阳/cy/chengyang、临颖/ly/linying、漯河/lh/luohe、德阳/dy/deyang(私有化环境)'
|
|
119
|
+
description: '环境标识,不指定则查询测试环境(走 SSH)。可选值:cms/prod/生产(CMS生产环境)、城阳/cy/chengyang、临颖/ly/linying、漯河/lh/luohe、德阳/dy/deyang、旌阳/jy/jingyang(私有化环境)'
|
|
120
120
|
},
|
|
121
121
|
from: {
|
|
122
122
|
type: 'string',
|
|
@@ -257,7 +257,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
257
257
|
},
|
|
258
258
|
env: {
|
|
259
259
|
type: 'string',
|
|
260
|
-
description: '环境标识,不指定则查询测试环境(走 SSH)。可选值:cms/prod/生产(CMS生产环境)、城阳/cy/chengyang、临颖/ly/linying、漯河/lh/luohe、德阳/dy/deyang(私有化环境)'
|
|
260
|
+
description: '环境标识,不指定则查询测试环境(走 SSH)。可选值:cms/prod/生产(CMS生产环境)、城阳/cy/chengyang、临颖/ly/linying、漯河/lh/luohe、德阳/dy/deyang、旌阳/jy/jingyang(私有化环境)'
|
|
261
261
|
},
|
|
262
262
|
from: {
|
|
263
263
|
type: 'string',
|
|
@@ -303,7 +303,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
303
303
|
properties: {
|
|
304
304
|
env: {
|
|
305
305
|
type: 'string',
|
|
306
|
-
description: '环境标识。可选值:cms/prod/生产(CMS生产环境)、城阳/cy/chengyang、临颖/ly/linying、漯河/lh/luohe、德阳/dy/deyang(私有化环境)',
|
|
306
|
+
description: '环境标识。可选值:cms/prod/生产(CMS生产环境)、城阳/cy/chengyang、临颖/ly/linying、漯河/lh/luohe、德阳/dy/deyang、旌阳/jy/jingyang(私有化环境)',
|
|
307
307
|
default: 'cms'
|
|
308
308
|
},
|
|
309
309
|
project: {
|
|
@@ -756,7 +756,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
756
756
|
async function main() {
|
|
757
757
|
const transport = new StdioServerTransport();
|
|
758
758
|
await server.connect(transport);
|
|
759
|
-
console.error('[MCP] Log Query Server v3.0 已启动 (支持 Loki 生产环境日志)');
|
|
759
|
+
console.error('[MCP] Log Query Server v3.1.0 已启动 (支持 Loki 生产环境日志)');
|
|
760
760
|
}
|
|
761
761
|
|
|
762
762
|
main().catch((error) => {
|