gitlab-docs-mcp 1.0.2 → 1.1.1
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 +77 -47
- package/data/gitlab-docs/documents.json +2754 -2506
- package/data/gitlab-docs/index_meta.json +2 -2
- package/dist/content/chunker.d.ts +54 -0
- package/dist/content/chunker.d.ts.map +1 -0
- package/dist/content/chunker.js +163 -0
- package/dist/content/chunker.js.map +1 -0
- package/dist/content/chunker.test.d.ts +2 -0
- package/dist/content/chunker.test.d.ts.map +1 -0
- package/dist/content/chunker.test.js +92 -0
- package/dist/content/chunker.test.js.map +1 -0
- package/dist/content/index.d.ts +1 -0
- package/dist/content/index.d.ts.map +1 -1
- package/dist/content/index.js +1 -0
- package/dist/content/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
# GitLab Docs MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/gitlab-docs-mcp)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
6
|
+
A [Model Context Protocol](https://modelcontextprotocol.io) server that provides AI assistants instant access to GitLab's official documentation.
|
|
7
|
+
|
|
8
|
+
## Features
|
|
9
|
+
|
|
10
|
+
- **Intelligent Search** - Fast, relevance-ranked search across all docs
|
|
11
|
+
- **Section Filtering** - Target specific areas (CI/CD, API, Admin, etc.)
|
|
12
|
+
- **Full Content Access** - Retrieve complete documentation pages
|
|
13
|
+
- **Always Up-to-Date** - Automatically synced with latest GitLab docs
|
|
14
|
+
- **Universal Compatibility** - Works with any MCP-compatible AI assistant
|
|
4
15
|
|
|
5
16
|
## Installation
|
|
6
17
|
|
|
7
|
-
This server works with any MCP-compatible AI assistant
|
|
18
|
+
This server works with any MCP-compatible AI assistant. The [Model Context Protocol](https://modelcontextprotocol.io) allows AI assistants to connect to external tools and data sources through a standardized interface.
|
|
8
19
|
|
|
9
20
|
### GitHub Copilot (VS Code)
|
|
10
21
|
|
|
11
|
-
**1. Open
|
|
22
|
+
**1. Open MCP Configuration**
|
|
12
23
|
|
|
13
|
-
|
|
24
|
+
Press <kbd>⌘</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (or <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> on Windows/Linux), type `MCP: Open User Configuration`, and press Enter.
|
|
25
|
+
|
|
26
|
+
**2. Add to `mcp.json`:**
|
|
14
27
|
|
|
15
28
|
```json
|
|
16
29
|
{
|
|
17
|
-
"
|
|
30
|
+
"servers": {
|
|
18
31
|
"gitlab-docs": {
|
|
19
32
|
"command": "npx",
|
|
20
33
|
"args": ["-y", "gitlab-docs-mcp"]
|
|
@@ -23,10 +36,19 @@ This server works with any MCP-compatible AI assistant including GitHub Copilot,
|
|
|
23
36
|
}
|
|
24
37
|
```
|
|
25
38
|
|
|
26
|
-
**3.
|
|
39
|
+
**3. Reload VS Code**
|
|
40
|
+
|
|
41
|
+
Press <kbd>⌘</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (or <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>), type `Developer: Reload Window`, and press Enter.
|
|
42
|
+
|
|
43
|
+
**Alternative:** You can also manually create/edit the file at:
|
|
44
|
+
- **macOS:** `~/Library/Application Support/Code/User/mcp.json`
|
|
45
|
+
- **Windows:** `%APPDATA%\Code\User\mcp.json`
|
|
46
|
+
- **Linux:** `~/.config/Code/User/mcp.json`
|
|
27
47
|
|
|
28
48
|
### Claude Desktop
|
|
29
49
|
|
|
50
|
+
Claude Desktop is a standalone desktop application by Anthropic that supports MCP servers.
|
|
51
|
+
|
|
30
52
|
Add to your Claude Desktop configuration file:
|
|
31
53
|
|
|
32
54
|
**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
@@ -45,24 +67,61 @@ Add to your Claude Desktop configuration file:
|
|
|
45
67
|
|
|
46
68
|
Restart Claude Desktop.
|
|
47
69
|
|
|
70
|
+
### Cursor IDE
|
|
71
|
+
|
|
72
|
+
Cursor has built-in MCP support. Create or edit the MCP configuration file:
|
|
73
|
+
|
|
74
|
+
**1. Create/Edit Configuration File**
|
|
75
|
+
|
|
76
|
+
- **Project-specific:** `.cursor/mcp.json` in your project root
|
|
77
|
+
- **Global:** `~/.cursor/mcp.json` in your home directory
|
|
78
|
+
|
|
79
|
+
**2. Add Server Configuration:**
|
|
80
|
+
|
|
81
|
+
```json
|
|
82
|
+
{
|
|
83
|
+
"servers": {
|
|
84
|
+
"gitlab-docs": {
|
|
85
|
+
"command": "npx",
|
|
86
|
+
"args": ["-y", "gitlab-docs-mcp"]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**3. Restart Cursor**
|
|
93
|
+
|
|
48
94
|
### Other MCP Clients
|
|
49
95
|
|
|
50
|
-
For other MCP-compatible clients,
|
|
96
|
+
For other MCP-compatible clients (Zed, Windsurf, etc.), configure them to run:
|
|
51
97
|
```bash
|
|
52
98
|
npx -y gitlab-docs-mcp
|
|
53
99
|
```
|
|
54
100
|
|
|
101
|
+
Refer to your client's MCP configuration documentation for the specific format required.
|
|
102
|
+
|
|
55
103
|
## Usage
|
|
56
104
|
|
|
57
|
-
|
|
105
|
+
Once configured, simply ask your AI assistant about GitLab:
|
|
106
|
+
|
|
107
|
+
**Example Conversations:**
|
|
58
108
|
|
|
59
109
|
```
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
110
|
+
You: "How do I set up a CI/CD pipeline in GitLab?"
|
|
111
|
+
Assistant: [Searches GitLab docs and provides detailed pipeline configuration guide]
|
|
112
|
+
|
|
113
|
+
You: "Show me how to configure GitLab Runner on Ubuntu"
|
|
114
|
+
Assistant: [Retrieves GitLab Runner installation documentation]
|
|
115
|
+
|
|
116
|
+
You: "What are the GraphQL mutations for updating issues?"
|
|
117
|
+
Assistant: [Searches API docs and shows GraphQL mutation examples]
|
|
118
|
+
|
|
119
|
+
You: "Explain GitLab's authentication options"
|
|
120
|
+
Assistant: [Provides overview from authentication documentation]
|
|
64
121
|
```
|
|
65
122
|
|
|
123
|
+
The AI assistant will automatically use the GitLab Docs MCP server to search documentation and provide accurate, up-to-date answers.
|
|
124
|
+
|
|
66
125
|
## Available Tools
|
|
67
126
|
|
|
68
127
|
### `searchGitLabDocs`
|
|
@@ -85,46 +144,17 @@ Browse available documentation sections and their structure.
|
|
|
85
144
|
## Troubleshooting
|
|
86
145
|
|
|
87
146
|
**Server not responding?**
|
|
88
|
-
- Ensure Node.js
|
|
147
|
+
- Ensure Node.js 22+ is installed: `node --version`
|
|
89
148
|
- Restart your AI assistant/client completely
|
|
90
149
|
- Check application logs for MCP connection errors
|
|
91
150
|
|
|
92
|
-
**
|
|
93
|
-
The server uses
|
|
94
|
-
```bash
|
|
95
|
-
git clone <repository-url>
|
|
96
|
-
cd gitlab-docs-mcp
|
|
97
|
-
npm install
|
|
98
|
-
npm run build-index
|
|
99
|
-
npm run build
|
|
100
|
-
```
|
|
151
|
+
**Documentation out of date?**
|
|
152
|
+
The server automatically uses the latest published version from npm. Simply restart your MCP client to get updates.
|
|
101
153
|
|
|
102
|
-
|
|
154
|
+
## Contributing
|
|
103
155
|
|
|
104
|
-
|
|
105
|
-
```json
|
|
106
|
-
{
|
|
107
|
-
"github.copilot.chat.mcp.servers": {
|
|
108
|
-
"gitlab-docs": {
|
|
109
|
-
"command": "node",
|
|
110
|
-
"args": ["/absolute/path/to/gitlab-docs-mcp/dist/index.js"]
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
**Claude Desktop:**
|
|
117
|
-
```json
|
|
118
|
-
{
|
|
119
|
-
"mcpServers": {
|
|
120
|
-
"gitlab-docs": {
|
|
121
|
-
"command": "node",
|
|
122
|
-
"args": ["/absolute/path/to/gitlab-docs-mcp/dist/index.js"]
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
```
|
|
156
|
+
Found a bug or have a feature request? Please visit the [GitHub repository](https://github.com/ozanmutlu/Gitlab-Docs-MCP).
|
|
127
157
|
|
|
128
158
|
## License
|
|
129
159
|
|
|
130
|
-
MIT
|
|
160
|
+
MIT - see [LICENSE](LICENSE) file for details.
|