MCP server for GitLab merge request management
Project description
MCP BugBot GitLab
Installation (via PyPI)
Install the MCP BugBot GitLab package from PyPI:
pip install mcp-bugbot-gitlab
If you use a virtual environment (recommended):
python3 -m venv .venv source .venv/bin/activate pip install mcp-bugbot-gitlab
Overview
MCP BugBot GitLab is a Python-based MCP server designed to automate and streamline AI-powered code review for GitLab Merge Requests (MRs). It enables Cursor AI to view code and MRs, facilitating AI-assisted code reviews, Jira cross-verification, and professional feedback.
Configuration
You can configure MCP BugBot GitLab using environment variables, either directly or via your Cursor MCP configuration.
Required:
GITLAB_URL: Your GitLab server URL (e.g.,https://gitlab.com)GITLAB_TOKEN: Your GitLab Personal Access Token
Optional:
GITLAB_SSL_NO_VERIFY: Set to1to disable SSL verification (for self-hosted GitLab)GITLAB_USER: The GitLab username (if needed for API calls)JIRA_SERVER_URL,JIRA_TOKEN,JIRA_PROJECT_KEY: For Jira integration/cross-verification
Using with Cursor AI
-
Register the MCP Server with Cursor
Add the following to your
~/.cursor/mcp.json:{ "mcpServers": { "gitlab-bugbot": { "command": "/path/to/your/python", "args": ["-m", "mcp_bugbot_gitlab.server"], "description": "GitLab BugBot MCP server using venv Python", "env": { "GITLAB_URL": "https://gitlab.example.com", "GITLAB_TOKEN": "your_gitlab_token", "GITLAB_SSL_NO_VERIFY": "1", "GITLAB_USER": "your_gitlab_username", "JIRA_SERVER_URL": "https://jira.example.com", "JIRA_TOKEN": "your_jira_token", "JIRA_PROJECT_KEY": "YOURPROJECT" } } } }
- Adjust the
"command"path to your Python interpreter (e.g., from a virtualenv). - Set all environment variables as needed for your environment.
- Adjust the
-
Start Cursor
- Open Cursor and ensure the MCP server is registered.
- GitLab BugBot tools will be available in the Cursor tool interface.
Running the Server Manually
You can also start the server directly (for development):
python -m mcp_bugbot_gitlab.server
Development
Install dependencies
pip install -r requirements.txt
Run tests
pytest
Release & PyPI Publishing
- Releases are published to PyPI via GitHub Actions using OIDC (trusted publishing).
- To publish a new version, push a tag like
v1.2.3to GitHub. - See
.github/workflows/pypi-publish.ymlfor details.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_bugbot_gitlab-0.1.1.tar.gz.
File metadata
- Download URL: mcp_bugbot_gitlab-0.1.1.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbe3f3b3734864bff79b3795af7d32847ffa609bbcf4ad37112de793c22f7fe8
|
|
| MD5 |
b91a035775968d85411a219ec6bf7511
|
|
| BLAKE2b-256 |
3052dfb3572f1eac1c778d5ae978cf9e7a7e6581ad84acac024902b40c630cac
|
Provenance
The following attestation bundles were made for mcp_bugbot_gitlab-0.1.1.tar.gz:
Publisher:
pypi-publish.yml on kitlabcode/mcp-bugbot-gitlab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_bugbot_gitlab-0.1.1.tar.gz -
Subject digest:
fbe3f3b3734864bff79b3795af7d32847ffa609bbcf4ad37112de793c22f7fe8 - Sigstore transparency entry: 236389627
- Sigstore integration time:
-
Permalink:
kitlabcode/mcp-bugbot-gitlab@21ea9d970aa761d2e5ef748dde65570d06466f8d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/kitlabcode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@21ea9d970aa761d2e5ef748dde65570d06466f8d -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcp_bugbot_gitlab-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mcp_bugbot_gitlab-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c20d56e0cb850109d53a3731736dafcf35a1062de960f0aa6147fb1135c8f0e4
|
|
| MD5 |
fd04665044fead6c84a5b14e26ddebe6
|
|
| BLAKE2b-256 |
0685ddf65d7e260b9cdf57efffa626e6d9f349d4ab2e1266d3f9321bfb3d1b2a
|
Provenance
The following attestation bundles were made for mcp_bugbot_gitlab-0.1.1-py3-none-any.whl:
Publisher:
pypi-publish.yml on kitlabcode/mcp-bugbot-gitlab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_bugbot_gitlab-0.1.1-py3-none-any.whl -
Subject digest:
c20d56e0cb850109d53a3731736dafcf35a1062de960f0aa6147fb1135c8f0e4 - Sigstore transparency entry: 236389630
- Sigstore integration time:
-
Permalink:
kitlabcode/mcp-bugbot-gitlab@21ea9d970aa761d2e5ef748dde65570d06466f8d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/kitlabcode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@21ea9d970aa761d2e5ef748dde65570d06466f8d -
Trigger Event:
push
-
Statement type: