feat(wecom): 企微 MCP 增加开发计划版本与任务查询
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -201,4 +201,47 @@ export const WECOM_PLUGIN_MCP_TOOL_DEFS: ToolDef[] = [
|
||||
),
|
||||
),
|
||||
},
|
||||
{
|
||||
name: 'query_versions',
|
||||
description: WECOM_PLUGIN_MCP_TOOL_META.query_versions.description,
|
||||
inputSchema: {
|
||||
q: z.string().optional().describe('版本号关键词,如 v3.5.18'),
|
||||
status: z
|
||||
.enum(['PENDING', 'IN_PROGRESS', 'TESTING', 'RELEASED', 'STOPPED'])
|
||||
.optional()
|
||||
.describe('版本状态:待启动/开发中/测试/已上线/已停止'),
|
||||
page,
|
||||
pageSize,
|
||||
},
|
||||
invoke: (ctx, args) =>
|
||||
jsonResult(() =>
|
||||
ctx.query.queryVersions(ctx.plugin, ctx.wecomUserId, str(args, 'q'), str(args, 'status'), str(args, 'page'), str(args, 'pageSize')),
|
||||
),
|
||||
},
|
||||
{
|
||||
name: 'query_tasks',
|
||||
description: WECOM_PLUGIN_MCP_TOOL_META.query_tasks.description,
|
||||
inputSchema: {
|
||||
status: z
|
||||
.enum(['TODO', 'IN_PROGRESS', 'DEVELOPED', 'RELEASED', 'STOPPED'])
|
||||
.optional()
|
||||
.describe('任务状态:TODO 待开发、IN_PROGRESS 开发中、DEVELOPED 已开发、RELEASED 已上线、STOPPED 已停止'),
|
||||
q: z.string().optional().describe('任务编号或内容关键词'),
|
||||
versionNo: z.string().optional().describe('限定某版本号,如 v3.5.18'),
|
||||
page,
|
||||
pageSize,
|
||||
},
|
||||
invoke: (ctx, args) =>
|
||||
jsonResult(() =>
|
||||
ctx.query.queryTasks(
|
||||
ctx.plugin,
|
||||
ctx.wecomUserId,
|
||||
str(args, 'q'),
|
||||
str(args, 'status'),
|
||||
str(args, 'versionNo'),
|
||||
str(args, 'page'),
|
||||
str(args, 'pageSize'),
|
||||
),
|
||||
),
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user