Skip to content

Commit e71379f

Browse files
claudeits-mash
authored andcommitted
Add GitLab MCP server definition
Reference GitLab MCP server from modelcontextprotocol/servers for managing repos, issues, merge requests, and files. Uses @modelcontextprotocol/server-gitlab npm package. https://claude.ai/code/session_013AxurW8hPAfnUNvik354Xx
1 parent 0217546 commit e71379f

1 file changed

Lines changed: 74 additions & 0 deletions

File tree

servers/community.gitlab.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"$schema": "../schemas/server-definition.schema.json",
3+
"id": "community.gitlab",
4+
"name": "GitLab",
5+
"alias": "gitlab",
6+
"description": "Manage GitLab repositories, issues, merge requests, and files. Search projects, create branches, push files, and manage code reviews.",
7+
"icon": "https://avatars.githubusercontent.com/u/182288589?v=4",
8+
"schema_version": "2.1",
9+
"categories": ["version-control", "developer-tools"],
10+
"tags": ["gitlab", "git", "version-control", "merge-requests", "issues", "ci-cd"],
11+
12+
"transport": {
13+
"type": "stdio",
14+
"command": "npx",
15+
"args": ["-y", "@modelcontextprotocol/server-gitlab"],
16+
"env": {
17+
"GITLAB_PERSONAL_ACCESS_TOKEN": "${input:GITLAB_PERSONAL_ACCESS_TOKEN}",
18+
"GITLAB_API_URL": "${input:GITLAB_API_URL}"
19+
},
20+
"metadata": {
21+
"inputs": [
22+
{
23+
"id": "GITLAB_PERSONAL_ACCESS_TOKEN",
24+
"label": "GitLab Personal Access Token",
25+
"description": "Personal Access Token for the GitLab API. Requires 'api' scope.",
26+
"type": "password",
27+
"required": true,
28+
"secret": true,
29+
"placeholder": "glpat-xxxxxxxxxxxxxxxxxxxx",
30+
"obtain": {
31+
"url": "https://gitlab.com/-/user_settings/personal_access_tokens",
32+
"instructions": "1. Go to GitLab > User Settings > Access Tokens\n2. Click 'Add new token'\n3. Select the 'api' scope\n4. Click 'Create personal access token' and copy it",
33+
"button_label": "Create Token"
34+
}
35+
},
36+
{
37+
"id": "GITLAB_API_URL",
38+
"label": "GitLab API URL",
39+
"description": "GitLab API base URL. Defaults to https://gitlab.com/api/v4 for gitlab.com. Change for self-hosted instances.",
40+
"type": "url",
41+
"required": false,
42+
"secret": false,
43+
"placeholder": "https://gitlab.com/api/v4"
44+
}
45+
]
46+
}
47+
},
48+
49+
"auth": {
50+
"type": "api_key",
51+
"instructions": "Create a Personal Access Token with 'api' scope at https://gitlab.com/-/user_settings/personal_access_tokens"
52+
},
53+
54+
"contributor": {
55+
"name": "Model Context Protocol",
56+
"github": "modelcontextprotocol",
57+
"url": "https://modelcontextprotocol.io"
58+
},
59+
60+
"links": {
61+
"repository": "https://github.com/modelcontextprotocol/servers",
62+
"homepage": "https://gitlab.com",
63+
"documentation": "https://github.com/modelcontextprotocol/servers/tree/main/src/gitlab#readme"
64+
},
65+
66+
"platforms": ["all"],
67+
68+
"capabilities": {
69+
"tools": true,
70+
"resources": false,
71+
"prompts": false,
72+
"read_only_mode": false
73+
}
74+
}

0 commit comments

Comments
 (0)