Skip to main content
Glama

delete_project

Remove a GitHub project by specifying its project ID using the 'delete_project' tool on the mcp-github-project-manager server, ensuring clean project management.

Instructions

Delete a GitHub project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYes

Implementation Reference

  • The main handler function that executes the delete project logic by delegating to the GitHubProjectRepository.
    async deleteProject(data: { projectId: string; }): Promise<{ success: boolean; message: string }> { try { await this.projectRepo.delete(data.projectId); return { success: true, message: `Project ${data.projectId} has been deleted`, }; } catch (error) { throw this.mapErrorToMCPError(error); } }
  • Low-level repository method that performs the actual GraphQL mutation to delete the GitHub ProjectV2.
    async delete(id: ProjectId): Promise<void> { const mutation = ` mutation($input: DeleteProjectV2Input!) { deleteProjectV2(input: $input) { projectV2 { id } } } `; await this.graphql(mutation, { input: { projectId: id, }, }); }
  • Tool definition with input schema (projectId: string), description, and example usage.
    export const deleteProjectTool: ToolDefinition<DeleteProjectArgs> = { name: "delete_project", description: "Delete a GitHub project", schema: deleteProjectSchema as unknown as ToolSchema<DeleteProjectArgs>, examples: [ { name: "Delete project", description: "Delete a GitHub project by ID", args: { projectId: "PVT_kwDOLhQ7gc4AOEbH" } } ] };
  • Registers the deleteProjectTool in the central ToolRegistry singleton.
    this.registerTool(deleteProjectTool);
  • MCP server request handler that dispatches 'delete_project' tool calls to the ProjectManagementService.
    case "delete_project": return await this.service.deleteProject(args);

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