{"id":26937600,"url":"https://github.com/kopfrechner/gitlab-mr-mcp","last_synced_at":"2025-12-30T01:13:18.910Z","repository":{"id":285001189,"uuid":"954259665","full_name":"kopfrechner/gitlab-mr-mcp","owner":"kopfrechner","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-28T20:39:10.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T21:25:53.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kopfrechner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-24T20:02:10.000Z","updated_at":"2025-03-28T20:39:13.000Z","dependencies_parsed_at":"2025-03-28T21:26:07.922Z","dependency_job_id":"ff21d111-febc-4fae-8e46-139df5ded8e5","html_url":"https://github.com/kopfrechner/gitlab-mr-mcp","commit_stats":null,"previous_names":["kopfrechner/gitlab-mr-mcp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopfrechner%2Fgitlab-mr-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopfrechner%2Fgitlab-mr-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopfrechner%2Fgitlab-mr-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopfrechner%2Fgitlab-mr-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kopfrechner","download_url":"https://codeload.github.com/kopfrechner/gitlab-mr-mcp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246819781,"owners_count":20839095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-02T13:15:23.669Z","updated_at":"2025-12-30T01:13:18.905Z","avatar_url":"https://github.com/kopfrechner.png","language":"JavaScript","funding_links":[],"categories":["Cloud Infrastructure","Developer Tools","Project Management MCP Servers","MCP 服务器精选列表","サーバー実装","🔄 CI/CD \u0026 Version Control","🌐 Web Development","JavaScript","Version Control","Table of Contents"],"sub_categories":["🔄 Version Control","Version Control","🔄 版本控制 (Git / GitHub / GitLab)","🔄 \u003ca name=\"version-control\"\u003e\u003c/a\u003eバージョン管理"],"readme":"[![MseeP.ai Security Assessment Badge](https://mseep.net/pr/kopfrechner-gitlab-mr-mcp-badge.png)](https://mseep.ai/app/kopfrechner-gitlab-mr-mcp)\n\n[![GitHub stars](https://img.shields.io/github/stars/kopfrechner/gitlab-mr-mcp?style=flat)](https://github.com/kopfrechner/gitlab-mr-mcp/stargazers)\n[![License](https://img.shields.io/github/license/kopfrechner/gitlab-mr-mcp)](LICENSE)\n[![smithery badge](https://smithery.ai/badge/@kopfrechner/gitlab-mr-mcp)](https://smithery.ai/server/@kopfrechner/gitlab-mr-mcp)\n\n# 🚀 GitLab MR MCP\n\nA Model Context Protocol (MCP) server for interacting with GitLab merge requests and issues.\n\n## 📌 Overview\n\nThis project implements a server using the Model Context Protocol (MCP) that allows AI agents to interact with GitLab repositories. It provides tools for:\n\n- Listing available GitLab projects\n- Fetching merge request details and comments\n- Getting merge request diffs\n- Adding comments to merge requests\n- Adding line-specific comments to code in merge request diffs\n- Fetching issue details\n- Setting merge request title and description\n\n## 📦 Installation\n\n### ⚡ Using Smithery\n\nTo install GitLab MR MCP for Claude Desktop automatically via Smithery:\n\n```bash\nnpx -y @smithery/cli@latest install @kopfrechner/gitlab-mr-mcp --client claude --config '\"{\\\"gitlabMrMcpToken\\\":\\\"YOUR_GITLAB_TOKEN\\\", \\\"gitlabMrMcpHost\\\": \\\"YOUR_GITLAB_HOST\\\"}\"'\n```\n\n### 🛠️ Manual Installation\n\n#### 🔧 Prerequisites\n\n- Node.js\n- GitLab access token with API access\n- GitLab project ID(s)\n\n#### 📖 Setup\n\n1. Clone this repository\n2. Install dependencies:\n\n```bash\nnpm install\n```\n\n3. Add the following to your MCP client configuration:\n```json\n{\n  \"mcpServers\": {\n    \"gitlab-mr-mcp\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/gitlab-mr-mcp/index.js\"],\n      \"env\": {\n        \"MR_MCP_GITLAB_TOKEN\": \"your_gitlab_token\",\n        \"MR_MCP_GITLAB_HOST\": \"your_gitlab_host\"\n      }\n    }\n  }\n}\n```\n\n## 🛠️ Available Tools\n\n* `get_projects`\n  Gets a list of GitLab projects accessible with your token.\n\n* `list_open_merge_requests`\n  Lists all open merge requests in the specified project.\n\n* `get_merge_request_details`\n  Gets detailed information about a specific merge request.\n\n* `get_merge_request_comments`\n  Gets comments from a specific merge request, including discussion notes and diff notes.\n\n* `add_merge_request_comment`\n  Adds a general comment to a merge request.\n\n* `add_merge_request_diff_comment`\n  Adds a comment to a specific line in a file within a merge request.\n\n* `get_merge_request_diff`\n  Gets the diff for a merge request.\n\n* `get_issue_details`\n  Gets detailed information about a specific issue.\n\n* `set_merge_request_title`\n  Set the title of a merge request\n\n* `set_merge_request_description`\n  Set the description of a merge request\n\n## 🏗️ Development\n\n### 🔍 Running Inspector\n\nSet up environment variables:\n\n```bash\nexport MR_MCP_GITLAB_TOKEN=your_gitlab_token\nexport MR_MCP_GITLAB_HOST=your_gitlab_host\n\n# Optional evn vars to filter the projects the `get_projects` tool has access to:\n# https://docs.gitlab.com/api/access_requests/#valid-access-levels\nexport MR_MCP_MIN_ACCESS_LEVEL=min_access_level\n# Search term that should match the project path or name \nexport MR_MCP_PROJECT_SEARCH_TERM=term \n```\n\nFor use with MCP clients, you can run:\n\n```bash\nnpx -y @modelcontextprotocol/inspector npm start\n```\n\n## 🛠️ Troubleshooting\n\nIf you encounter permissions issues (403 Forbidden), check:\n\n1. Your GitLab token has the proper scopes (api, read_api)\n2. The token user has proper access to the projects\n3. The project IDs are correct\n\n## 📜 License\n\n[MIT](LICENSE)\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkopfrechner%2Fgitlab-mr-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkopfrechner%2Fgitlab-mr-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkopfrechner%2Fgitlab-mr-mcp/lists"}