Skip to main content
Glama
Lexmata

Bitbucket Cloud MCP Server

by Lexmata

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
NameRequiredDescriptionDefault
workspaceYesThe workspace slug
repo_slugYesThe repository slug
issue_idYesThe issue ID

Implementation Reference

  • 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' }; }
  • 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'), }),
  • 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'], }, },

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/Lexmata/bitbucket-mcp'

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