@zzp123/mcp-zentao 1.8.6 → 1.8.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 +12 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ 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.8.7] - 2025-11-06
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **修复 uploadImageFromClipboard 工具的图片URL生成问题**
|
|
12
|
+
- 修正图片访问URL格式:从复杂的API参数格式改为简洁的 `/file-read-{id}.png` 格式
|
|
13
|
+
- 确保上传后的图片能够正确显示和访问
|
|
14
|
+
- URL示例:`http://47.120.4.95:7137/zentao/file-read-3750.png`
|
|
15
|
+
|
|
16
|
+
### Technical
|
|
17
|
+
- 简化图片URL生成逻辑
|
|
18
|
+
- 提高图片访问的兼容性和可靠性
|
|
19
|
+
|
|
8
20
|
## [1.8.6] - 2025-11-06
|
|
9
21
|
|
|
10
22
|
### Fixed
|
package/dist/index.js
CHANGED
|
@@ -1284,7 +1284,7 @@ server.tool("uploadImageFromClipboard", "上传剪贴板图片到禅道 - 自动
|
|
|
1284
1284
|
// 生成禅道需要的 HTML 格式
|
|
1285
1285
|
const fileId = uploadResult.id;
|
|
1286
1286
|
const baseUrl = zentaoApi.getConfig().url;
|
|
1287
|
-
const imageUrl = `${baseUrl}/zentao/
|
|
1287
|
+
const imageUrl = `${baseUrl}/zentao/file-read-${fileId}.png`;
|
|
1288
1288
|
const imageHtml = `<p><img onload="setImageSize(this,0)" src="${imageUrl}" alt="${finalFilename}" /></p>`;
|
|
1289
1289
|
const response = {
|
|
1290
1290
|
success: true,
|