gitlab-issue-creator-mcp 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/tools/createGitLabIssue.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# GitLab Issue Creator (MCP Server)
|
|
2
2
|
|
|
3
|
-
An MCP server that creates GitLab issues, compatible with self-hosted instances (default: <https://gitlab.
|
|
3
|
+
An MCP server that creates GitLab issues, compatible with self-hosted instances (default: <https://gitlab.com>).
|
|
4
4
|
|
|
5
5
|
## Tools
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ An MCP server that creates GitLab issues, compatible with self-hosted instances
|
|
|
13
13
|
|
|
14
14
|
Set env vars (recommended):
|
|
15
15
|
|
|
16
|
-
- `GITLAB_URL` (defaults to `https://gitlab.
|
|
16
|
+
- `GITLAB_URL` (defaults to `https://gitlab.com`)
|
|
17
17
|
- `GITLAB_TOKEN` (required)
|
|
18
18
|
|
|
19
19
|
See [.env.example](.env.example).
|
|
@@ -41,7 +41,7 @@ Most MCP clients expect a stdio server. If you installed this package into a pro
|
|
|
41
41
|
"command": "node",
|
|
42
42
|
"args": ["./node_modules/gitlab-issue-creator-mcp/dist/index.js"],
|
|
43
43
|
"env": {
|
|
44
|
-
"GITLAB_URL": "https://gitlab.
|
|
44
|
+
"GITLAB_URL": "https://gitlab.com",
|
|
45
45
|
"GITLAB_TOKEN": "<your_token>"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -52,7 +52,7 @@ Most MCP clients expect a stdio server. If you installed this package into a pro
|
|
|
52
52
|
Notes:
|
|
53
53
|
|
|
54
54
|
- Some clients require an absolute path for `args[0]`. In that case, replace the relative `./node_modules/...` path with an absolute path on your machine.
|
|
55
|
-
- `GITLAB_TOKEN` is required; `GITLAB_URL` defaults to `https://gitlab.
|
|
55
|
+
- `GITLAB_TOKEN` is required; `GITLAB_URL` defaults to `https://gitlab.com`.
|
|
56
56
|
|
|
57
57
|
## Develop (from source)
|
|
58
58
|
|
|
@@ -65,7 +65,7 @@ Recommended flow for teammates:
|
|
|
65
65
|
|
|
66
66
|
VS Code will prompt for:
|
|
67
67
|
|
|
68
|
-
- GitLab base URL (defaults to `https://gitlab.
|
|
68
|
+
- GitLab base URL (defaults to `https://gitlab.com`)
|
|
69
69
|
- GitLab access token (stored securely by VS Code)
|
|
70
70
|
|
|
71
71
|
## Develop / Build
|
|
@@ -9,7 +9,7 @@ function normalizeBaseUrl(url) {
|
|
|
9
9
|
return url.replace(/\/$/, "");
|
|
10
10
|
}
|
|
11
11
|
async function createGitLabIssue(params) {
|
|
12
|
-
const baseUrl = normalizeBaseUrl(params.gitlabUrl ?? process.env.GITLAB_URL ?? "https://gitlab.
|
|
12
|
+
const baseUrl = normalizeBaseUrl(params.gitlabUrl ?? process.env.GITLAB_URL ?? "https://gitlab.com");
|
|
13
13
|
const token = params.gitlabToken ?? requiredEnv("GITLAB_TOKEN");
|
|
14
14
|
const projectId = params.projectId;
|
|
15
15
|
const apiUrl = `${baseUrl}/api/v4/projects/${encodeURIComponent(projectId)}/issues`;
|
|
@@ -83,7 +83,7 @@ export const createGitLabIssueTool = {
|
|
|
83
83
|
confidential: { type: "boolean", description: "Create as confidential" },
|
|
84
84
|
gitlabUrl: {
|
|
85
85
|
type: "string",
|
|
86
|
-
description: "Optional override for GitLab base URL. Otherwise uses GITLAB_URL env var (defaults to https://gitlab.
|
|
86
|
+
description: "Optional override for GitLab base URL. Otherwise uses GITLAB_URL env var (defaults to https://gitlab.com).",
|
|
87
87
|
},
|
|
88
88
|
gitlabToken: {
|
|
89
89
|
type: "string",
|