GitLab MCP 与 API 接入

团队应用鉴权:api_key

团队 GitLab.com:项目、仓库、合并请求、工单、CI/CD 流水线、环境、发行版与成员。

本地 GitLab MCP 配置

每台设备存放明文密钥

  • 原始 GitLab Token 被复制到本地配置文件
  • 每位成员在每台电脑都需要重复安装配置
  • 每次对话都要注入数十个工具 Schema 占满上下文
通过 Duang 金库接入 GitLab

一次连接,随时一键吊销

  • 每团队独立信封加密保存凭证
  • 本地磁盘与大模型提示词中零明文密钥
  • 全团队共享同一个远程 MCP 端点
发给 Agent 对话直接发给 Claude Code、OpenClaw、OpenCode、Grok Bot、Antigravity、Hermes 或 Pi

set up https://duang.ai/SKILL.md

全部操作(1452)

操作价格
GET gitlab.com/api/v4/groups/{id}/access_requests

List all access requests for a group

自备 Key
POST gitlab.com/api/v4/groups/{id}/access_requests

Request access to a group

自备 Key
PUT gitlab.com/api/v4/groups/{id}/access_requests/{user_id}/approve

Approve an access request

自备 Key
DELETE gitlab.com/api/v4/groups/{id}/access_requests/{user_id}

Deny an access request

自备 Key
GET gitlab.com/api/v4/projects/{id}/access_requests

List all access requests for a project

自备 Key
POST gitlab.com/api/v4/projects/{id}/access_requests

Request access to a project

自备 Key
PUT gitlab.com/api/v4/projects/{id}/access_requests/{user_id}/approve

Approve an access request

自备 Key
DELETE gitlab.com/api/v4/projects/{id}/access_requests/{user_id}

Deny an access request

自备 Key
DELETE gitlab.com/api/v4/users/{user_id}/impersonation_tokens/{impersonation_token_id}

Revoke an impersonation token

自备 Key
DELETE gitlab.com/api/v4/projects/{id}/service_accounts/{user_id}/personal_access_tokens/{token_id}

Revoke a personal access token for a project service account

自备 Key
DELETE gitlab.com/api/v4/groups/{id}/service_accounts/{user_id}/personal_access_tokens/{token_id}

Revoke a personal access token for a group service account

自备 Key
DELETE gitlab.com/api/v4/projects/{id}/access_tokens/{token_id}

Revoke a project access token

自备 Key
DELETE gitlab.com/api/v4/groups/{id}/access_tokens/{token_id}

Revoke a group access token

自备 Key
DELETE gitlab.com/api/v4/personal_access_tokens/self

Revoke a personal access token

自备 Key
DELETE gitlab.com/api/v4/personal_access_tokens/{id}

Revoke a personal access token

自备 Key
GET gitlab.com/api/v4/admin/active_context/connections

Get all ActiveContext connections

自备 Key
PUT gitlab.com/api/v4/admin/active_context/connections/activate

Activate an ActiveContext connection

自备 Key
PUT gitlab.com/api/v4/admin/active_context/connections/deactivate

Deactivate an ActiveContext connection

自备 Key
PUT gitlab.com/api/v4/admin/active_context/collections/{id}

Update collection options

自备 Key
DELETE gitlab.com/api/v4/admin/active_context/dead_queue

Clear the ActiveContext dead queue

自备 Key
POST gitlab.com/api/v4/admin/active_context/dead_queue/replay

Replay items from the dead queue into another queue

自备 Key
PUT gitlab.com/api/v4/admin/active_context/code/enabled_namespaces

Update enabled namespace state

自备 Key
PUT gitlab.com/api/v4/elasticsearch_indexed_namespaces/rollout

Rollout namespaces to be indexed up to n%

自备 Key
PUT gitlab.com/api/v4/elasticsearch_indexed_namespaces/rollback

Rollback namespaces to be indexed down to n%

自备 Key
GET gitlab.com/api/v4/job/allowed_agents

List all GitLab agents for Kubernetes by job token

自备 Key
POST gitlab.com/api/v4/projects/{id}/alert_management_alerts/{alert_iid}/metric_images/authorize

Workhorse authorize metric image file upload

自备 Key
GET gitlab.com/api/v4/projects/{id}/alert_management_alerts/{alert_iid}/metric_images

List all metric images

自备 Key
DELETE gitlab.com/api/v4/projects/{id}/alert_management_alerts/{alert_iid}/metric_images/{metric_image_id}

Delete a metric image

自备 Key
GET gitlab.com/api/v4/projects/{id}/analytics/deployment_frequency

List deployment frequencies for the project

自备 Key
GET gitlab.com/api/v4/analytics/group_activity/issues_count

Retrieve count of recently created issues for a group

自备 Key
GET gitlab.com/api/v4/analytics/group_activity/merge_requests_count

Retrieve count of recently created merge requests for a group

自备 Key
GET gitlab.com/api/v4/analytics/group_activity/new_members_count

Retrieve count of members recently added to a group

自备 Key
GET gitlab.com/api/v4/user/applications

List all applications

自备 Key
GET gitlab.com/api/v4/user/applications/{id}

Retrieve an application

自备 Key
DELETE gitlab.com/api/v4/user/applications/{id}

Delete an application

自备 Key
PUT gitlab.com/api/v4/user/applications/{id}

Update an application

自备 Key
GET gitlab.com/api/v4/applications

Get applications

自备 Key
DELETE gitlab.com/api/v4/applications/{id}

Delete an application

自备 Key
GET gitlab.com/api/v4/projects/{id}/approval_settings

Get all project approval rules

自备 Key
POST gitlab.com/api/v4/projects/{id}/approval_settings/rules

Create new approval rule

自备 Key
PUT gitlab.com/api/v4/projects/{id}/approval_settings/rules/{approval_rule_id}

Update approval rule

自备 Key
DELETE gitlab.com/api/v4/projects/{id}/approval_settings/rules/{approval_rule_id}

Delete an approval rule

自备 Key
GET gitlab.com/api/v4/groups/{id}/approval_rules

List all approval rules for a group

自备 Key
POST gitlab.com/api/v4/groups/{id}/approval_rules

Create an approval rule for a group

自备 Key
PUT gitlab.com/api/v4/groups/{id}/approval_rules/{approval_rule_id}

Update group approval rule

自备 Key
GET gitlab.com/api/v4/projects/{id}/approval_rules

List all approval rules for a project

自备 Key
POST gitlab.com/api/v4/projects/{id}/approval_rules

Create an approval rule for a project

自备 Key
GET gitlab.com/api/v4/projects/{id}/approval_rules/{approval_rule_id}

Retrieve an approval rule for a project

自备 Key
PUT gitlab.com/api/v4/projects/{id}/approval_rules/{approval_rule_id}

Update an approval rule for a project

自备 Key
DELETE gitlab.com/api/v4/projects/{id}/approval_rules/{approval_rule_id}

Delete an approval rule for a project

自备 Key
GET gitlab.com/api/v4/projects/{id}/attestations/signing_certificates

List all signing certificates for a project

自备 Key
GET gitlab.com/api/v4/projects/{id}/attestations/{subject_digest}

List all attestations for a project

自备 Key
GET gitlab.com/api/v4/projects/{id}/attestations/{attestation_iid}/download

Retrieve an attestation bundle

自备 Key
GET gitlab.com/api/v4/audit_events

List all instance audit events

自备 Key
GET gitlab.com/api/v4/audit_events/{id}

Retrieve an instance audit event

自备 Key
GET gitlab.com/api/v4/groups/{id}/audit_events

List all group audit events

自备 Key
GET gitlab.com/api/v4/iam/userinfo

Return the OIDC ID-token claims for the caller identified by an IAM OAuth token

自备 Key
GET gitlab.com/api/v4/projects/{id}/avatar

Download a project avatar

自备 Key
GET gitlab.com/api/v4/groups/{id}/avatar

Download a group avatar

自备 Key
GET gitlab.com/api/v4/avatar

Return avatar url for a user

自备 Key
已展示 60 / 1452 个操作,在上方输入关键词可检索全部。

常见问题

如何在 Claude Code 或 Cursor 中接入 GitLab?

通过 Duang 远程 MCP 网关(https://api.duang.ai/mcp)一键连接,即可让 AI Agent 调用 GitLab 全部 1452 个操作,无需本地维护 MCP 插件或明文密钥。

通过 Duang 接入 GitLab 需要额外付费吗?

团队应用接入永久 $0 平台费。凭证加密封存于团队金库,永不进入模型上下文。

我的 GitLab 密钥会暴露给大模型吗?

不会。密钥仅在 Duang 服务端出站请求时解密注入,本地配置文件与大模型上下文中均不包含明文密钥。

相关团队应用