delete_issue
Remove issues from Bitbucket Cloud repositories to maintain clean project tracking and resolve completed tasks.
Instructions
Delete an issue from a repository.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | The workspace slug | |
| repo_slug | Yes | The repository slug | |
| issue_id | Yes | The issue ID |
Implementation Reference
- src/tools/index.ts:1043-1047 (handler)Handler for the delete_issue tool: parses arguments using the schema, calls the IssuesAPI.delete method, and returns a success message.case 'delete_issue': { const params = toolSchemas.delete_issue.parse(args); await this.issues.delete(params.workspace, params.repo_slug, params.issue_id); return { success: true, message: 'Issue deleted' }; }
- src/tools/index.ts:245-249 (schema)Zod schema defining the input parameters for the delete_issue tool.delete_issue: z.object({ workspace: z.string().describe('The workspace slug'), repo_slug: z.string().describe('The repository slug'), issue_id: z.number().describe('The issue ID'), }),
- src/tools/index.ts:759-771 (registration)Registration of the delete_issue tool in the MCP tool definitions array, including name, description, and input schema reference.{ name: 'delete_issue', description: 'Delete an issue from a repository.', inputSchema: { type: 'object' as const, properties: { workspace: { type: 'string', description: 'The workspace slug' }, repo_slug: { type: 'string', description: 'The repository slug' }, issue_id: { type: 'number', description: 'The issue ID' }, }, required: ['workspace', 'repo_slug', 'issue_id'], }, },