GitLab MCP service for Cursor IDE
Project description
Cursor GitLab MCP
一个用于Cursor IDE的GitLab操作服务,支持自然语言命令。
功能特点
- 支持自然语言命令
- 自动总结代码改动
- 自动生成提交注释
- 一键提交和推送代码
- 查看项目信息
- 管理分支
安装
pip install cursor-gitlab-mcp
配置
在Cursor IDE中配置MCP:
{
"mcpServers": {
"gitlab": {
"command": "cursor-gitlab-mcp mcp-command",
"env": {
"GITLAB_API_BASE": "http://your-gitlab-server.com",
"GITLAB_ACCESS_TOKEN": "your-access-token"
}
}
}
}
使用
在Cursor IDE中使用自然语言命令:
-
代码改动相关:
- "总结代码改动"
- "查看修改内容"
- "生成提交注释"
- "提交代码"
-
项目操作:
- "查看我的项目"
- "显示所有代码库"
- "查看项目分支"
- "查看最近提交"
-
Git操作:
- "更新代码"
- "推送代码"
- "创建新分支"
- "切换到指定分支"
开发
# 安装开发依赖
pip install -e .
# 运行测试
python -m unittest discover tests
许可证
MIT
Project details
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 cursor-gitlab-mcp-0.1.0.tar.gz.
File metadata
- Download URL: cursor-gitlab-mcp-0.1.0.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e68353c2c0a06ea462a55a5b3bf94d4edb3e5558c41b63d7abc037446e467c5
|
|
| MD5 |
28677af9cd853a30529628753474acc8
|
|
| BLAKE2b-256 |
ed376ae9b0321b3eb0082c270d3696f8e53f3091c416916707e4c16efe844ae6
|
File details
Details for the file cursor_gitlab_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cursor_gitlab_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34d46946b0fff9d7b2822122d58e71d35883a6de7b5e7802106a075333c97e28
|
|
| MD5 |
6f760ac13d65ec5ba43c94f46517a2be
|
|
| BLAKE2b-256 |
6c164aa57e00de83d5677aa2bd320be2c9b5fc9069aba36772e53449bc86bc05
|