provider-gitlab
How to perform the tracker skill's operations on GitLab (gitlab.com or self-hosted) through the bundled GitLab MCP server — issues, merge requests, pipelines, CI lint, uploads. Load it when QA_TRACKER or QA_CODE_HOST is gitlab.
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 5
- Forks
- 4
01 前言 Front Matter
- name
- provider-gitlab
- description
- How to perform the tracker skill's operations on GitLab (gitlab.com or self-hosted) through the bundled GitLab MCP server — issues, merge requests, pipelines, CI lint, uploads. Load it when QA_TRACKER or QA_CODE_HOST is gitlab.
03 SKILL.md 正文
provider-gitlab
Tool: the GitLab MCP server @zereight/mcp-gitlab@2.2.1 (tool names and parameters checked against that version).
- Plugin install: it ships with the plugin. Tools are named
mcp__plugin_qa-agent_gitlab__<tool>, and the URL/token are plugin settings (/plugin configure qa-agent@devops-qa-agent) - Clone install: registered as
gitlabin.mcp.json. Tools are namedmcp__gitlab__<tool>
Below, <tool> means whichever form is loaded. The config must set GITLAB_TOOLSETS=core,issues,merge_requests,pipelines,ci (an explicit list replaces the default, so core stays in it) and GITLAB_TOOLS=upload_markdown. If a tool is missing from /mcp, check those first.
Settings: GITLAB_PROJECT_ID (numeric ID or URL-encoded group%2Fproject). It's passed as project_id on every call.
Operations
| Operation | Call |
|---|---|
issue.create |
create_issue(project_id, title, description, labels: [..]) |
issue.get |
get_issue(project_id, issue_iid) |
issue.update |
update_issue(project_id, issue_iid, description?, labels?). labels replaces the set, so send the full list |
issue.comment |
create_note(project_id, noteable_type: "issue", noteable_iid, body) |
issue.close / reopen |
update_issue(…, state_event: "close" | "reopen"), plus a create_note explaining why |
issue.list |
list_issues(project_id, labels, milestone, state: "opened" | "closed", search) |
issue.link |
put Relates to #<IID> in the body. GitLab renders #<IID> as a link |
file.attach |
upload_markdown(project_id, file_path: <absolute path>) returns  |
change.get |
get_merge_request(project_id, merge_request_iid), then list_merge_request_changed_files |
change.diff |
get_merge_request_diffs(project_id, merge_request_iid). Skip lockfiles and generated files |
change.comment |
create_note(project_id, noteable_type: "merge_request", noteable_iid, body) |
| find the MR for a branch | list_merge_requests(project_id, source_branch, state: "opened"), then "merged" |
ci.get_run |
get_pipeline(project_id, pipeline_id), then list_pipeline_jobs(project_id, pipeline_id, scope: "failed") |
ci.job_log |
get_pipeline_job_output(project_id, job_id, limit, offset). Read the tail first |
ci.latest_run |
list_pipelines(project_id, ref: <branch>), newest first |
ci.lint |
validate_ci_lint(project_id, content) |
project.check |
get_project(project_id) |
Notes
- IID vs id: issues and MRs have a project-scoped IID (
#143,!87), which is what users see, and a globalid. Always use and report the IID. If a call rejects one, fetch the object to resolve it rather than guessing - Labels: GitLab creates a missing label on first use. No setup needed
- Markdown: GitLab renders it natively, including
<details>blocks
04 同仓库更多 Skills
write-tests
WAY 4 — write test cases only, no execution. Use when the user says "write it", "write tests", "generate test cases" — an approved test plan (`Plan:`), or requirements (text or a tracker issue) planned and approved first, optional App/Spec/MR or PR → exactly the planned test files.
verify-fix
WAY 9 — verify that a bug is fixed by running its regression test. Use when the user says "verify it", "verify fix", "is #142 fixed", "check the fix" with one or more bug refs (#142, SHOP-142), or "verify all" for every open bug that has a regression test.
user-story-format
Reference only — the single definition of this project's user-story body (story, Gherkin ACs, Missing Information, DoD) and its AC/scenario rules. Read by user-story-enhancer (WAY 6) and benchmark-gap-story-writer (WAY 8) so stories they write stay identical in shape and WAY 6 can re-score WAY 8's output. Not a workflow on its own.
tracker
Provider-neutral contract for every issue-tracker and code-host action (create/update/comment/close issues, attach files, comment on MRs/PRs, read CI runs and logs) plus label conventions and failure handling. Every WAY calls these operations; the matching provider-* skill says how to perform them on GitLab, GitHub, Jira, Azure DevOps, or Bitbucket.
traceability
WAY 14 — requirements traceability matrix for a user story (each acceptance criterion) or a test folder written from plain text (each R-NN requirement) → the tests covering it → their latest result → open bugs. Use when the user says "trace it", "traceability", "is #148 covered", "coverage of SHOP-148", "trace it <folder>".
test-plan
WAY 19 — design a test plan before any test code. Use when the user says "plan it", "plan tests", "test plan", "design tests" with requirements (text or a tracker issue), optional App/Spec/MR or PR. Output is the test plan (scope, levels, one row per Test#<nn> with category, tags, covers, priority, coverage, entry/exit criteria, risks), reviewed by `review-plan` (WAY 20), filed for approval; `write it Plan:` / `e2e it Plan:` then write exactly that plan. Also holds the plan format every other WAY reads.