mcp-log-query-server 2.1.1 → 3.2.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.
Files changed (3) hide show
  1. package/config.js +36 -1
  2. package/index.js +6 -6
  3. package/package.json +1 -1
package/config.js CHANGED
@@ -314,6 +314,24 @@ export const SERVICES = {
314
314
  logPath: '/www/logs/clife-senior-work-order-center-app/normal_logs',
315
315
  logFile: 'normal.log',
316
316
  aliases: ['work-order-center', 'work-order', '工单中心', '工单']
317
+ },
318
+ 'clife-senior-station-assistant-bff': {
319
+ name: 'clife-senior-station-assistant-bff',
320
+ description: '养老驿站助手BFF服务',
321
+ namespace: 'saas-itest',
322
+ podPattern: 'clife-senior-station-assistant-bff-app',
323
+ logPath: '/www/logs/clife-senior-station-assistant-bff-app/normal_logs',
324
+ logFile: 'normal.log',
325
+ aliases: ['station-assistant-bff', 'station-assistant', '驿站助手', '驿站BFF']
326
+ },
327
+ 'clife-senior-third-bff': {
328
+ name: 'clife-senior-third-bff',
329
+ description: '养老第三方BFF服务',
330
+ namespace: 'saas-itest',
331
+ podPattern: 'clife-senior-third-bff-app',
332
+ logPath: '/www/logs/clife-senior-third-bff-app/normal_logs',
333
+ logFile: 'normal.log',
334
+ aliases: ['third-bff', '第三方BFF']
317
335
  }
318
336
  };
319
337
 
@@ -570,6 +588,19 @@ export const LOKI_ENVIRONMENTS = {
570
588
  password: 'nihao123!!',
571
589
  defaultProject: 'senior',
572
590
  hasProjectLabel: false
591
+ },
592
+
593
+ // 旌阳私有化
594
+ 'jingyang': {
595
+ description: '旌阳私有化环境',
596
+ grafanaUrl: 'https://www.jymzzhyl.cn/journals-loki',
597
+ datasourceUid: 'fa2cf4f6-4ee9-424b-a7c4-fa8be330f0c2',
598
+ datasourceId: 1,
599
+ orgId: 1,
600
+ username: 'loki',
601
+ password: 'nihao123!!',
602
+ defaultProject: 'senior',
603
+ hasProjectLabel: false
573
604
  }
574
605
  };
575
606
 
@@ -599,7 +630,11 @@ export const LOKI_ENV_ALIASES = {
599
630
  // 德阳
600
631
  '德阳': 'deyang',
601
632
  'deyang': 'deyang',
602
- 'dy': 'deyang'
633
+ 'dy': 'deyang',
634
+ // 旌阳
635
+ '旌阳': 'jingyang',
636
+ 'jingyang': 'jingyang',
637
+ 'jy': 'jingyang'
603
638
  };
604
639
 
605
640
  /**
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.0.0',
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-log-query-server",
3
- "version": "2.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "MCP Server for querying server logs via SSH jump host and Grafana Loki API",
5
5
  "main": "index.js",
6
6
  "type": "module",