@cnbcool/mcp-server 0.4.1 → 0.4.2
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/dist/tools/issueTools.js +20 -4
- package/package.json +1 -1
package/dist/tools/issueTools.js
CHANGED
|
@@ -72,15 +72,23 @@ export default function registerIssueTools(server) {
|
|
|
72
72
|
labels: z
|
|
73
73
|
.preprocess((val) => (val === null ? undefined : val), z.array(z.string()).optional())
|
|
74
74
|
.describe('一个或多个 Issue 标签'),
|
|
75
|
-
priority: z.preprocess((val) => (val === null ? undefined : val), z.string().optional()).describe('Issue 优先级')
|
|
76
|
-
|
|
75
|
+
priority: z.preprocess((val) => (val === null ? undefined : val), z.string().optional()).describe('Issue 优先级'),
|
|
76
|
+
end_date: z
|
|
77
|
+
.preprocess((val) => (val === null ? undefined : val), z.string().optional())
|
|
78
|
+
.describe('Issue 截止时间,格式为 YYYY-MM-DD'),
|
|
79
|
+
start_date: z
|
|
80
|
+
.preprocess((val) => (val === null ? undefined : val), z.string().optional())
|
|
81
|
+
.describe('Issue 起始时间,格式为 YYYY-MM-DD')
|
|
82
|
+
}, async ({ repo, title, body, assignees, labels, priority, end_date, start_date }) => {
|
|
77
83
|
try {
|
|
78
84
|
const issue = await createIssue(repo, {
|
|
79
85
|
title,
|
|
80
86
|
body,
|
|
81
87
|
assignees,
|
|
82
88
|
labels,
|
|
83
|
-
priority
|
|
89
|
+
priority,
|
|
90
|
+
end_date,
|
|
91
|
+
start_date
|
|
84
92
|
});
|
|
85
93
|
return formatTextToolResult(JSON.stringify(issue, null, 2), 'create-issue');
|
|
86
94
|
}
|
|
@@ -94,16 +102,24 @@ export default function registerIssueTools(server) {
|
|
|
94
102
|
title: z.preprocess((val) => (val === null ? undefined : val), z.string().optional()).describe('Issue 标题'),
|
|
95
103
|
body: z.preprocess((val) => (val === null ? undefined : val), z.string().optional()).describe('Issue 描述'),
|
|
96
104
|
priority: z.preprocess((val) => (val === null ? undefined : val), z.string().optional()).describe('Issue 优先级'),
|
|
105
|
+
end_date: z
|
|
106
|
+
.preprocess((val) => (val === null ? undefined : val), z.string().optional())
|
|
107
|
+
.describe('Issue 截止时间,格式为 YYYY-MM-DD'),
|
|
108
|
+
start_date: z
|
|
109
|
+
.preprocess((val) => (val === null ? undefined : val), z.string().optional())
|
|
110
|
+
.describe('Issue 起始时间,格式为 YYYY-MM-DD'),
|
|
97
111
|
state: z.preprocess((val) => (val === null ? undefined : val), z.string().optional()).describe('Issue 状态'),
|
|
98
112
|
state_reason: z
|
|
99
113
|
.preprocess((val) => (val === null ? undefined : val), z.enum(['completed', 'not_planned', 'reopened']).optional())
|
|
100
114
|
.describe('Issue 状态原因')
|
|
101
|
-
}, async ({ repo, issueId, title, body, priority, state, state_reason }) => {
|
|
115
|
+
}, async ({ repo, issueId, title, body, priority, end_date, start_date, state, state_reason }) => {
|
|
102
116
|
try {
|
|
103
117
|
const issue = await updateIssue(repo, issueId, {
|
|
104
118
|
title,
|
|
105
119
|
body,
|
|
106
120
|
priority,
|
|
121
|
+
end_date,
|
|
122
|
+
start_date,
|
|
107
123
|
state,
|
|
108
124
|
state_reason
|
|
109
125
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cnbcool/mcp-server",
|
|
3
3
|
"description": "CNB MCP Server. A comprehensive MCP server that provides seamless integration to the CNB's API(https://cnb.cool), offering a wide range of tools for repository management, pipelines operations and collaboration features",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.2",
|
|
5
5
|
"main": "./dist/stdio.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"cnb-mcp-stdio": "dist/stdio.js",
|