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
- AsecurityAlicenseAqualityProvides GitHub data analysis for repositories, developers, and organizations, enabling insights into open source ecosystems through API calls and natural language queries.Last updated -513JavaScriptMIT License
- -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 -Python
- -securityAlicense-qualityAn MCP server that integrates AI assistants like Claude with GitLab's merge requests, allowing them to review code changes, add comments, and approve/unapprove merge requests directly through the GitLab API.Last updated -21PythonMIT License
- -securityAlicense-qualityA server that integrates Confluence with Claude Desktop and other AI assistants, enabling natural language interactions with your Confluence documentation.Last updated -1TypeScriptMIT License