Skip to main content
Glama

Plane MCP Server

Official
by makeplane

delete_cycle_issue

Remove a specific issue from a project cycle using the Plane MCP Server. Requires project, cycle, and issue IDs to execute the action effectively.

Instructions

Remove an issue from a cycle

Input Schema

NameRequiredDescriptionDefault
cycle_idYesThe uuid identifier of the cycle containing the issue
issue_idYesThe uuid identifier of the issue to remove from the cycle
project_idYesThe uuid identifier of the project containing the cycle

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "cycle_id": { "description": "The uuid identifier of the cycle containing the issue", "type": "string" }, "issue_id": { "description": "The uuid identifier of the issue to remove from the cycle", "type": "string" }, "project_id": { "description": "The uuid identifier of the project containing the cycle", "type": "string" } }, "required": [ "project_id", "cycle_id", "issue_id" ], "type": "object" }

Implementation Reference

  • Handler function that sends a DELETE request to the Plane API to remove the specified issue from the cycle and returns a success confirmation.
    async ({ project_id, cycle_id, issue_id }) => { await makePlaneRequest( "DELETE", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/cycles/${cycle_id}/cycle-issues/${issue_id}/` ); return { content: [ { type: "text", text: "Issue removed from cycle successfully", }, ], }; }
  • Zod input schema defining the required parameters: project_id, cycle_id, and issue_id.
    { project_id: z.string().describe("The uuid identifier of the project containing the cycle"), cycle_id: z.string().describe("The uuid identifier of the cycle containing the issue"), issue_id: z.string().describe("The uuid identifier of the issue to remove from the cycle"), },
  • Full registration of the 'delete_cycle_issue' tool on the MCP server, including description, input schema, and inline handler function.
    server.tool( "delete_cycle_issue", "Remove an issue from a cycle", { project_id: z.string().describe("The uuid identifier of the project containing the cycle"), cycle_id: z.string().describe("The uuid identifier of the cycle containing the issue"), issue_id: z.string().describe("The uuid identifier of the issue to remove from the cycle"), }, async ({ project_id, cycle_id, issue_id }) => { await makePlaneRequest( "DELETE", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/cycles/${cycle_id}/cycle-issues/${issue_id}/` ); return { content: [ { type: "text", text: "Issue removed from cycle successfully", }, ], }; } );
  • Utility function makePlaneRequest used in the handler to perform HTTP requests to the Plane API with authentication.
    export async function makePlaneRequest<T>(method: string, path: string, body: any = null): Promise<T> { const hostUrl = process.env.PLANE_API_HOST_URL || "https://api.plane.so/"; const host = hostUrl.endsWith("/") ? hostUrl : `${hostUrl}/`; const url = `${host}api/v1/${path}`; const headers: Record<string, string> = { "X-API-Key": process.env.PLANE_API_KEY || "", }; // Only add Content-Type for non-GET requests if (method.toUpperCase() !== "GET") { headers["Content-Type"] = "application/json"; } try { const config: AxiosRequestConfig = { url, method, headers, }; // Only include body for non-GET requests if (method.toUpperCase() !== "GET" && body !== null) { config.data = body; } const response = await axios(config); return response.data; } catch (error) { if (axios.isAxiosError(error)) { throw new Error(`Request failed: ${error.message}`); } throw error; } }

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/makeplane/plane-mcp-server'

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