Skip to main content
Glama

delete_issue

Remove work items from CODING DevOps projects by specifying the issue code and project name using the delete_issue tool on the MCP server.

Instructions

删除工作项

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issueCodeYes事项编号
projectNameYes项目名称

Implementation Reference

  • Core handler function for the 'delete_issue' tool. Validates input parameters, initializes the CodingConnection, calls the API to delete the issue, and returns a formatted MCP response with success message.
    export async function deleteIssue(args: { projectName: string; issueCode: number; }, config: CodingDevOpsConfig) { if (!args.projectName) { throw new McpError(ErrorCode.InvalidParams, 'projectName02 is required'); } if (!args.issueCode) { throw new McpError(ErrorCode.InvalidParams, 'Issue code is required'); } CodingConnection.initialize(config); const connection = CodingConnection.getInstance(); await connection.deleteIssue({ projectName: args.projectName, issueCode: args.issueCode }); return { content: [ { type: 'text', text: `Successfully deleted issue ${args.issueCode} in project ${args.projectName}`, }, ], }; }
  • Schema definition for the 'delete_issue' tool, specifying input parameters projectName (string) and issueCode (number) as required.
    { name: 'delete_issue', description: '删除工作项', inputSchema: { type: 'object', properties: { projectName: { type: 'string', description: '项目名称', }, issueCode: { type: 'number', description: '事项编号', } }, required: ['projectName', 'issueCode'], } },
  • src/index.ts:124-126 (registration)
    Registration of the 'delete_issue' tool handler in the main MCP CallToolRequest switch statement, routing calls to tools.issue.deleteIssue.
    case 'delete_issue': result = await tools.issue.deleteIssue(request.params.arguments); break;
  • Helper method in CodingConnection class that sends the HTTP POST request to the CODING DevOps API to delete the specified issue.
    public async deleteIssue(params: { projectName: string; issueCode: number; }): Promise<void> { const requestBody = { Action: 'DeleteIssue', ProjectName: params.projectName, IssueCode: params.issueCode }; await axios.post( CodingConnection.config.apiUrl, requestBody, { headers: { 'Authorization': `token ${CodingConnection.config.token}`, 'Content-Type': 'application/json', 'Accept': 'application/json' } } ); }
  • src/index.ts:61-65 (registration)
    Initialization of tool instances, including issueTools which provides the deleteIssue handler and its schema definitions.
    const toolInstances = { issue: issueTools.initialize(this.config), project: projectTools.initialize(this.config), code: codeTools.initialize(this.config), };

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yupengfei1209/coding_devops_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server