Skip to content

Commit 4fd7124

Browse files
committed
feat: add docker image and push to dockerhub
1 parent 8add8ef commit 4fd7124

File tree

3 files changed

+62
-4
lines changed

3 files changed

+62
-4
lines changed

Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM node:22.15-alpine AS builder
2+
3+
COPY . /app
4+
COPY tsconfig.json /tsconfig.json
5+
6+
WORKDIR /app
7+
8+
RUN --mount=type=cache,target=/root/.npm npm install
9+
10+
RUN --mount=type=cache,target=/root/.npm-production npm ci --ignore-scripts --omit-dev
11+
12+
FROM node:22.12-alpine AS release
13+
14+
WORKDIR /app
15+
16+
COPY --from=builder /app/build /app/build
17+
COPY --from=builder /app/package.json /app/package.json
18+
COPY --from=builder /app/package-lock.json /app/package-lock.json
19+
20+
ENV NODE_ENV=production
21+
22+
RUN npm ci --ignore-scripts --omit-dev
23+
24+
ENTRYPOINT ["node", "build/index.js"]

README.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ GitLab MCP(Model Context Protocol) Server. **Includes bug fixes and improvements
1414

1515
When using with the Claude App, you need to set up your API key and URLs directly.
1616

17+
#### npx
18+
1719
```json
1820
{
1921
"mcpServers": {
@@ -24,15 +26,46 @@ When using with the Claude App, you need to set up your API key and URLs directl
2426
"GITLAB_PERSONAL_ACCESS_TOKEN": "your_gitlab_token",
2527
"GITLAB_API_URL": "your_gitlab_api_url",
2628
"GITLAB_READ_ONLY_MODE": "false",
27-
"USE_GITLAB_WIKI":"true"
29+
"USE_GITLAB_WIKI": "true"
2830
}
2931
}
3032
}
3133
}
3234
```
3335

34-
### Environment Variables
36+
#### Docker
37+
38+
```json
39+
{
40+
"mcpServers": {
41+
"GitLab communication server": {
42+
"command": "docker",
43+
"args": [
44+
"run",
45+
"-i",
46+
"--rm",
47+
"-e",
48+
"GITLAB_PERSONAL_ACCESS_TOKEN",
49+
"-e",
50+
"GITLAB_API_URL",
51+
"-e",
52+
"GITLAB_READ_ONLY_MODE",
53+
"-e",
54+
"USE_GITLAB_WIKI",
55+
"nkwd/mcp-gitlab"
56+
],
57+
"env": {
58+
"GITLAB_PERSONAL_ACCESS": "your_gitlab_token",
59+
"GITLAB_API_URL": "https://gitlab.com/api/v4", // Optional, for self-hosted GitLab
60+
"GITLAB_READ_ONLY_MODE": "false",
61+
"USE_GITLAB_WIKI": "true"
62+
}
63+
}
64+
}
65+
}
66+
```
3567

68+
### Environment Variables
3669

3770
- `GITLAB_PERSONAL_ACCESS_TOKEN`: Your GitLab personal access token.
3871
- `GITLAB_API_URL`: Your GitLab API URL. (Default: `https://gitlab.com/api/v4`)
@@ -42,6 +75,7 @@ When using with the Claude App, you need to set up your API key and URLs directl
4275
## Tools 🛠️
4376

4477
+<!-- TOOLS-START -->
78+
4579
1. `create_or_update_file` - Create or update a single file in a GitLab project
4680
2. `search_repositories` - Search for GitLab projects
4781
3. `create_repository` - Create a new GitLab project

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.

0 commit comments

Comments
 (0)