Back to MCP directory
publicPublicdnsLocal runtime

GitLab Review

MCP GitLab服务器的扩展,提供合并请求的评论功能。

article

README

🚀 MCP GitLab 审查服务器

MCP GitLab 审查服务器是 MCP 的 GitLab 服务器扩展,它为合并请求提供了审查评论提交功能,极大地提升了代码审查的效率和便捷性。

🚀 快速开始

Model Context Protocol (MCP) 的 GitLab 服务器上新增了合并请求审查功能的扩展服务器。该服务器提供了以下实用功能:

  • 合并请求信息获取
  • 最新版本合并请求的获取
  • 审查评论的提交

环境变量设置

在使用该服务器前,你需要进行环境变量的设置,示例如下:

    "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "xxxxxx",
        "GITLAB_API_URL": "xxxxx"
    }

API 端点

以下是该服务器提供的 API 端点:

// 获取合并请求
GET /api/v4/projects/:project_id/merge_requests/:merge_request_iid

// 获取最新版本的合并请求
GET /api/v4/projects/:project_id/merge_requests/:merge_request_iid/versions

// 提交审查评论
POST /api/v4/projects/:project_id/merge_requests/:merge_request_iid/discussions

📄 许可证

本项目采用 MIT 许可证。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client