GitLab PR分析MCPサーバー
このプロジェクトは、GitLabのマージリクエスト分析とConfluenceのドキュメントを統合するMCP(モデル制御プロトコル)サーバーを提供します。これにより、マージリクエストの詳細を取得し、コード変更を分析し、結果をConfluenceページに保存できます。
特徴
- GitLabからマージリクエストの詳細を取得する
- マージリクエストのコード変更を分析する
- 以下を含む詳細なレポートを生成します:
- 基本的なマージリクエスト情報
- コード変更統計
- ファイルタイプ分析
- 詳細なファイルの変更
- 分析結果をConfluenceに保存する
- デバッグのための包括的なログ記録
前提条件
- Python 3.8以上
- APIアクセス可能なGitLabアカウント
- Confluence アカウント(オプション、分析結果の保存用)
- 必要な GitLab プロジェクトへのアクセス
インストール
- リポジトリをクローンします。
- 仮想環境を作成してアクティブ化します。
- 依存関係をインストールします:
または
構成
- サンプル環境ファイルをコピーします。
- 資格情報を使用して
.env
ファイルを編集します。
資格情報の取得
- GitLab トークン: GitLab で
api
スコープを使用して個人アクセス トークンを生成する - Confluenceトークン: Atlassianアカウント設定でAPIトークンを生成します
使用法
- MCP サーバーを起動します。
または
Claude Desktopでのセットアップ
プロジェクト「my-project」からマージリクエスト #1 の詳細を取得できますか?プロジェクト「my-project」のマージリクエスト #1 のコード変更を分析できますか?プロジェクト「my-project」のマージリクエスト #1 の概要を Confluence に保存できますか?
MRConfluenceLinker-mcp-server/ ├── src/ # ソースコードディレクトリ │ └── MRConfluenceLinker-mcp-server/ # メインサーバーパッケージ │ ├── resources/ # リソースモジュール │ │ ├── init .py │ │ ├── client.py # クライアント実装 / GitLab PR 統合 │ ├── server.py # メインサーバー実装 │ └── mcp_server.log # サーバーログ ├── pycache / # Python キャッシュファイル ├── .git/ # Git リポジトリ ├── .gitignore # Git 無視ルール ├── CONTRIBUTING.md # 貢献ガイドライン ├── LICENSE # プロジェクトライセンス ├── README.md # プロジェクトドキュメント ├── pyproject.toml # Python プロジェクト構成 ├── requirements.txt # プロジェクトの依存関係└── uv.lock # 依存関係ロックファイル
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