@bangdao-ai/zentao-mcp 2.0.4 → 2.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bangdao-ai/zentao-mcp",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "禅道项目管理AI中枢 v2.0 — 35+MCP工具覆盖需求·任务·Bug·用例·发布·我的地盘全生命周期,原生API模式,Bug智能分类引擎+CSV批量用例导入+截图上传,一句话驱动禅道",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -792,7 +792,7 @@ class ZenTaoNativeClient:
792
792
  优先使用 allneedlist/uploadbyapi(token 认证兼容),
793
793
  回退到 file/upload(需要 web session 权限,部分环境 401)。
794
794
  """
795
- file_path = _safe_path(file_path, must_exist=True)
795
+ file_path = _safe_path(file_path)
796
796
  if not os.path.exists(file_path):
797
797
  return {"status": 0, "message": "fail",
798
798
  "info": f"文件不存在: {file_path}", "data": {}}
@@ -1461,7 +1461,7 @@ class ZenTaoNexus:
1461
1461
  return fieldnames, rows, case_type
1462
1462
 
1463
1463
  def create_case_from_csv(self, csv_file_path, case_type=None) -> list:
1464
- csv_file_path = _safe_path(csv_file_path, must_exist=True)
1464
+ csv_file_path = _safe_path(csv_file_path)
1465
1465
  if not os.path.exists(csv_file_path):
1466
1466
  return [{"status": 0, "message": f"CSV文件不存在: {csv_file_path}"}]
1467
1467
 
@@ -1581,7 +1581,7 @@ class ZenTaoNexus:
1581
1581
  return results
1582
1582
 
1583
1583
  def submit_csv_cases_to_zentao(self, csv_file_path, case_type=None) -> Dict:
1584
- csv_file_path = _safe_path(csv_file_path, must_exist=True)
1584
+ csv_file_path = _safe_path(csv_file_path)
1585
1585
  if not os.path.exists(csv_file_path):
1586
1586
  return {"status": "error", "message": f"CSV文件不存在: {csv_file_path}",
1587
1587
  "total_cases": 0, "success_count": 0, "failed_count": 0, "success_rate": 0.0}