自定义 GitLab MCP 服务器

自定义 GitLab MCP 服务器

用于与 Claude 等 AI 助手集成的自定义 GitLab MCP 服务器实现。

快速入门

  1. 克隆仓库: git clone https://github.com/chris-miaskowski/custom-gitlab-mcp-server.git

  2. 安装依赖: npm install

  3. 配置运行环境(在配置文件中添加以下内容): { "mcpServers": { "github.com/modelcontextprotocol/servers/tree/main/src/gitlab": { "command": "node", "args": ["/path/to/custom-gitlab-server/index.js"], "env": { "GITLAB_PERSONAL_ACCESS_TOKEN": "your-gitlab-token", "GITLAB_API_URL": "https://your-gitlab-instance/api/v4" } } } }

  4. 启动服务并开始使用。

前置条件

  • Node.js (v14 或更高)
  • GitLab 访问令牌,需具备 apiread_api 和其他必要权限。