Skip to content

Commit 8fa7a93

Browse files
authored
Merge pull request #4 from makeplane/fix_host_slash
Handle host trailing slash
2 parents 1d6ee64 + c1b0a93 commit 8fa7a93

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

README.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,11 @@ The Plane MCP Server is a Model Context Protocol (MCP) server that provides seam
270270
- `issue_id`: UUID of the issue (string, required)
271271
- `worklog_id`: UUID of the worklog (string, required)
272272

273-
## Usage with Claude Desktop
273+
## Usage
274274

275-
Adding plane mcp server like below to your `claude_desktop_config.json`
275+
### Claude Desktop
276+
277+
Add Plane to [Claude Desktop](https://modelcontextprotocol.io/quickstart/user) by editing your `claude_desktop_config.json`.
276278

277279
```json
278280
{
@@ -293,6 +295,30 @@ Adding plane mcp server like below to your `claude_desktop_config.json`
293295
}
294296
```
295297

298+
### VSCode
299+
300+
Add Plane to [VSCode](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server) by editing your `.vscode.json/mcp.json`.
301+
302+
```json
303+
{
304+
"servers": {
305+
"plane": {
306+
"command": "npx",
307+
"args": [
308+
"-y",
309+
"@makeplane/plane-mcp-server"
310+
],
311+
"env": {
312+
"PLANE_API_KEY": "<YOUR_API_KEY>",
313+
"PLANE_API_HOST_URL": "<HOST_URL_FOR_SELF_HOSTED",
314+
"PLANE_WORKSPACE_SLUG": "<YOUR_WORKSPACE_SLUG>"
315+
}
316+
}
317+
}
318+
}
319+
320+
```
321+
296322
## License
297323

298324
This project is licensed under the terms of the MIT open source license.

src/common/request-helper.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import axios, { AxiosRequestConfig } from "axios";
22

33
export async function makePlaneRequest<T>(method: string, path: string, body: any = null): Promise<T> {
4-
const url = `${process.env.PLANE_API_HOST_URL}api/v1/${path}`;
4+
const hostUrl = process.env.PLANE_API_HOST_URL || "";
5+
const host = hostUrl.endsWith("/") ? hostUrl : `${hostUrl}/`;
6+
const url = `${host}api/v1/${path}`;
57
const headers: Record<string, string> = {
68
"Content-Type": "application/json",
79
"X-API-Key": process.env.PLANE_API_KEY || "",

0 commit comments

Comments
 (0)