@zzp123/mcp-zentao 1.18.6 → 1.18.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
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.18.7] - 2025-01-17
9
+
10
+ ### Fixed
11
+ - **修复配置读取失败日志导致 MCP 启动失败** 🔧
12
+ - 删除 `config.ts` 中的 stderr 错误输出
13
+ - 配置文件读取失败时静默返回 null,不输出任何日志
14
+ - 配置不存在是正常情况(首次使用),不应该有错误输出
15
+ - 避免 stderr 输出干扰 MCP 服务器启动
16
+
17
+ ### Changed
18
+ - `loadConfig()` 函数现在完全静默,失败时只返回 null
19
+ - 错误处理完全由调用方(initZentao 工具)负责
20
+
21
+ ### Impact
22
+ - ✅ MCP 服务器启动更稳定
23
+ - ✅ 首次使用时不会有错误提示
24
+ - ✅ 完全符合 MCP stdio 协议(stderr 只用于致命错误)
25
+
8
26
  ## [1.18.6] - 2025-01-17
9
27
 
10
28
  ### Fixed
package/dist/config.js CHANGED
@@ -22,7 +22,7 @@ export function loadConfig() {
22
22
  }
23
23
  }
24
24
  catch (error) {
25
- process.stderr.write('[ERROR] Failed to load config: ' + String(error) + '\n');
25
+ // 静默失败,返回 null 让调用方处理
26
26
  }
27
27
  return null;
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zzp123/mcp-zentao",
3
- "version": "1.18.6",
3
+ "version": "1.18.7",
4
4
  "description": "禅道项目管理系统的高级API集成包 - 完整版,包含所有94个工具。另有产品经理、测试工程师、开发工程师专用精简版本可选",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",