MCP.so
登录

GitLab MR MCP Server

@kopfrechner

基本信息

分类

版本控制

许可证

MIT

传输方式

stdio

作者

kopfrechner

关于 GitLab MR MCP Server

Interact seamlessly with GitLab repositories to manage merge requests and issues. Fetch details, add comments, and streamline your code review process with ease.

#gitlab#mcp#merge-requests#mcp-server

GitLab MR MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "gitlab-mr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli@latest",
        "install",
        "@kopfrechner/gitlab-mr-mcp",
        "--client",
        "claude",
        "--config",
        "\"{\"gitlabMrMcpToken\":\"YOUR_GITLAB_TOKEN\", \"gitlabMrMcpHost\": \"YOUR_GITLAB_HOST\"}\""
      ]
    }
  }
}

GitLab MR MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is 🚀 GitLab MR MCP?

🚀 GitLab MR MCP is a Model Context Protocol (MCP) server that enables AI agents to interact with GitLab repositories. It provides tools for reading and modifying merge requests and issues, making it useful for developers and automation workflows that need AI-assisted code review and project management.

How to use 🚀 GitLab MR MCP?

Install via Smithery (npx @smithery/cli install @kopfrechner/gitlab-mr-mcp) or manually by cloning the repository and adding the server configuration to your MCP client. The server requires environment variables MR_MCP_GITLAB_TOKEN and MR_MCP_GITLAB_HOST to authenticate with your GitLab instance. Optional variables MR_MCP_MIN_ACCESS_LEVEL and MR_MCP_PROJECT_SEARCH_TERM can filter accessible projects.

Key features of 🚀 GitLab MR MCP

  • List accessible GitLab projects
  • View open merge requests and detailed information
  • Retrieve and add general comments to merge requests
  • Get merge request diffs and add line-specific comments
  • Fetch issue details
  • Modify merge request title and description

Use cases of 🚀 GitLab MR MCP

  • AI agent reviewing open merge requests and providing feedback
  • Automatically adding comments or summaries to code diffs
  • Assisting developers with issue triage from chat or coding assistants
  • Generating release notes by querying merge request details
  • Updating merge request metadata in bulk via automation

常见问题

1

What does 🚀 GitLab MR MCP do?

It allows AI agents to list, read, comment on, and modify GitLab merge requests and issues using the Model Context Protocol. It covers tasks like viewing diffs, adding line-specific comments, and changing titles or descriptions.

2

What are the prerequisites?

Node.js, a GitLab personal access token with `api` or `read_api` scope, and the host URL of your GitLab instance. You also need the project ID(s) you wish to access.

3

How do I install and configure it?

You can install via Smithery or manually. For manual setup, clone the repository, run `npm install`, then add the server to your MCP client configuration with `command: "node"`, `args: ["/path/to/index.js"]`, and environment variables `MR_MCP_GITLAB_TOKEN` and `MR_MCP_GITLAB_HOST`.

4

How do I troubleshoot permission errors?

Ensure your GitLab token has the required scopes (`api`, `read_api`), the token’s user has the correct access level to the projects, and the project IDs are accurate.

5

What tools are available?

The server provides tools such as `get_projects`, `list_open_merge_requests`, `get_merge_request_details`, `get_merge_request_comments`, `add_merge_request_comment`, `add_merge_request_diff_comment`, `get_merge_request_diff`, `get_issue_details`, `set_merge_request_title`, and `set_merge_request_description`.

评论

版本控制 分类下的更多 MCP 服务器