Skip to main content
Glama

delete_milestone

Remove a GitHub milestone by specifying its unique ID. This tool helps manage GitHub projects by eliminating outdated or completed milestones efficiently.

Instructions

Delete a GitHub milestone

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
milestoneIdYes

Implementation Reference

  • MCP tool handler in executeToolHandler switch statement that executes the delete_milestone tool by calling ProjectManagementService.deleteMilestone
    case "delete_milestone": return await this.service.deleteMilestone(args);
  • Tool definition including name, description, input schema (deleteMilestoneSchema), and examples for delete_milestone
    export const deleteMilestoneTool: ToolDefinition<DeleteMilestoneArgs> = { name: "delete_milestone", description: "Delete a GitHub milestone", schema: deleteMilestoneSchema as unknown as ToolSchema<DeleteMilestoneArgs>, examples: [ { name: "Delete milestone", description: "Delete a milestone by ID", args: { milestoneId: "42" } } ] };
  • Zod input validation schema for delete_milestone tool requiring milestoneId
    export const deleteMilestoneSchema = z.object({ milestoneId: z.string().min(1, "Milestone ID is required"), }); export type DeleteMilestoneArgs = z.infer<typeof deleteMilestoneSchema>;
  • Registration of deleteMilestoneTool in the central ToolRegistry singleton
    this.registerTool(deleteMilestoneTool);
  • Core deletion logic in GitHubMilestoneRepository using Octokit REST API to delete the milestone
    async delete(id: MilestoneId): Promise<void> { // Use REST API for milestone deletion since GraphQL doesn't support it await this.rest( (params) => this.octokit.rest.issues.deleteMilestone(params), { milestone_number: parseInt(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/kunwarVivek/mcp-github-project-manager'

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