
rifqi96/mcp-gitlab
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
GitLabアカウントとやり取りできるモデルコンテキストプロトコル(MCP)サーバー。 差分の取得、マージリクエストの分析、レビューコード、チェリーピックの変更など.
概要
GitLabアカウントとやり取りできるモデルコンテキストプロトコル(MCP)サーバー。 差分の取得、マージリクエストの分析、レビューコード、チェリーピックの変更など。 これは、モデルコンテキストプロトコルプロジェクトからMCP GitLab Serverの拡張バージョンです。 このMCPサーバーは、GitLabリポジトリと相互作用するための包括的なツールを提供しています。 - プロジェクトのリストと詳細の取得 - ブランチとリポジトリの管理 - マージリクエストと差分を扱う - リクエストをマージするためのコメントと内部メモの追加 - マージリクエスト属性の更新 - 問題の一覧と作業 - リポジトリファイルコンテンツの取得と比較 - プロジェクト統合とサービスの管理 - Slackの統合の設定と制御 - セットアップ、更新、およびWebhookのテスト - パイプライントリガートークンを扱う - CI / CD変数の管理 - パイプラインのトリガーと制御 - ユーザーのリストと管理 - グループとグループのメンバーと協力して - プロジェクトを管理する...
概要(AI 翻訳)
GitLabアカウントとやり取りできるモデルコンテキストプロトコル(MCP)サーバー。 差分の取得、マージリクエストの分析、レビューコード、チェリーピックの変更など。 これは、モデルコンテキストプロトコルプロジェクトからMCP GitLab Serverの拡張バージョンです。
##特徴
このMCPサーバーは、GitLabリポジトリと相互作用するための包括的なツールを提供しています。
コアリポジトリ機能
- プロジェクトのリストと詳細の取得
- ブランチとリポジトリの管理
- リクエストと差分をマージする
- リクエストをマージするコメントや内部のメモを追加する
- リクエストマージ属性の更新
- 問題の一覧と作業
- リポジトリファイルの内容の取得と比較
##プロジェクト設定と統合
- プロジェクト統合とサービスの管理
- Slack統合の設定と制御
- Webhooksの設定、更新、テスト
CI/CD 管理
- パイプライントリガートークンを扱う
- CI/CD変数の管理
- パイプラインのトリガーと制御
##ユーザー&グループ管理
- ユーザーのリストと管理
- グループとグループのメンバーとの作業
- プロジェクトメンバーの管理とアクセスレベル
インストール
前提条件
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
GitLab MCP Server
A Model Context Protocol (MCP) server that enables you to interact with your GitLab account. Get diffs, analyze merge requests, review code, cherry-pick changes, and more. This is an extended version of the MCP GitLab Server from the Model Context Protocol project.
Features
This MCP server provides comprehensive tools for interacting with GitLab repositories, including:
Core Repository Features
- Listing projects and retrieving details
- Managing branches and repositories
- Working with merge requests and diffs
- Adding comments and internal notes to merge requests
- Updating merge request attributes
- Listing and working with issues
- Getting and comparing repository file contents
Project Settings & Integrations
- Managing project integrations and services
- Configuring and controlling Slack integration
- Setting up, updating, and testing webhooks
CI/CD Management
- Working with pipeline trigger tokens
- Managing CI/CD variables
- Triggering and controlling pipelines
User & Group Administration
- Listing and managing users
- Working with groups and group memberships
- Managing project members and access levels
Installation
Prerequisites
- Node.js (v16 or higher)
- npm
- A GitLab account with an API token
Setup
- Clone the repository:
git clone https://github.com/rifqi96/mcp-gitlab.git
cd mcp-gitlab
- Install dependencies:
npm install
- Build the server:
npm run build
- Install git hooks (optional, but recommended for contributors):
npm run install-hooks
This installs a pre-commit hook that automatically regenerates TOOLS.md when src/utils/tools-data.ts changes.
- Configure your GitLab API token:
You need to provide your GitLab API token in the MCP settings configuration file. The token is used to authenticate with the GitLab API.
For Cursor/Roo Cline, add the following to your MCP settings file (~/Library/Application Support/Cursor/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json):
{
"mcpServers": {
"gitlab": {
"command": "node",
"args": [
"/path/to/mcp-gitlab/build/index.js"
],
"env": {
"GITLAB_API_TOKEN": "YOUR_GITLAB_API_TOKEN",
"GITLAB_API_URL": "https://gitlab.com/api/v4"
}
}
}
}
For Claude Desktop, add the following to your MCP settings file (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"gitlab": {
"command": "node",
"args": [
"/path/to/mcp-gitlab/build/index.js"
],
"env": {
"GITLAB_API_TOKEN": "YOUR_GITLAB_API_TOKEN",
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"gitlab": {
"command": "node",
"args": [
"/path/to/mcp-gitlab/build/index.js"
],
"env": {
"GITLAB_API_TOKEN": "YOUR_GITLAB_API_TOKEN",
"GITLAB_API_URL": "https://gitlab.com/api/v4"
}
}
}
}