@deepqtech/mcp-server-js 1.0.2 → 1.0.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/cli.mjs CHANGED
@@ -12,14 +12,14 @@ const TOOLS_DEFINITION_FILE_NAME = 'tools-manifest.json';
12
12
  const TOOLS_DEFINITION_FILE_PATH = path.join(__dirname, TOOLS_DEFINITION_FILE_NAME);
13
13
 
14
14
  async function serve() {
15
- console.log(`Starting MCP server from '${TOOLS_DEFINITION_FILE_NAME}'...`);
15
+ console.error(`Starting MCP server from '${TOOLS_DEFINITION_FILE_NAME}'...`);
16
16
  try {
17
17
  const toolsJson = await fs.readFile(TOOLS_DEFINITION_FILE_PATH, 'utf-8');
18
18
  const tools = JSON.parse(toolsJson);
19
19
  if (tools.length === 0) {
20
- console.warn('Warning: No tools found in the definition file. Server will start with no tools.');
20
+ console.error('Warning: No tools found in the definition file. Server will start with no tools.');
21
21
  } else {
22
- console.log(`Loaded ${tools.length} tool(s) from ${TOOLS_DEFINITION_FILE_NAME}.`);
22
+ console.error(`Loaded ${tools.length} tool(s) from ${TOOLS_DEFINITION_FILE_NAME}.`);
23
23
  }
24
24
  await startMcpServer(tools);
25
25
  } catch (error) {
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "src/",
9
9
  "tools-manifest.json"
10
10
  ],
11
- "version": "1.0.2",
11
+ "version": "1.0.4",
12
12
  "main": "index.js",
13
13
  "type": "module",
14
14
  "scripts": {
@@ -116,7 +116,7 @@ export const startMcpServer = async (toolDefinitions) => {
116
116
  try {
117
117
  const transport = new StdioServerTransport();
118
118
  await server.connect(transport);
119
- console.log('MCP Server (stdio) started successfully, ready for requests.');
119
+ console.error('MCP Server (stdio) started successfully, ready for requests.');
120
120
  } catch (error) {
121
121
  console.error('MCP Server failed to start:', error);
122
122
  process.exit(1);
@@ -86,7 +86,7 @@
86
86
  }
87
87
  },
88
88
  "meta": {
89
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
89
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
90
90
  "path": "/mcp-tool/analyze/a-share-fear-greed-index",
91
91
  "method": "POST",
92
92
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -245,7 +245,7 @@
245
245
  }
246
246
  },
247
247
  "meta": {
248
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
248
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
249
249
  "path": "/mcp-tool/analyze/a-share-market-events",
250
250
  "method": "POST",
251
251
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -338,7 +338,7 @@
338
338
  }
339
339
  },
340
340
  "meta": {
341
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
341
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
342
342
  "path": "/mcp-tool/analyze/a-share-market-quotes",
343
343
  "method": "POST",
344
344
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -431,7 +431,7 @@
431
431
  }
432
432
  },
433
433
  "meta": {
434
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
434
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
435
435
  "path": "/mcp-tool/analyze/a-share-temperature",
436
436
  "method": "POST",
437
437
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -514,7 +514,7 @@
514
514
  }
515
515
  },
516
516
  "meta": {
517
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
517
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
518
518
  "path": "/mcp-tool/analyze/etf-basic-info",
519
519
  "method": "POST",
520
520
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -597,7 +597,7 @@
597
597
  }
598
598
  },
599
599
  "meta": {
600
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
600
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
601
601
  "path": "/mcp-tool/analyze/etf-fun-analysis",
602
602
  "method": "POST",
603
603
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -680,7 +680,7 @@
680
680
  }
681
681
  },
682
682
  "meta": {
683
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
683
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
684
684
  "path": "/mcp-tool/analyze/etf-latest-price",
685
685
  "method": "POST",
686
686
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -763,7 +763,7 @@
763
763
  }
764
764
  },
765
765
  "meta": {
766
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
766
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
767
767
  "path": "/mcp-tool/analyze/etf-performance",
768
768
  "method": "POST",
769
769
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -846,7 +846,7 @@
846
846
  }
847
847
  },
848
848
  "meta": {
849
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
849
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
850
850
  "path": "/mcp-tool/analyze/etf-related-news",
851
851
  "method": "POST",
852
852
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -929,7 +929,7 @@
929
929
  }
930
930
  },
931
931
  "meta": {
932
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
932
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
933
933
  "path": "/mcp-tool/analyze/etf-tech-analysis",
934
934
  "method": "POST",
935
935
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -1012,7 +1012,7 @@
1012
1012
  }
1013
1013
  },
1014
1014
  "meta": {
1015
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
1015
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
1016
1016
  "path": "/mcp-tool/analyze/etf-under-assets",
1017
1017
  "method": "POST",
1018
1018
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -1095,7 +1095,7 @@
1095
1095
  }
1096
1096
  },
1097
1097
  "meta": {
1098
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
1098
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
1099
1099
  "path": "/mcp-tool/analyze/finEntityExtract",
1100
1100
  "method": "POST",
1101
1101
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -1178,7 +1178,7 @@
1178
1178
  }
1179
1179
  },
1180
1180
  "meta": {
1181
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
1181
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
1182
1182
  "path": "/mcp-tool/analyze/fund-basic-info",
1183
1183
  "method": "POST",
1184
1184
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -1261,7 +1261,7 @@
1261
1261
  }
1262
1262
  },
1263
1263
  "meta": {
1264
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
1264
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
1265
1265
  "path": "/mcp-tool/analyze/fund-performance",
1266
1266
  "method": "POST",
1267
1267
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -1344,7 +1344,7 @@
1344
1344
  }
1345
1345
  },
1346
1346
  "meta": {
1347
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
1347
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
1348
1348
  "path": "/mcp-tool/analyze/fund-recent-views",
1349
1349
  "method": "POST",
1350
1350
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -1427,7 +1427,7 @@
1427
1427
  }
1428
1428
  },
1429
1429
  "meta": {
1430
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
1430
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
1431
1431
  "path": "/mcp-tool/analyze/fund-under-assets",
1432
1432
  "method": "POST",
1433
1433
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -1576,7 +1576,7 @@
1576
1576
  }
1577
1577
  },
1578
1578
  "meta": {
1579
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
1579
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
1580
1580
  "path": "/mcp-tool/analyze/industry-research",
1581
1581
  "method": "POST",
1582
1582
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -1725,7 +1725,7 @@
1725
1725
  }
1726
1726
  },
1727
1727
  "meta": {
1728
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
1728
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
1729
1729
  "path": "/mcp-tool/analyze/macro-research",
1730
1730
  "method": "POST",
1731
1731
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -1896,7 +1896,7 @@
1896
1896
  }
1897
1897
  },
1898
1898
  "meta": {
1899
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
1899
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
1900
1900
  "path": "/mcp-tool/analyze/official-secu-news",
1901
1901
  "method": "POST",
1902
1902
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -2023,7 +2023,7 @@
2023
2023
  }
2024
2024
  },
2025
2025
  "meta": {
2026
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
2026
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
2027
2027
  "path": "/mcp-tool/analyze/report/rating-static",
2028
2028
  "method": "POST",
2029
2029
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -2128,7 +2128,7 @@
2128
2128
  }
2129
2129
  },
2130
2130
  "meta": {
2131
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
2131
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
2132
2132
  "path": "/mcp-tool/analyze/sector-cap",
2133
2133
  "method": "POST",
2134
2134
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -2233,7 +2233,7 @@
2233
2233
  }
2234
2234
  },
2235
2235
  "meta": {
2236
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
2236
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
2237
2237
  "path": "/mcp-tool/analyze/sector-fun",
2238
2238
  "method": "POST",
2239
2239
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -2338,7 +2338,7 @@
2338
2338
  }
2339
2339
  },
2340
2340
  "meta": {
2341
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
2341
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
2342
2342
  "path": "/mcp-tool/analyze/sector-latest-price",
2343
2343
  "method": "POST",
2344
2344
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -2487,7 +2487,7 @@
2487
2487
  }
2488
2488
  },
2489
2489
  "meta": {
2490
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
2490
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
2491
2491
  "path": "/mcp-tool/analyze/sector-news",
2492
2492
  "method": "POST",
2493
2493
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -2668,7 +2668,7 @@
2668
2668
  }
2669
2669
  },
2670
2670
  "meta": {
2671
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
2671
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
2672
2672
  "path": "/mcp-tool/analyze/sector-price-change-rank",
2673
2673
  "method": "POST",
2674
2674
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -2805,7 +2805,7 @@
2805
2805
  }
2806
2806
  },
2807
2807
  "meta": {
2808
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
2808
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
2809
2809
  "path": "/mcp-tool/analyze/sector-price-change-reason",
2810
2810
  "method": "POST",
2811
2811
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -2932,7 +2932,7 @@
2932
2932
  }
2933
2933
  },
2934
2934
  "meta": {
2935
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
2935
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
2936
2936
  "path": "/mcp-tool/analyze/sector-related-stocks",
2937
2937
  "method": "POST",
2938
2938
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -3081,7 +3081,7 @@
3081
3081
  }
3082
3082
  },
3083
3083
  "meta": {
3084
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
3084
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
3085
3085
  "path": "/mcp-tool/analyze/sector-report",
3086
3086
  "method": "POST",
3087
3087
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -3230,7 +3230,7 @@
3230
3230
  }
3231
3231
  },
3232
3232
  "meta": {
3233
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
3233
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
3234
3234
  "path": "/mcp-tool/analyze/stk-research",
3235
3235
  "method": "POST",
3236
3236
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -3313,7 +3313,7 @@
3313
3313
  }
3314
3314
  },
3315
3315
  "meta": {
3316
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
3316
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
3317
3317
  "path": "/mcp-tool/analyze/stock-biz-highlight",
3318
3318
  "method": "POST",
3319
3319
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -3396,7 +3396,7 @@
3396
3396
  }
3397
3397
  },
3398
3398
  "meta": {
3399
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
3399
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
3400
3400
  "path": "/mcp-tool/analyze/stock-cap-analysis",
3401
3401
  "method": "POST",
3402
3402
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -3479,7 +3479,7 @@
3479
3479
  }
3480
3480
  },
3481
3481
  "meta": {
3482
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
3482
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
3483
3483
  "path": "/mcp-tool/analyze/stock-flexibility",
3484
3484
  "method": "POST",
3485
3485
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -3562,7 +3562,7 @@
3562
3562
  }
3563
3563
  },
3564
3564
  "meta": {
3565
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
3565
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
3566
3566
  "path": "/mcp-tool/analyze/stock-fun-analysis",
3567
3567
  "method": "POST",
3568
3568
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -3645,7 +3645,7 @@
3645
3645
  }
3646
3646
  },
3647
3647
  "meta": {
3648
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
3648
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
3649
3649
  "path": "/mcp-tool/analyze/stock-latest-price",
3650
3650
  "method": "POST",
3651
3651
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -3728,7 +3728,7 @@
3728
3728
  }
3729
3729
  },
3730
3730
  "meta": {
3731
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
3731
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
3732
3732
  "path": "/mcp-tool/analyze/stock-rep-insight",
3733
3733
  "method": "POST",
3734
3734
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -3811,7 +3811,7 @@
3811
3811
  }
3812
3812
  },
3813
3813
  "meta": {
3814
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
3814
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
3815
3815
  "path": "/mcp-tool/analyze/stock-risk-warning",
3816
3816
  "method": "POST",
3817
3817
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -3894,7 +3894,7 @@
3894
3894
  }
3895
3895
  },
3896
3896
  "meta": {
3897
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
3897
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
3898
3898
  "path": "/mcp-tool/analyze/stock-tech-analysis",
3899
3899
  "method": "POST",
3900
3900
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -3999,7 +3999,7 @@
3999
3999
  }
4000
4000
  },
4001
4001
  "meta": {
4002
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
4002
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
4003
4003
  "path": "/mcp-tool/analyze/stock-valuation",
4004
4004
  "method": "POST",
4005
4005
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -4170,7 +4170,7 @@
4170
4170
  }
4171
4171
  },
4172
4172
  "meta": {
4173
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
4173
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
4174
4174
  "path": "/mcp-tool/analyze/we-media-secu-news",
4175
4175
  "method": "POST",
4176
4176
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -4253,7 +4253,7 @@
4253
4253
  }
4254
4254
  },
4255
4255
  "meta": {
4256
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
4256
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
4257
4257
  "path": "/mcp-tool/guess-stock-code",
4258
4258
  "method": "POST",
4259
4259
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -4336,7 +4336,7 @@
4336
4336
  }
4337
4337
  },
4338
4338
  "meta": {
4339
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
4339
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
4340
4340
  "path": "/mcp-tool/guess/fund",
4341
4341
  "method": "POST",
4342
4342
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -4406,7 +4406,7 @@
4406
4406
  }
4407
4407
  },
4408
4408
  "meta": {
4409
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
4409
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
4410
4410
  "path": "/mcp-tool/query/current-datetime",
4411
4411
  "method": "POST",
4412
4412
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -4499,7 +4499,7 @@
4499
4499
  }
4500
4500
  },
4501
4501
  "meta": {
4502
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
4502
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
4503
4503
  "path": "/mcp-tool/query/market-viewpoint",
4504
4504
  "method": "POST",
4505
4505
  "authorizationEnvKey": "DEEPQ_API_KEY"
@@ -4569,10 +4569,10 @@
4569
4569
  }
4570
4570
  },
4571
4571
  "meta": {
4572
- "baseUrl": "https://cgi.deepq.tech:9196/cloud-tools-auth/",
4572
+ "baseUrl": "https://cgi.deepq.tech:9198/cloud-tools-auth/",
4573
4573
  "path": "/mcp-tool/query/recent-trans-date",
4574
4574
  "method": "POST",
4575
4575
  "authorizationEnvKey": "DEEPQ_API_KEY"
4576
4576
  }
4577
4577
  }
4578
- ]
4578
+ ]