delete_issue_label
Remove a label from an issue in an AtomGit repository to organize and categorize project tasks effectively.
Instructions
Remove a label from an issue in a repository
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner, typically referred to as 'username'. Case-insensitive. | |
| repo | Yes | Repository name. Case-insensitive. | |
| issue_number | Yes | Issue number | |
| name | Yes | Label name |
Implementation Reference
- operations/label.ts:142-154 (handler)Core handler function that executes the logic to delete an issue label by making a DELETE request to the AtomGit API.export async function deleteIssueLabel( owner: string, repo: string, issue_number: number, name: string ) { return atomGitRequest( `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/issues/${encodeURIComponent(issue_number)}/labels/${encodeURIComponent(name)}`, { method: "DELETE", } ); }
- operations/label.ts:31-36 (schema)Zod schema defining the input parameters (owner, repo, issue_number, name) for the delete_issue_label tool.export const DeleteIssueLabelSchema = z.object({ owner: z.string().describe("Repository owner, typically referred to as 'username'. Case-insensitive."), repo: z.string().describe("Repository name. Case-insensitive."), issue_number: z.number().describe("Issue number"), name: z.string().describe("Label name"), });
- index.ts:192-196 (registration)Registration of the delete_issue_label tool in the MCP server's list of tools, specifying name, description, and input schema.{ name: "delete_issue_label", description: "Remove a label from an issue in a repository", inputSchema: zodToJsonSchema(label.DeleteIssueLabelSchema), },
- index.ts:485-493 (handler)MCP tool call handler that parses input arguments using the schema, invokes the deleteIssueLabel function, and returns the result.case "delete_issue_label": { const args = label.DeleteIssueLabelSchema.parse(request.params.arguments); const { owner, repo, issue_number, name } = args; const result = await label.deleteIssueLabel(owner, repo, issue_number, name); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }