delete_issue
Remove an issue from a Bitbucket Cloud repository by specifying workspace, repository, and issue ID.
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:1041-1045 (handler)The handler logic for the 'delete_issue' tool within the ToolHandler class's handleTool method. It validates input parameters using the Zod schema, calls the IssuesAPI.delete method to perform the deletion, and returns a success response.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 definition for the 'delete_issue' tool input validation, specifying workspace, repo_slug, and issue_id parameters.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)Tool registration entry in the toolDefinitions array, defining the name, description, and input schema for MCP integration.{ 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'], }, },