Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion src/tools/issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { z } from "zod";
import { makePlaneRequest } from "../common/request-helper.js";
import { Issue as IssueSchema } from "../schemas.js";

export const registerIssueTools = (server: McpServer) => {
export const registerIssueTools = (server: McpServer): void => {
server.tool(
"get_issue_using_readable_identifier",
"Get all issues for a specific project. When issue identifier is provided something like FIRST-123, ABC-123, etc. For FIRST-123, project_identifier is FIRST and issue_identifier is 123",
Expand Down Expand Up @@ -129,4 +129,27 @@ export const registerIssueTools = (server: McpServer) => {
};
}
);

server.tool(
"delete_issue",
"Delete an issue permanently. This requests project_id and issue_id as uuid parameters. If you have a readable identifier, you can use the get_issue_using_readable_identifier tool to get the issue_id and project_id. WARNING: This action cannot be undone.",
{
project_id: z.string().describe("The uuid identifier of the project containing the issue"),
issue_id: z.string().describe("The uuid identifier of the issue to delete"),
},
async ({ project_id, issue_id }) => {
await makePlaneRequest(
"DELETE",
`workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/issues/${issue_id}/`
);
return {
content: [
{
type: "text",
text: `Issue ${issue_id} has been successfully deleted from project ${project_id}.`,
},
],
};
}
);
};