gitlab-mcp-skill
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegitlab-mcp
gitlab-mcp
GitLab MCP server providing 217 tools: 215 tools across 20 toolsets, plus and the always-available meta-tool.
execute_graphqldiscover_toolsFor exact generated parameter tables, see . Use this file for workflow shape and high-signal parameter hints.
docs/tools/GitLab MCP服务器提供217个工具:涵盖20个工具集的215个工具,外加和始终可用的元工具。
execute_graphqldiscover_tools如需精确的生成参数表,请查看。本文件可用于了解工作流架构及高价值参数提示。
docs/tools/Toolsets
工具集
| Toolset | Default | Enable with |
|---|---|---|
| merge_requests (43 tools) | yes | - |
| issues (24 tools) | yes | - |
| repositories (7 tools) | yes | - |
| branches (15 tools) | yes | - |
| projects (11 tools) | yes | - |
| labels (5 tools) | yes | - |
| ci (4 tools) | yes | - |
| groups (1 tool) | yes | - |
| users (7 tools) | yes | - |
| pipelines (19 tools) | no | |
| milestones (17 tools) | no | |
| wiki (10 tools) | no | |
| releases (7 tools) | no | |
| tags (5 tools) | no | |
| workitems (18 tools) | no | |
| webhooks (3 tools) | no | |
| search (3 tools) | no | |
| variables (10 tools) | no | |
| dependency_proxy (4 tools) | no | |
| vulnerabilities (4 tools) | no | |
Enable all: . Use to enable individual tools outside their toolset. can list and activate opt-in categories for the current session. is not in a toolset; enable it explicitly with .
GITLAB_TOOLSETS=allGITLAB_TOOLSdiscover_toolsexecute_graphqlGITLAB_TOOLS=execute_graphql| 工具集 | 默认启用 | 启用方式 |
|---|---|---|
| merge_requests (43个工具) | 是 | - |
| issues (24个工具) | 是 | - |
| repositories (7个工具) | 是 | - |
| branches (15个工具) | 是 | - |
| projects (11个工具) | 是 | - |
| labels (5个工具) | 是 | - |
| ci (4个工具) | 是 | - |
| groups (1个工具) | 是 | - |
| users (7个工具) | 是 | - |
| pipelines (19个工具) | 否 | |
| milestones (17个工具) | 否 | |
| wiki (10个工具) | 否 | |
| releases (7个工具) | 否 | |
| tags (5个工具) | 否 | |
| workitems (18个工具) | 否 | |
| webhooks (3个工具) | 否 | |
| search (3个工具) | 否 | |
| variables (10个工具) | 否 | |
| dependency_proxy (4个工具) | 否 | |
| vulnerabilities (4个工具) | 否 | |
启用全部工具集:。使用可启用工具集外的单个工具。可列出并激活当前会话中的可选工具分类。不属于任何工具集,需通过显式启用。
GITLAB_TOOLSETS=allGITLAB_TOOLSdiscover_toolsexecute_graphqlGITLAB_TOOLS=execute_graphqlKey Workflows
核心工作流
Code Review (see reference/code-review.md)
代码评审(详见reference/code-review.md)
- - get file paths only (no diffs)
list_merge_request_changed_files - - get diffs for 3-5 files per call (batch)
get_merge_request_file_diff - or
create_merge_request_thread- leave review commentscreate_draft_note - - publish all drafts at once
bulk_publish_draft_notes
- - 仅获取文件路径(不含差异内容)
list_merge_request_changed_files - - 每次调用批量获取3-5个文件的差异内容
get_merge_request_file_diff - 或
create_merge_request_thread- 留下评审评论create_draft_note - - 一次性发布所有草稿评论
bulk_publish_draft_notes
MR Lifecycle (see reference/merge-requests.md)
MR生命周期(详见reference/merge-requests.md)
create_merge_requestapprove_merge_requestmerge_merge_requestcreate_merge_requestapprove_merge_requestmerge_merge_requestIssue Management (see reference/issues.md)
议题管理(详见reference/issues.md)
create_issuecreate_issue_linkcreate_issue_noteupdate_issueUse for small edits to long issue descriptions instead of resending the full body.
update_issue_description_patchcreate_issuecreate_issue_linkcreate_issue_noteupdate_issue若需对长议题描述进行小幅编辑,建议使用,而非重新发送完整内容。
update_issue_description_patchProjects & Namespaces
项目与命名空间
- ,
get_project,list_projects- inspect or change project settingsupdate_project - ,
list_project_members- search members by name or username within a project or grouplist_group_members - ,
list_namespaces,get_namespace- find target namespaces before creating projects/groupsverify_namespace - scopes nested namespace checks
verify_namespace.parent_id - creates a project under a group namespace
create_repository.namespace_id
- ,
get_project,list_projects- 查看或修改项目设置update_project - ,
list_project_members- 在项目或群组内按名称或用户名搜索成员list_group_members - ,
list_namespaces,get_namespace- 创建项目/群组前查找目标命名空间verify_namespace - 用于限定嵌套命名空间的检查范围
verify_namespace.parent_id - 用于在群组命名空间下创建项目
create_repository.namespace_id
Branches & Commits
分支与提交
- ,
create_branch,list_branches,get_branchdelete_branch - Protected branches: ,
list_protected_branches,get_protected_branch,protect_branch,unprotect_branchupdate_default_branch - Commits: ,
list_commits,get_commit,get_commit_diff,get_file_blame,list_commit_statusescreate_commit_status
- ,
create_branch,list_branches,get_branchdelete_branch - 受保护分支:,
list_protected_branches,get_protected_branch,protect_branch,unprotect_branchupdate_default_branch - 提交记录:,
list_commits,get_commit,get_commit_diff,get_file_blame,list_commit_statusescreate_commit_status
CI
CI
- Lint configs: ,
validate_ci_lintvalidate_project_ci_lint - Catalog: ,
list_ci_catalog_resourcesget_ci_catalog_resource - Pipelines/jobs/deployments: see reference/pipelines.md
- 配置校验:,
validate_ci_lintvalidate_project_ci_lint - 目录:,
list_ci_catalog_resourcesget_ci_catalog_resource - 流水线/作业/部署:详见reference/pipelines.md
Work Items (see reference/work-items.md)
工作项(详见reference/work-items.md)
list_work_itemsget_work_itemupdate_work_itemcreate_work_item_notelist_work_itemsget_work_itemupdate_work_itemcreate_work_item_noteVariables & Dependency Proxy
变量与依赖代理
Enable with or .
GITLAB_TOOLSETS=variablesGITLAB_TOOLSETS=dependency_proxy- Variables: project/group CRUD tools (,
list_*_variables,get_*_variable,create_*_variable,update_*_variable)delete_*_variable - Dependency proxy: ,
get_dependency_proxy_settings,update_dependency_proxy_settings,list_dependency_proxy_blobspurge_dependency_proxy_cache
通过或启用。
GITLAB_TOOLSETS=variablesGITLAB_TOOLSETS=dependency_proxy- 变量:项目/群组的增删改查工具(,
list_*_variables,get_*_variable,create_*_variable,update_*_variable)delete_*_variable - 依赖代理:,
get_dependency_proxy_settings,update_dependency_proxy_settings,list_dependency_proxy_blobspurge_dependency_proxy_cache
Webhooks & Search
Webhook与搜索
- Webhooks: see reference/webhooks.md
- Code search: see reference/search.md
- Webhook:详见reference/webhooks.md
- 代码搜索:详见reference/search.md
Vulnerability Triage (see reference/vulnerability-triage.md)
漏洞分类处理(详见reference/vulnerability-triage.md)
Enable with (requires GitLab Ultimate).
GITLAB_TOOLSETS=vulnerabilitieslist_project_vulnerabilitiesget_vulnerabilitydismiss_vulnerabilityconfirm_vulnerability通过启用(需GitLab Ultimate版本)。
GITLAB_TOOLSETS=vulnerabilitieslist_project_vulnerabilitiesget_vulnerabilitydismiss_vulnerabilityconfirm_vulnerabilityFile Operations
文件操作
- Read: ,
get_file_contentsget_repository_tree - Write: (single file),
create_or_update_file(multiple files in one commit)push_files
- 读取:,
get_file_contentsget_repository_tree - 写入:(单个文件),
create_or_update_file(单次提交多个文件)push_files
Parameter Hints
参数提示
- project_id: numeric ID or URL-encoded path ()
group%2Fsubgroup%2Fproject - namespace_id: numeric namespace ID for ; use
create_repository/list_namespacesfirstverify_namespace - parent_id: scope subgroup creation or for nested groups
verify_namespace - MR lookup: provide OR
mergeRequestIid(not both)branchName - list_issues: default scope = created by current user. Use for all issues
scope: "all" - list_merge_requests: without project_id returns user's MRs across all projects
- CI catalog resource lookup: provide exactly one of or
idfull_path - emoji reactions: merge request, issue, and work item reaction tools use GitLab emoji names like ,
thumbsup, orrocketeyes - work items: status and custom fields require GitLab Premium/Ultimate features
- execute_graphql: escape double quotes in query strings
- project_id:数字ID或URL编码路径()
group%2Fsubgroup%2Fproject - namespace_id:使用的数字命名空间ID;建议先使用
create_repository/list_namespaces查询verify_namespace - parent_id:限定子群组创建范围,或用于嵌套群组的检查
verify_namespace - MR查询:需提供或
mergeRequestIid(不可同时提供)branchName - list_issues:默认范围为当前用户创建的议题。使用可查询所有议题
scope: "all" - list_merge_requests:不提供project_id时,返回用户在所有项目中的MR
- CI目录资源查询:需精确提供或
id中的一个full_path - 表情反应:合并请求、议题和工作项的反应工具使用GitLab表情名称,如,
thumbsup或rocketeyes - 工作项:状态和自定义字段需GitLab Premium/Ultimate版本功能支持
- execute_graphql:查询字符串中的双引号需转义
Destructive Tools (require caution)
破坏性工具(需谨慎使用)
delete_branchdelete_draft_notedelete_group_milestonedelete_group_variabledelete_group_wiki_pagedelete_issuedelete_issue_emoji_reactiondelete_issue_linkdelete_issue_note_emoji_reactiondelete_labeldelete_merge_request_discussion_notedelete_merge_request_emoji_reactiondelete_merge_request_notedelete_merge_request_note_emoji_reactiondelete_milestonedelete_project_variabledelete_releasedelete_tagdelete_wiki_pagedelete_work_item_emoji_reactiondelete_work_item_note_emoji_reactionmerge_merge_requestprotect_branchpurge_dependency_proxy_cachepush_filesunprotect_branchupdate_default_branchdelete_branchdelete_draft_notedelete_group_milestonedelete_group_variabledelete_group_wiki_pagedelete_issuedelete_issue_emoji_reactiondelete_issue_linkdelete_issue_note_emoji_reactiondelete_labeldelete_merge_request_discussion_notedelete_merge_request_emoji_reactiondelete_merge_request_notedelete_merge_request_note_emoji_reactiondelete_milestonedelete_project_variabledelete_releasedelete_tagdelete_wiki_pagedelete_work_item_emoji_reactiondelete_work_item_note_emoji_reactionmerge_merge_requestprotect_branchpurge_dependency_proxy_cachepush_filesunprotect_branchupdate_default_branchAdvanced
进阶功能
- Dynamic discovery: lists and activates opt-in toolsets at runtime
discover_tools - GraphQL: for queries not covered by REST tools
execute_graphql - Tool docs: is generated from
docs/tools/; prefer it for exact schemastools/registry.ts - Remote MCP OAuth: when ,
GITLAB_MCP_OAUTH=true(DCR) is rate-limited per client IP (default 20/hour via MCP SDK; tune withPOST /register). Separate fromOAUTH_REGISTER_RATE_LIMIT_PER_HOURand GitLab API quotas — see environment-variables.mdMAX_REQUESTS_PER_MINUTE - Zoekt search: ,
search_code,search_project_code(requires advanced search enabled)search_group_code - Work Items: GraphQL-based alternative to issues (Premium/Ultimate features)
- 动态发现:可在运行时列出并激活可选工具集
discover_tools - GraphQL:用于处理REST工具未覆盖的查询需求
execute_graphql - 工具文档:由
docs/tools/生成;如需精确模式,建议优先查看该目录tools/registry.ts - 远程MCP OAuth:当时,
GITLAB_MCP_OAUTH=true(DCR)按客户端IP限流(默认通过MCP SDK限制为20次/小时;可通过POST /register调整)。此限流独立于OAUTH_REGISTER_RATE_LIMIT_PER_HOUR和GitLab API配额 — 详见environment-variables.mdMAX_REQUESTS_PER_MINUTE - Zoekt搜索:,
search_code,search_project_code(需启用高级搜索功能)search_group_code - 工作项:基于GraphQL的议题替代方案(需Premium/Ultimate版本功能支持)