From 3baf0ae6b282662c6a4d3071eb72c19856bd27f2 Mon Sep 17 00:00:00 2001 From: ejones40 Date: Mon, 28 Apr 2025 04:35:58 -0500 Subject: [PATCH 1/2] Update request helper to not send body for GET requests Co-authored-by: Ethan Jones --- src/common/request-helper.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/common/request-helper.ts b/src/common/request-helper.ts index d4f07e4..b6ddc21 100644 --- a/src/common/request-helper.ts +++ b/src/common/request-helper.ts @@ -5,20 +5,27 @@ export async function makePlaneRequest(method: string, path: string, body: an const host = hostUrl.endsWith("/") ? hostUrl : `${hostUrl}/`; const url = `${host}api/v1/${path}`; const headers: Record = { - "Content-Type": "application/json", "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, - data: body, }; - const response = await axios(config); + // 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)) { From 443d173c745e9eecfab4dbfcb76be92aff6820ff Mon Sep 17 00:00:00 2001 From: Surya Prashanth Date: Mon, 28 Apr 2025 21:01:40 +0530 Subject: [PATCH 2/2] chore: bump release to 0.1.4 (#21) * [MCP-1] feat: build check workflow (#15) * fix: added build check workflow * chore: typo fixes * chore: bump version to 0.1.4 --------- Co-authored-by: sriram veeraghanta --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 70fb737..cce999b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@makeplane/plane-mcp-server", - "version": "0.1.3", + "version": "0.1.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@makeplane/plane-mcp-server", - "version": "0.1.3", + "version": "0.1.4", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "^1.9.0", diff --git a/package.json b/package.json index 2b408cf..9d71bd9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@makeplane/plane-mcp-server", - "version": "0.1.3", + "version": "0.1.4", "description": "The Plane MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with Plane APIs, enabling projects, work items, and automations capabilities for develops and AI interfaces.", "bin": { "plane-mcp-server": "./build/index.js"