Skip to main content
Glama
Lexmata

Bitbucket Cloud MCP Server

by Lexmata

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

Implementation Reference

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

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