Skip to content

Commit 15d9dbd

Browse files
release: v0.1.4 #22
2 parents abd4372 + 443d173 commit 15d9dbd

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@makeplane/plane-mcp-server",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"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.",
55
"bin": {
66
"plane-mcp-server": "./build/index.js"

src/common/request-helper.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,27 @@ export async function makePlaneRequest<T>(method: string, path: string, body: an
55
const host = hostUrl.endsWith("/") ? hostUrl : `${hostUrl}/`;
66
const url = `${host}api/v1/${path}`;
77
const headers: Record<string, string> = {
8-
"Content-Type": "application/json",
98
"X-API-Key": process.env.PLANE_API_KEY || "",
109
};
1110

11+
// Only add Content-Type for non-GET requests
12+
if (method.toUpperCase() !== 'GET') {
13+
headers["Content-Type"] = "application/json";
14+
}
15+
1216
try {
1317
const config: AxiosRequestConfig = {
1418
url,
1519
method,
1620
headers,
17-
data: body,
1821
};
1922

20-
const response = await axios(config);
23+
// Only include body for non-GET requests
24+
if (method.toUpperCase() !== 'GET' && body !== null) {
25+
config.data = body;
26+
}
2127

28+
const response = await axios(config);
2229
return response.data;
2330
} catch (error) {
2431
if (axios.isAxiosError(error)) {

0 commit comments

Comments
 (0)