dotsagent.io
语言:简体中文
开发工具 · GitLab

配置 GitLab

GitLab 内置 endpoint,支持 issue、merge request、pipeline 和搜索,并可选择工具集。

发布者
GitLab 官方
托管端点
https://gitlab.com/api/v4/mcp
传输方式
streamable-http
身份验证
OAuth。自托管实例使用 https://<host>/api/v4/mcp。
可访问内容
支持读写;使用 X-Gitlab-Enabled-Mcp-Server-Toolsets header 限制工具集。
状态
活跃

安装

此服务器由供应商托管,因此只需添加其 URL,无需在本机运行任何内容。如果需要身份验证,上方的条目会说明具体方式;OAuth 服务器会在首次连接时提示你进行授权。

Claude Code

shell
claude mcp add --transport http --scope project gitlab https://gitlab.com/api/v4/mcp

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "gitlab": {
      "url": "https://gitlab.com/api/v4/mcp"
    }
  }
}

Codex

~/.codex/config.toml
[mcp_servers.gitlab]
url = "https://gitlab.com/api/v4/mcp"

其他客户端的配置 →

开发工具 中的其他服务器

来源

  1. docs.gitlab.com/user/model_context_protocol/mcp_server/

为 AI agent 开发者提供的独立参考资料。与此处提及的任何厂商均无关联。

© 2026 DotsAgent · 事实核查日期:2026年10月1日