@tencentcloud/sdk-mcp 1.7.6 → 1.7.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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## Version 1.7.7 @2026.09.11
4
+
5
+ ### 变更
6
+ - 优化 MCP 连接稳定性与可观测性,提升异常定位与运行诊断效率。
7
+
3
8
  ## Version 1.7.6 @2026.09.09
4
9
 
5
10
  ### 变更
package/README.md CHANGED
@@ -88,6 +88,11 @@
88
88
 
89
89
  > 仅展示最近更新,完整历史请查看 `CHANGELOG.md`。
90
90
 
91
+ ## Version 1.7.7 @2026.09.11
92
+
93
+ ### 变更
94
+ - 优化 MCP 连接稳定性与可观测性,提升异常定位与运行诊断效率。
95
+
91
96
  ## Version 1.7.6 @2026.09.09
92
97
 
93
98
  ### 变更
package/index.js CHANGED
@@ -2,15 +2,37 @@
2
2
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
3
3
  import { createServer } from './server.js';
4
4
  import { ServerConfig } from './server-config.js';
5
+ import { normalizeError } from './utils/normalize-error.js';
6
+ import { reportCLSClient } from './utils/report-cls-client.js';
5
7
  // 启动服务器
8
+ let startTime = 0;
6
9
  async function main() {
10
+ startTime = Date.now();
7
11
  ServerConfig.getInstance();
8
12
  const server = createServer();
9
13
  const transport = new StdioServerTransport();
10
14
  await server.connect(transport);
11
15
  console.error('RTC Official MCP Server running on stdio');
12
16
  }
13
- main().catch((error) => {
17
+ main().then(() => {
18
+ reportCLSClient({
19
+ method: 'mcp_connect_success',
20
+ from: 'stdio',
21
+ info: JSON.stringify({
22
+ status: 'success',
23
+ latency_ms: Date.now() - startTime,
24
+ }),
25
+ });
26
+ }).catch((error) => {
27
+ reportCLSClient({
28
+ method: 'mcp_connect_fail',
29
+ from: 'stdio',
30
+ info: JSON.stringify({
31
+ status: 'fail',
32
+ latency_ms: Date.now() - startTime,
33
+ ...normalizeError(error),
34
+ }),
35
+ });
14
36
  console.error('Server error:', error);
15
37
  process.exit(1);
16
38
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencentcloud/sdk-mcp",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "description": "Tencent Cloud MCP Server for SDK",
5
5
  "type": "module",
6
6
  "main": "index.js",