GitLab PR 分析 MCP 服务器
该项目提供了一个 MCP(模型控制协议)服务器,它将 GitLab 合并请求分析与 Confluence 文档集成在一起。它允许您获取合并请求详细信息、分析代码更改并将结果存储在 Confluence 页面中。
特征
- 从 GitLab 获取合并请求详细信息
- 分析合并请求中的代码更改
- 生成详细报告,包括:
- 基本合并请求信息
- 代码变更统计
- 文件类型分析
- 详细文件变更
- 将分析结果存储在 Confluence 中
- 全面的调试日志记录
先决条件
- Python 3.8 或更高版本
- 具有 API 访问权限的 GitLab 帐户
- Confluence 帐户(可选,用于存储分析结果)
- 访问所需的 GitLab 项目
安装
- 克隆存储库:
- 创建并激活虚拟环境:
- 安装依赖项:
或者
配置
- 复制示例环境文件:
- 使用您的凭据编辑
.env
文件:
获取凭证
- GitLab Token :在 GitLab 中生成具有
api
范围的个人访问令牌 - Confluence Token :在您的 Atlassian 帐户设置中生成 API 令牌
用法
- 启动 MCP 服务器:
或者
使用 Claude Desktop 进行设置
您能从项目“my-project”获取合并请求 #1 的详细信息吗?您能分析项目“my-project”合并请求 #1 中的代码更改吗?您能将项目“my-project”合并请求 #1 的摘要存储在 Confluence 中吗?
MRConfluenceLinker-mcp-server/ │ src/ # 源代码目录│ └── MRConfluenceLinker- mcp -server/ # 主服务器包 │ ...
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
将 GitLab 合并请求分析与 Confluence 文档集成,允许用户获取合并请求详细信息、分析代码更改并将分析结果存储在 Confluence 页面中。
Related MCP Servers
- -securityFlicense-qualityA tool that integrates with GitHub and Notion to analyze and review pull requests, enabling automated code reviews and documentation in Notion.Last updated -
- -securityFlicense-qualityConnects AI assistants to GitLab, allowing users to manage merge requests, view reviews, and interact with discussions through natural language queries.Last updated -9
- AsecurityAlicenseAqualityEnables comprehensive GitLab integration allowing LLMs to manage projects, issues, merge requests, repository files, CI/CD pipelines, and perform batch operations. Supports advanced features like AI-optimized summaries, smart diffs, and atomic operations with rollback support.Last updated -72Apache 2.0
- -securityAlicense-qualityEnables AI assistants to review GitLab merge requests by fetching changes, analyzing diffs, adding comments, and managing approvals through the GitLab API. Supports complete merge request analysis, file-specific reviews, and version comparisons.Last updated -3MIT License