@zereight/mcp-gitlab 1.0.4 β 1.0.6
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 +31 -39
- package/build/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,17 +4,41 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://smithery.ai/server/@zereight/gitlab-mcp)
|
|
6
6
|
|
|
7
|
-
GitLab MCP(Model Context Protocol) Server.
|
|
7
|
+
GitLab MCP(Model Context Protocol) Server. **Includes bug fixes and improvements over the original GitLab MCP server.**
|
|
8
8
|
|
|
9
9
|
<a href="https://glama.ai/mcp/servers/7jwbk4r6d7"><img width="380" height="200" src="https://glama.ai/mcp/servers/7jwbk4r6d7/badge" alt="gitlab mcp MCP server" /></a>
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### Using with Claude App, Cline, Roo Code
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
When using with the Claude App, you need to set up your API key and URLs directly.
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"mcpServers": {
|
|
20
|
+
"GitLab communication server": {
|
|
21
|
+
"command": "npx",
|
|
22
|
+
"args": ["-y", "@zereight/mcp-gitlab"],
|
|
23
|
+
"env": {
|
|
24
|
+
"GITLAB_PERSONAL_ACCESS_TOKEN": "your_gitlab_token",
|
|
25
|
+
"GITLAB_API_URL": "your_gitlab_api_url"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Using with Cursor
|
|
33
|
+
|
|
34
|
+
When using with Cursor, you can set up environment variables and run the server as follows:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
env GITLAB_PERSONAL_ACCESS_TOKEN=your_gitlab_token GITLAB_API_URL=your_gitlab_api_url npx @zereight/mcp-gitlab
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
- `GITLAB_PERSONAL_ACCESS_TOKEN`: Your GitLab personal access token.
|
|
41
|
+
- `GITLAB_API_URL`: Your GitLab API URL. (Default: `https://gitlab.com/api/v4`)
|
|
18
42
|
|
|
19
43
|
## Tools π οΈ
|
|
20
44
|
|
|
@@ -159,38 +183,6 @@ GITLAB_PERSONAL_ACCESS_TOKEN=your_gitlab_token
|
|
|
159
183
|
GITLAB_API_URL=your_gitlab_api_url # Default: https://gitlab.com/api/v4
|
|
160
184
|
```
|
|
161
185
|
|
|
162
|
-
## Usage
|
|
163
|
-
|
|
164
|
-
### Using with Claude App, Cline, Roo Code
|
|
165
|
-
|
|
166
|
-
When using with the Claude App, you need to set up your API key and URLs directly.
|
|
167
|
-
|
|
168
|
-
```json
|
|
169
|
-
{
|
|
170
|
-
"mcpServers": {
|
|
171
|
-
"GitLab communication server": {
|
|
172
|
-
"command": "npx",
|
|
173
|
-
"args": ["-y", "@zereight/mcp-gitlab"],
|
|
174
|
-
"env": {
|
|
175
|
-
"GITLAB_PERSONAL_ACCESS_TOKEN": "your_gitlab_token",
|
|
176
|
-
"GITLAB_API_URL": "your_gitlab_api_url"
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
### Using with Cursor
|
|
184
|
-
|
|
185
|
-
When using with Cursor, you can set up environment variables and run the server as follows:
|
|
186
|
-
|
|
187
|
-
```
|
|
188
|
-
env GITLAB_PERSONAL_ACCESS_TOKEN=your_gitlab_token GITLAB_API_URL=your_gitlab_api_url npx @zereight/mcp-gitlab
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
- `GITLAB_PERSONAL_ACCESS_TOKEN`: Your GitLab personal access token.
|
|
192
|
-
- `GITLAB_API_URL`: Your GitLab API URL. (Default: `https://gitlab.com/api/v4`)
|
|
193
|
-
|
|
194
186
|
## License
|
|
195
187
|
|
|
196
188
|
MIT License
|
package/build/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { z } from "zod";
|
|
|
7
7
|
import { zodToJsonSchema } from "zod-to-json-schema";
|
|
8
8
|
import { GitLabForkSchema, GitLabReferenceSchema, GitLabRepositorySchema, GitLabIssueSchema, GitLabMergeRequestSchema, GitLabContentSchema, GitLabCreateUpdateFileResponseSchema, GitLabSearchResponseSchema, GitLabTreeSchema, GitLabCommitSchema, CreateOrUpdateFileSchema, SearchRepositoriesSchema, CreateRepositorySchema, GetFileContentsSchema, PushFilesSchema, CreateIssueSchema, CreateMergeRequestSchema, ForkRepositorySchema, CreateBranchSchema, GitLabMergeRequestDiffSchema, GetMergeRequestSchema, GetMergeRequestDiffsSchema, UpdateMergeRequestSchema, CreateNoteSchema, } from "./schemas.js";
|
|
9
9
|
const server = new Server({
|
|
10
|
-
name: "gitlab-mcp-server",
|
|
10
|
+
name: "better-gitlab-mcp-server",
|
|
11
11
|
version: "0.0.1",
|
|
12
12
|
}, {
|
|
13
13
|
capabilities: {
|
|
@@ -345,7 +345,7 @@ async function updateMergeRequest(projectId, mergeRequestIid, options) {
|
|
|
345
345
|
async function createNote(projectId, noteableType, // 'issue' λλ 'merge_request' νμ
λͺ
μ
|
|
346
346
|
noteableIid, body) {
|
|
347
347
|
// βοΈ μλ΅ νμ
μ GitLab API λ¬Έμμ λ°λΌ μ‘°μ κ°λ₯
|
|
348
|
-
const url = new URL(`${GITLAB_API_URL}/projects/${encodeURIComponent(projectId)}/${noteableType}/${noteableIid}/notes`);
|
|
348
|
+
const url = new URL(`${GITLAB_API_URL}/api/v4/projects/${encodeURIComponent(projectId)}/${noteableType}/${noteableIid}/notes`);
|
|
349
349
|
const response = await fetch(url.toString(), {
|
|
350
350
|
method: "POST",
|
|
351
351
|
headers: DEFAULT_HEADERS,
|