alibabacloud-devops-mcp-server
Advanced tools
@@ -33,3 +33,2 @@ import { yunxiaoRequest } from "../../common/utils.js"; | ||
catch (error) { | ||
console.warn("获取当前用户信息失败,将使用原始值:", error); | ||
finalAssignedTo = assignedTo; | ||
@@ -69,5 +68,4 @@ finalCreator = creator; | ||
if (includeDetails) { | ||
// 找出description为null的工作项,同时确保id是有效的字符串 | ||
const itemsNeedingDetails = workItems.filter(item => typeof item.id === 'string' && item.id.length > 0 && | ||
(item.description === null || item.description === undefined)); | ||
const itemsNeedingDetails = workItems.filter(item => item.id.length > 0 && | ||
(item.description === null || item.description === undefined || item.description === "")); | ||
if (itemsNeedingDetails.length > 0) { | ||
@@ -78,3 +76,3 @@ // 分批并发获取详情 | ||
return workItems.map(item => { | ||
if (typeof item.id === 'string' && descriptionMap.has(item.id)) { | ||
if (descriptionMap.has(item.id)) { | ||
return { | ||
@@ -98,5 +96,2 @@ ...item, | ||
const limitedItems = workItems.slice(0, maxItems); | ||
if (workItems.length > maxItems) { | ||
console.log(`工作项数量较多,只处理前 ${maxItems} 个`); | ||
} | ||
// 分批处理 | ||
@@ -125,3 +120,2 @@ for (let i = 0; i < limitedItems.length; i += batchSize) { | ||
catch (error) { | ||
console.warn(`获取工作项 ${itemId} 详情失败:`, error); | ||
return { | ||
@@ -128,0 +122,0 @@ id: itemId, |
{ | ||
"name": "alibabacloud-devops-mcp-server", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "MCP Server for using the alibabacloud-devops API: allows AI assistants to directly participate in development collaboration, helping teams optimize development processes and improve efficiency.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
206561
-0.2%3695
-0.16%