@zereight/mcp-gitlab 2.1.61 → 2.1.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ko.md +1 -1
- package/README.md +120 -116
- package/README.zh-CN.md +5 -1
- package/build/config.js +7 -0
- package/build/index.js +97 -21
- package/build/masking/engine.js +404 -0
- package/build/masking/index.js +2 -0
- package/build/masking/project-scope.js +53 -0
- package/build/schemas.js +25 -18
- package/build/test/get-merge-request-discussion-schema.test.js +30 -0
- package/build/test/gitlab-pipeline-schedule-schema.test.js +32 -0
- package/build/test/group-milestone-schema.test.js +4 -4
- package/build/test/response-masking.test.js +412 -0
- package/build/test/streamable-http-concurrent-session.test.js +16 -0
- package/build/test/test-health-check.js +9 -0
- package/build/test/test-toolset-filtering.js +1 -1
- package/build/test/test-update-project.js +1 -1
- package/build/test/utils/masking.test.js +384 -0
- package/build/test/utils/merge-request-position.test.js +1 -1
- package/build/tools/registry.js +10 -4
- package/build/tools/tool-descriptions.js +1 -0
- package/build/utils/schema.js +46 -23
- package/package.json +2 -3
package/README.ko.md
CHANGED
|
@@ -110,7 +110,7 @@ command = lib.getExe inputs.gitlab-mcp.packages.${system}.default;
|
|
|
110
110
|
|
|
111
111
|
예시는 기존 `mcp-gitlab`보다 충돌 가능성이 낮은 `zereight-mcp-gitlab` 별칭을 사용합니다. MCP 클라이언트가 찾지 못하면 `which zereight-mcp-gitlab`의 절대 경로를 사용하세요.
|
|
112
112
|
|
|
113
|
-
전역 설치를 쓰지 않으려면 `npx -y @zereight/mcp-gitlab@2.1.
|
|
113
|
+
전역 설치를 쓰지 않으려면 `npx -y @zereight/mcp-gitlab@2.1.62`처럼 직전 안정 버전(문서가 권장하는 버전)으로 고정하세요. 항상 최신 버전을 원하면 `npx -y @zereight/mcp-gitlab@latest`를 사용하세요. 새 버전이 나오면 서버가 시작 시 stderr로 알려줍니다(`GITLAB_DISABLE_VERSION_CHECK=true`로 비활성화 가능).
|
|
114
114
|
|
|
115
115
|
#### CLI 인자 사용하기(환경 변수 문제가 있는 클라이언트용)
|
|
116
116
|
|
package/README.md
CHANGED
|
@@ -115,7 +115,7 @@ The store path is pinned by your lock file; update it with `nix flake update git
|
|
|
115
115
|
|
|
116
116
|
The examples use `zereight-mcp-gitlab`, a less collision-prone alias for the legacy `mcp-gitlab` binary. If your MCP client cannot find it, use the absolute path from `which zereight-mcp-gitlab`.
|
|
117
117
|
|
|
118
|
-
No global install? Pin `npx` to the previous stable release (the version these docs recommend), for example `npx -y @zereight/mcp-gitlab@2.1.
|
|
118
|
+
No global install? Pin `npx` to the previous stable release (the version these docs recommend), for example `npx -y @zereight/mcp-gitlab@2.1.62`. If you always want the newest release, use `npx -y @zereight/mcp-gitlab@latest` instead. The server prints a notice to stderr on startup when a newer version is available (disable with `GITLAB_DISABLE_VERSION_CHECK=true`).
|
|
119
119
|
|
|
120
120
|
#### Using CLI Arguments (for clients with env var issues)
|
|
121
121
|
|
|
@@ -143,6 +143,10 @@ Some MCP clients (like GitHub Copilot CLI) have issues with environment variable
|
|
|
143
143
|
- `--use-milestone=true` - Enable milestone API (replaces `USE_MILESTONE`, legacy — prefer `GITLAB_TOOLSETS=milestones`)
|
|
144
144
|
- `--use-pipeline=true` - Enable pipeline API (replaces `USE_PIPELINE`, legacy — prefer `GITLAB_TOOLSETS=pipelines`)
|
|
145
145
|
- `--disable-version-check=true` - Disable the startup new-version notice (replaces `GITLAB_DISABLE_VERSION_CHECK`)
|
|
146
|
+
- `--masking-enabled=true` - Enable text-response masking (replaces `GITLAB_MASKING_ENABLED`)
|
|
147
|
+
- `--masking-config` - Path to a masking configuration file (replaces `GITLAB_MASKING_CONFIG`)
|
|
148
|
+
- `--masking-policy-file` - Path to a protected managed-policy file (replaces `GITLAB_MASKING_POLICY_FILE`)
|
|
149
|
+
- `--masking-workspace-dir` - Directory used to resolve masking files (replaces `GITLAB_MASKING_WORKSPACE_DIR`)
|
|
146
150
|
|
|
147
151
|
CLI arguments take precedence over environment variables.
|
|
148
152
|
|
|
@@ -583,23 +587,23 @@ Register the skill directory in your AI client to get optimal tool usage guidanc
|
|
|
583
587
|
|
|
584
588
|
<!-- TOOLS-START -->
|
|
585
589
|
|
|
586
|
-
1. `merge_merge_request` - Merge a merge request
|
|
587
|
-
2. `approve_merge_request` - Approve a merge request
|
|
588
|
-
3. `unapprove_merge_request` - Unapprove a
|
|
589
|
-
4. `get_merge_request_approval_state` - Get merge request approval details including approvers
|
|
590
|
-
5. `get_merge_request_conflicts` - Get the conflicts of a merge request
|
|
591
|
-
6. `list_merge_request_pipelines` - List pipelines for a merge request with pagination
|
|
590
|
+
1. `merge_merge_request` - Merge a merge request
|
|
591
|
+
2. `approve_merge_request` - Approve a merge request
|
|
592
|
+
3. `unapprove_merge_request` - Unapprove a merge request
|
|
593
|
+
4. `get_merge_request_approval_state` - Get merge request approval details including approvers
|
|
594
|
+
5. `get_merge_request_conflicts` - Get the conflicts of a merge request
|
|
595
|
+
6. `list_merge_request_pipelines` - List pipelines for a merge request with pagination
|
|
592
596
|
7. `execute_graphql` - Execute a GitLab GraphQL query
|
|
593
|
-
8. `create_or_update_file` - Create or update a
|
|
597
|
+
8. `create_or_update_file` - Create or update a file in a GitLab project
|
|
594
598
|
9. `search_repositories` - Search for GitLab projects
|
|
595
599
|
10. `create_repository` - Create a new GitLab project
|
|
596
|
-
11. `create_group` - Create
|
|
597
|
-
12. `get_file_contents` - Get
|
|
598
|
-
13. `push_files` - Push multiple files
|
|
599
|
-
14. `create_issue` - Create a new issue
|
|
600
|
-
15. `create_merge_request` - Create a new merge request
|
|
601
|
-
16. `fork_repository` - Fork a
|
|
602
|
-
17. `create_branch` - Create a new branch
|
|
600
|
+
11. `create_group` - Create new group or subgroup
|
|
601
|
+
12. `get_file_contents` - Get contents of a file or directory from a GitLab project
|
|
602
|
+
13. `push_files` - Push multiple files in a single commit
|
|
603
|
+
14. `create_issue` - Create a new issue
|
|
604
|
+
15. `create_merge_request` - Create a new merge request
|
|
605
|
+
16. `fork_repository` - Fork a project to your account or specified namespace
|
|
606
|
+
17. `create_branch` - Create a new branch
|
|
603
607
|
18. `get_branch` - Get branch details (commit, protection status)
|
|
604
608
|
19. `list_branches` - List branches in project with search filter
|
|
605
609
|
20. `delete_branch` - Delete branch from project
|
|
@@ -608,15 +612,15 @@ Register the skill directory in your AI client to get optimal tool usage guidanc
|
|
|
608
612
|
23. `protect_branch` - Protect a repository branch (set push/merge/unprotect access levels)
|
|
609
613
|
24. `unprotect_branch` - Remove protection from a previously protected branch
|
|
610
614
|
25. `update_default_branch` - Change the default branch of a project
|
|
611
|
-
26. `get_merge_request` - Get details of a merge request
|
|
612
|
-
27. `get_merge_request_diffs` - Get the changes/diffs of a merge request (
|
|
613
|
-
28. `list_merge_request_changed_files` -
|
|
614
|
-
29. `list_merge_request_diffs` - List merge request diffs with pagination
|
|
615
|
-
30. `get_merge_request_file_diff` -
|
|
615
|
+
26. `get_merge_request` - Get details of a merge request (mergeRequestIid or branchName required). Set include_summaries=true for deployment/commit/approval summaries
|
|
616
|
+
27. `get_merge_request_diffs` - Get the changes/diffs of a merge request (mergeRequestIid or branchName required)
|
|
617
|
+
28. `list_merge_request_changed_files` - List changed file paths in a merge request without diff content (mergeRequestIid or branchName required)
|
|
618
|
+
29. `list_merge_request_diffs` - List merge request diffs with pagination (mergeRequestIid or branchName required)
|
|
619
|
+
30. `get_merge_request_file_diff` - Get diffs for specific files from a merge request (mergeRequestIid or branchName required)
|
|
616
620
|
31. `list_merge_request_versions` - List all versions of a merge request
|
|
617
621
|
32. `get_merge_request_version` - Get a specific version of a merge request
|
|
618
|
-
33. `get_branch_diffs` - Get
|
|
619
|
-
34. `update_merge_request` - Update a merge request (
|
|
622
|
+
33. `get_branch_diffs` - Get diffs between two branches or commits
|
|
623
|
+
34. `update_merge_request` - Update a merge request (mergeRequestIid or branchName required)
|
|
620
624
|
35. `create_note` - Create a new note (comment) to an issue or merge request
|
|
621
625
|
36. `create_merge_request_thread` - Create a new thread on a merge request
|
|
622
626
|
37. `resolve_merge_request_thread` - Resolve a thread on a merge request
|
|
@@ -624,18 +628,18 @@ Register the skill directory in your AI client to get optimal tool usage guidanc
|
|
|
624
628
|
39. `delete_merge_request_discussion_note` - Delete a discussion note on a merge request
|
|
625
629
|
40. `update_merge_request_discussion_note` - Update a discussion note on a merge request
|
|
626
630
|
41. `create_merge_request_discussion_note` - Add a new discussion note to an existing merge request thread
|
|
627
|
-
42. `create_merge_request_note` - Add a new note to
|
|
631
|
+
42. `create_merge_request_note` - Add a new note to a merge request
|
|
628
632
|
43. `delete_merge_request_note` - Delete an existing merge request note
|
|
629
633
|
44. `get_merge_request_note` - Get a specific note for a merge request
|
|
630
634
|
45. `get_merge_request_notes` - List notes for a merge request
|
|
631
|
-
46. `update_merge_request_note` - Modify an existing merge request
|
|
635
|
+
46. `update_merge_request_note` - Modify an existing merge request note
|
|
632
636
|
47. `get_draft_note` - Get a single draft note from a merge request
|
|
633
637
|
48. `list_draft_notes` - List draft notes for a merge request
|
|
634
638
|
49. `create_draft_note` - Create a draft note for a merge request
|
|
635
639
|
50. `update_draft_note` - Update an existing draft note
|
|
636
640
|
51. `delete_draft_note` - Delete a draft note
|
|
637
641
|
52. `publish_draft_note` - Publish a single draft note
|
|
638
|
-
53. `bulk_publish_draft_notes` - Publish all draft notes for a merge request
|
|
642
|
+
53. `bulk_publish_draft_notes` - Publish all draft notes for a merge request. Optionally sets reviewer_state and posts a summary note (GitLab 19.2+). Can set reviewer_state even with no drafts.
|
|
639
643
|
54. `list_merge_request_emoji_reactions` - List all emoji reactions on a merge request
|
|
640
644
|
55. `list_merge_request_note_emoji_reactions` - List all emoji reactions on a merge request note. Pass discussion_id for discussion thread replies.
|
|
641
645
|
56. `create_merge_request_emoji_reaction` - Add an emoji reaction to a merge request (e.g. thumbsup, rocket, eyes)
|
|
@@ -643,30 +647,30 @@ Register the skill directory in your AI client to get optimal tool usage guidanc
|
|
|
643
647
|
58. `create_merge_request_note_emoji_reaction` - Add an emoji reaction to a merge request note. Pass discussion_id for discussion thread replies.
|
|
644
648
|
59. `delete_merge_request_note_emoji_reaction` - Remove an emoji reaction from a merge request note. Pass discussion_id for discussion thread replies.
|
|
645
649
|
60. `update_issue_note` - Modify an existing issue thread note
|
|
646
|
-
61. `create_issue_note` - Add a
|
|
650
|
+
61. `create_issue_note` - Add a note to an issue, optionally replying to a discussion thread
|
|
647
651
|
62. `list_issue_emoji_reactions` - List all emoji reactions on an issue
|
|
648
652
|
63. `list_issue_note_emoji_reactions` - List all emoji reactions on an issue note. Pass discussion_id for discussion thread replies.
|
|
649
653
|
64. `create_issue_emoji_reaction` - Add an emoji reaction to an issue (e.g. thumbsup, rocket, eyes)
|
|
650
654
|
65. `delete_issue_emoji_reaction` - Remove an emoji reaction from an issue
|
|
651
655
|
66. `create_issue_note_emoji_reaction` - Add an emoji reaction to an issue note. Pass discussion_id for discussion thread replies.
|
|
652
656
|
67. `delete_issue_note_emoji_reaction` - Remove an emoji reaction from an issue note. Pass discussion_id for discussion thread replies.
|
|
653
|
-
68. `list_issues` - List issues (default: created by current user
|
|
654
|
-
69. `my_issues` - List issues assigned to the authenticated user
|
|
655
|
-
70. `get_issue` - Get details of a specific issue
|
|
656
|
-
71. `update_issue` - Update an issue
|
|
657
|
-
72. `update_issue_description_patch` - Apply a patch (search/replace or unified diff) to an issue description. Reduces token usage by
|
|
658
|
-
73. `delete_issue` - Delete an issue
|
|
657
|
+
68. `list_issues` - List issues (default: created by current user; use scope='all' for all)
|
|
658
|
+
69. `my_issues` - List issues assigned to the authenticated user
|
|
659
|
+
70. `get_issue` - Get details of a specific issue. Returns a slim milestone by default; set full_response=true for the complete milestone object
|
|
660
|
+
71. `update_issue` - Update an issue. Returns a slim confirmation by default; set full_response=true for the complete updated issue object
|
|
661
|
+
72. `update_issue_description_patch` - Apply a patch (search/replace or unified diff) to an issue description. Reduces token usage by allowing small changes without sending the full description. Supports dry_run to preview changes and create_note to summarize updates.
|
|
662
|
+
73. `delete_issue` - Delete an issue
|
|
659
663
|
74. `list_todos` - List GitLab to-do items for the current user
|
|
660
664
|
75. `mark_todo_done` - Mark a GitLab to-do item as done
|
|
661
665
|
76. `mark_all_todos_done` - Mark all pending GitLab to-do items as done for the current user
|
|
662
666
|
77. `list_issue_links` - List all issue links for a specific issue
|
|
663
|
-
78. `list_issue_discussions` - List discussions for an issue
|
|
667
|
+
78. `list_issue_discussions` - List discussions for an issue
|
|
664
668
|
79. `get_issue_link` - Get a specific issue link
|
|
665
669
|
80. `create_issue_link` - Create an issue link between two issues
|
|
666
670
|
81. `delete_issue_link` - Delete an issue link
|
|
667
|
-
82. `list_namespaces` - List all namespaces available to the current user
|
|
668
|
-
83. `get_namespace` - Get details of a namespace by ID or path
|
|
669
|
-
84. `verify_namespace` - Verify if a namespace path exists
|
|
671
|
+
82. `list_namespaces` - List all namespaces (users and groups) available to the current user. Filter by kind='group' for groups only.
|
|
672
|
+
83. `get_namespace` - Get details of a namespace (user or group) by ID or path. Groups are namespaces with kind='group'.
|
|
673
|
+
84. `verify_namespace` - Verify if a namespace path exists. Use parent_id to scope the check to a specific parent namespace — required for nested namespaces where the same path may exist under different parents.
|
|
670
674
|
85. `get_project` - Get details of a specific project
|
|
671
675
|
86. `list_projects` - List projects accessible by the current user
|
|
672
676
|
87. `update_project` - Update project settings such as description, visibility, default branch, and feature access levels
|
|
@@ -677,39 +681,39 @@ Register the skill directory in your AI client to get optimal tool usage guidanc
|
|
|
677
681
|
92. `create_label` - Create a new label in a project
|
|
678
682
|
93. `update_label` - Update an existing label in a project
|
|
679
683
|
94. `delete_label` - Delete a label from a project
|
|
680
|
-
95. `list_group_projects` - List projects in a
|
|
681
|
-
96. `list_wiki_pages` - List wiki pages in a
|
|
684
|
+
95. `list_group_projects` - List projects in a group
|
|
685
|
+
96. `list_wiki_pages` - List wiki pages in a project
|
|
682
686
|
97. `get_wiki_page` - Get details of a specific wiki page
|
|
683
|
-
98. `create_wiki_page` - Create a
|
|
684
|
-
99. `update_wiki_page` - Update
|
|
685
|
-
100. `delete_wiki_page` - Delete a wiki page from a
|
|
686
|
-
101. `list_group_wiki_pages` - List wiki pages in a
|
|
687
|
+
98. `create_wiki_page` - Create a wiki page in a project
|
|
688
|
+
99. `update_wiki_page` - Update a wiki page in a project
|
|
689
|
+
100. `delete_wiki_page` - Delete a wiki page from a project
|
|
690
|
+
101. `list_group_wiki_pages` - List wiki pages in a group
|
|
687
691
|
102. `get_group_wiki_page` - Get details of a specific group wiki page
|
|
688
|
-
103. `create_group_wiki_page` - Create a
|
|
689
|
-
104. `update_group_wiki_page` - Update
|
|
690
|
-
105. `delete_group_wiki_page` - Delete a wiki page from a
|
|
691
|
-
106. `get_repository_tree` -
|
|
692
|
-
107. `list_pipelines` - List pipelines
|
|
693
|
-
108. `get_pipeline` - Get details of a specific pipeline
|
|
692
|
+
103. `create_group_wiki_page` - Create a wiki page in a group
|
|
693
|
+
104. `update_group_wiki_page` - Update a wiki page in a group
|
|
694
|
+
105. `delete_group_wiki_page` - Delete a wiki page from a group
|
|
695
|
+
106. `get_repository_tree` - List files and directories in a repository
|
|
696
|
+
107. `list_pipelines` - List pipelines with filtering options
|
|
697
|
+
108. `get_pipeline` - Get details of a specific pipeline
|
|
694
698
|
109. `get_pipeline_variables` - Get variables configured for a pipeline
|
|
695
699
|
110. `get_pipeline_test_report` - Get pipeline test report
|
|
696
700
|
111. `get_pipeline_test_report_summary` - Get pipeline test report summary
|
|
697
701
|
112. `delete_pipeline` - Delete a pipeline. Requires the project Owner role, cannot be undone, and does not automatically delete child pipelines.
|
|
698
702
|
113. `update_pipeline_metadata` - Update pipeline metadata
|
|
699
|
-
114. `list_deployments` - List deployments
|
|
700
|
-
115. `get_deployment` - Get details
|
|
703
|
+
114. `list_deployments` - List deployments with filtering options
|
|
704
|
+
115. `get_deployment` - Get deployment details, including approval_summary, approvals, and pending_approval_count when GitLab provides them
|
|
701
705
|
116. `create_deployment` - Create a deployment
|
|
702
706
|
117. `update_deployment` - Update a deployment status
|
|
703
707
|
118. `delete_deployment` - Delete a deployment
|
|
704
708
|
119. `list_deployment_merge_requests` - List merge requests shipped with a deployment
|
|
705
709
|
120. `approve_deployment` - Approve or reject a protected-environment deployment
|
|
706
|
-
121. `list_environments` - List environments in a
|
|
707
|
-
122. `get_environment` - Get details of a specific environment
|
|
710
|
+
121. `list_environments` - List environments in a project
|
|
711
|
+
122. `get_environment` - Get details of a specific environment
|
|
708
712
|
123. `update_environment` - Update an environment
|
|
709
713
|
124. `delete_environment` - Delete a stopped environment
|
|
710
714
|
125. `stop_environment` - Stop an environment
|
|
711
715
|
126. `stop_stale_environments` - Stop eligible stale environments; protected environments are excluded and environments are stopped, not deleted
|
|
712
|
-
127. `delete_review_app_environments` - Schedule deletion of stopped review-app environments one week later;
|
|
716
|
+
127. `delete_review_app_environments` - Schedule deletion of stopped review-app environments one week later; dry_run defaults to true and actual scheduling requires dry_run=false
|
|
713
717
|
128. `list_pipeline_triggers` - List project pipeline trigger tokens
|
|
714
718
|
129. `get_pipeline_trigger` - Get a project pipeline trigger
|
|
715
719
|
130. `create_pipeline_trigger` - Create a project pipeline trigger
|
|
@@ -717,11 +721,11 @@ Register the skill directory in your AI client to get optimal tool usage guidanc
|
|
|
717
721
|
132. `delete_pipeline_trigger` - Delete a project pipeline trigger
|
|
718
722
|
133. `trigger_pipeline` - Trigger a pipeline with a pipeline trigger token
|
|
719
723
|
134. `list_pipeline_jobs` - List all jobs in a specific pipeline
|
|
720
|
-
135. `list_pipeline_trigger_jobs` - List
|
|
724
|
+
135. `list_pipeline_trigger_jobs` - List trigger jobs (bridges) in a pipeline
|
|
721
725
|
136. `get_pipeline_job` - Get details of a GitLab pipeline job number
|
|
722
|
-
137. `get_pipeline_job_output` - Get the output/trace of a
|
|
726
|
+
137. `get_pipeline_job_output` - Get the output/trace of a pipeline job with optional pagination
|
|
723
727
|
138. `validate_ci_lint` - Validate provided GitLab CI/CD YAML content for a project
|
|
724
|
-
139. `validate_project_ci_lint` - Validate an existing
|
|
728
|
+
139. `validate_project_ci_lint` - Validate an existing .gitlab-ci.yml configuration for a project
|
|
725
729
|
140. `list_ci_catalog_resources` - List GitLab CI/CD Catalog resources/components visible to the user
|
|
726
730
|
141. `get_ci_catalog_resource` - Get details for a GitLab CI/CD Catalog resource, including versions and components
|
|
727
731
|
142. `create_pipeline` - Create a new pipeline for a branch or tag
|
|
@@ -733,7 +737,7 @@ Register the skill directory in your AI client to get optimal tool usage guidanc
|
|
|
733
737
|
148. `create_pipeline_schedule` - Create a new pipeline schedule for a branch or tag
|
|
734
738
|
149. `update_pipeline_schedule` - Update an existing pipeline schedule
|
|
735
739
|
150. `delete_pipeline_schedule` - Delete a pipeline schedule
|
|
736
|
-
151. `play_pipeline_schedule` - Run a pipeline schedule immediately
|
|
740
|
+
151. `play_pipeline_schedule` - Run a pipeline schedule immediately
|
|
737
741
|
152. `take_ownership_pipeline_schedule` - Take ownership of a pipeline schedule
|
|
738
742
|
153. `get_pipeline_schedule_variable` - Get a single variable of a pipeline schedule
|
|
739
743
|
154. `create_pipeline_schedule_variable` - Create a variable for a pipeline schedule
|
|
@@ -746,25 +750,25 @@ Register the skill directory in your AI client to get optimal tool usage guidanc
|
|
|
746
750
|
161. `erase_pipeline_job` - Erase a pipeline job log and artifacts
|
|
747
751
|
162. `wait_for_pipeline` - Wait for a pipeline to reach a terminal status
|
|
748
752
|
163. `wait_for_job` - Wait for a job to reach a terminal status
|
|
749
|
-
164. `list_job_artifacts` - List artifact files in a job's
|
|
750
|
-
165. `download_job_artifacts` - Download
|
|
751
|
-
166. `get_job_artifact_file` - Get
|
|
752
|
-
167. `list_merge_requests` - List merge requests
|
|
753
|
-
168. `list_group_merge_requests` - List merge requests across all projects of a group and its subgroups
|
|
754
|
-
169. `list_milestones` - List milestones
|
|
753
|
+
164. `list_job_artifacts` - List artifact files in a job's archive
|
|
754
|
+
165. `download_job_artifacts` - Download job artifact archive (zip) and save to a local path
|
|
755
|
+
166. `get_job_artifact_file` - Get content of a single file from a job's artifacts
|
|
756
|
+
167. `list_merge_requests` - List merge requests (without project_id: user's MRs; with project_id: project MRs)
|
|
757
|
+
168. `list_group_merge_requests` - List merge requests across all projects of a group and its subgroups
|
|
758
|
+
169. `list_milestones` - List milestones with filtering options
|
|
755
759
|
170. `get_milestone` - Get details of a specific milestone
|
|
756
|
-
171. `create_milestone` - Create a new milestone
|
|
757
|
-
172. `edit_milestone` - Edit an existing milestone
|
|
758
|
-
173. `delete_milestone` - Delete a milestone
|
|
760
|
+
171. `create_milestone` - Create a new milestone
|
|
761
|
+
172. `edit_milestone` - Edit an existing milestone
|
|
762
|
+
173. `delete_milestone` - Delete a milestone
|
|
759
763
|
174. `get_milestone_issue` - Get issues associated with a specific milestone
|
|
760
764
|
175. `get_milestone_merge_requests` - Get merge requests associated with a specific milestone
|
|
761
765
|
176. `promote_milestone` - Promote a milestone to the next stage
|
|
762
766
|
177. `get_milestone_burndown_events` - Get burndown events for a specific milestone
|
|
763
|
-
178. `list_group_milestones` - List milestones
|
|
767
|
+
178. `list_group_milestones` - List group milestones with filtering options
|
|
764
768
|
179. `get_group_milestone` - Get details of a specific group milestone
|
|
765
|
-
180. `create_group_milestone` - Create a new milestone
|
|
769
|
+
180. `create_group_milestone` - Create a new group milestone
|
|
766
770
|
181. `edit_group_milestone` - Edit an existing group milestone
|
|
767
|
-
182. `delete_group_milestone` - Delete a milestone
|
|
771
|
+
182. `delete_group_milestone` - Delete a group milestone
|
|
768
772
|
183. `get_group_milestone_issue` - Get issues associated with a specific group milestone
|
|
769
773
|
184. `get_group_milestone_merge_requests` - Get merge requests associated with a specific group milestone
|
|
770
774
|
185. `get_group_milestone_burndown_events` - Get burndown events for a specific group milestone
|
|
@@ -775,66 +779,66 @@ Register the skill directory in your AI client to get optimal tool usage guidanc
|
|
|
775
779
|
190. `get_commit` - Get details of a specific commit
|
|
776
780
|
191. `get_commit_diff` - Get changes/diffs of a specific commit
|
|
777
781
|
192. `get_file_blame` - Get git blame for a file at a given ref. Each entry maps a contiguous range of source lines to the commit that last changed them (id, author, authored_date, message). Use range_start/range_end to limit blame to specific lines.
|
|
778
|
-
193. `list_commit_statuses` - List statuses for a
|
|
779
|
-
194. `create_commit_status` - Create or update the status of a
|
|
782
|
+
193. `list_commit_statuses` - List statuses for a commit
|
|
783
|
+
194. `create_commit_status` - Create or update the status of a commit
|
|
780
784
|
195. `list_group_iterations` - List group iterations with filtering options
|
|
781
|
-
196. `upload_markdown` - Upload a file
|
|
782
|
-
197. `download_attachment` - Download an uploaded file from a
|
|
783
|
-
198. `health_check` - Verify server status and authentication
|
|
784
|
-
199. `list_events` - List
|
|
785
|
-
200. `get_project_events` - List
|
|
785
|
+
196. `upload_markdown` - Upload a file for use in markdown content
|
|
786
|
+
197. `download_attachment` - Download an uploaded file from a project (images returned as base64; use local_path to save to disk)
|
|
787
|
+
198. `health_check` - Verify server status and authentication. Always reports the MCP server version (mcp_server_version). When authenticated, also reports the GitLab instance version from GET /api/v4/version (version, revision, enterprise). Version lookup failures do not fail the health check — those fields are omitted.
|
|
788
|
+
199. `list_events` - List events for the authenticated user (before/after: YYYY-MM-DD)
|
|
789
|
+
200. `get_project_events` - List events for a project (before/after: YYYY-MM-DD)
|
|
786
790
|
201. `list_releases` - List all releases for a project
|
|
787
791
|
202. `get_release` - Get a release by tag name
|
|
788
|
-
203. `create_release` - Create a new release
|
|
789
|
-
204. `update_release` - Update an existing release
|
|
790
|
-
205. `delete_release` - Delete a release
|
|
791
|
-
206. `create_release_evidence` - Create release evidence
|
|
792
|
+
203. `create_release` - Create a new release
|
|
793
|
+
204. `update_release` - Update an existing release
|
|
794
|
+
205. `delete_release` - Delete a release (does not delete the tag)
|
|
795
|
+
206. `create_release_evidence` - Create release evidence (Premium/Ultimate)
|
|
792
796
|
207. `download_release_asset` - Download a release asset file by direct asset path
|
|
793
|
-
208. `list_tags` - List repository tags
|
|
794
|
-
209. `get_tag` - Get
|
|
795
|
-
210. `create_tag` - Create a new tag
|
|
796
|
-
211. `delete_tag` - Delete a tag
|
|
797
|
-
212. `get_tag_signature` - Get the signature of a signed tag
|
|
798
|
-
213. `get_work_item` - Get a
|
|
799
|
-
214. `list_work_items` - List work items
|
|
800
|
-
215. `create_work_item` - Create a
|
|
801
|
-
216. `update_work_item` - Update a work item
|
|
802
|
-
217. `convert_work_item_type` - Convert a work item to a different type
|
|
803
|
-
218. `list_work_item_statuses` - List available statuses for a work item type
|
|
804
|
-
219. `list_custom_field_definitions` - List
|
|
805
|
-
220. `move_work_item` - Move a work item
|
|
806
|
-
221. `list_work_item_notes` - List notes and discussions on a work item
|
|
807
|
-
222. `create_work_item_note` - Add a note
|
|
797
|
+
208. `list_tags` - List repository tags for a project
|
|
798
|
+
209. `get_tag` - Get a repository tag by name
|
|
799
|
+
210. `create_tag` - Create a new repository tag
|
|
800
|
+
211. `delete_tag` - Delete a repository tag
|
|
801
|
+
212. `get_tag_signature` - Get the X.509 signature of a signed tag (404 if unsigned)
|
|
802
|
+
213. `get_work_item` - Get a work item with full details including status, hierarchy, type, and widgets
|
|
803
|
+
214. `list_work_items` - List work items with filters (type, state, search, assignees, labels)
|
|
804
|
+
215. `create_work_item` - Create a work item (issue, task, incident, epic, etc.) with full field support
|
|
805
|
+
216. `update_work_item` - Update a work item (title, description, labels, assignees, state, parent, custom fields, etc.)
|
|
806
|
+
217. `convert_work_item_type` - Convert a work item to a different type
|
|
807
|
+
218. `list_work_item_statuses` - List available statuses for a work item type (Premium/Ultimate)
|
|
808
|
+
219. `list_custom_field_definitions` - List custom field definitions for a work item type
|
|
809
|
+
220. `move_work_item` - Move a work item to a different project
|
|
810
|
+
221. `list_work_item_notes` - List notes and discussions on a work item
|
|
811
|
+
222. `create_work_item_note` - Add a note to a work item (supports Markdown, internal notes, threads)
|
|
808
812
|
223. `list_work_item_emoji_reactions` - List all emoji reactions on a work item
|
|
809
813
|
224. `list_work_item_note_emoji_reactions` - List all emoji reactions on a work item note (comment, thread, or thread reply)
|
|
810
814
|
225. `create_work_item_emoji_reaction` - Add an emoji reaction to a work item (e.g. thumbsup, rocket, eyes)
|
|
811
815
|
226. `delete_work_item_emoji_reaction` - Remove an emoji reaction from a work item
|
|
812
816
|
227. `create_work_item_note_emoji_reaction` - Add an emoji reaction to a work item note (comment, thread, or thread reply)
|
|
813
817
|
228. `delete_work_item_note_emoji_reaction` - Remove an emoji reaction from a work item note (comment, thread, or thread reply)
|
|
814
|
-
229. `get_timeline_events` - List timeline events for an incident
|
|
815
|
-
230. `create_timeline_event` - Create a timeline event on an incident
|
|
816
|
-
231. `list_webhooks` - List
|
|
817
|
-
232. `create_webhook` - Create a webhook on a
|
|
818
|
+
229. `get_timeline_events` - List timeline events for an incident
|
|
819
|
+
230. `create_timeline_event` - Create a timeline event on an incident
|
|
820
|
+
231. `list_webhooks` - List webhooks for a project or group
|
|
821
|
+
232. `create_webhook` - Create a webhook on a project or group
|
|
818
822
|
233. `update_webhook` - Update an existing project or group webhook
|
|
819
823
|
234. `delete_webhook` - Delete a project or group webhook
|
|
820
|
-
235. `list_webhook_events` - List recent webhook events (past 7 days)
|
|
821
|
-
236. `get_webhook_event` - Get full details of a specific webhook event
|
|
822
|
-
237. `search_code` - Search for code across all projects
|
|
823
|
-
238. `search_project_code` - Search for code within a specific
|
|
824
|
-
239. `search_group_code` - Search for code within a specific
|
|
825
|
-
240. `list_project_variables` - List CI/CD variables for a project
|
|
826
|
-
241. `get_project_variable` - Get a single CI/CD variable from a project
|
|
827
|
-
242. `create_project_variable` - Create a
|
|
828
|
-
243. `update_project_variable` - Update an existing CI/CD variable in a project
|
|
829
|
-
244. `delete_project_variable` - Delete a CI/CD variable from a project
|
|
830
|
-
245. `list_group_variables` - List CI/CD variables for a group
|
|
831
|
-
246. `get_group_variable` - Get a single CI/CD variable from a group
|
|
832
|
-
247. `create_group_variable` - Create a
|
|
833
|
-
248. `update_group_variable` - Update an existing CI/CD variable in a group
|
|
834
|
-
249. `delete_group_variable` - Delete a CI/CD variable from a group
|
|
835
|
-
250. `get_dependency_proxy_settings` - Get dependency proxy settings for a group
|
|
824
|
+
235. `list_webhook_events` - List recent webhook events (past 7 days)
|
|
825
|
+
236. `get_webhook_event` - Get full details of a specific webhook event
|
|
826
|
+
237. `search_code` - Search for code across all projects (requires advanced search or Zoekt)
|
|
827
|
+
238. `search_project_code` - Search for code within a specific project (requires advanced search or Zoekt)
|
|
828
|
+
239. `search_group_code` - Search for code within a specific group (requires advanced search or Zoekt)
|
|
829
|
+
240. `list_project_variables` - List CI/CD variables for a project
|
|
830
|
+
241. `get_project_variable` - Get a single CI/CD variable from a project
|
|
831
|
+
242. `create_project_variable` - Create a CI/CD variable for a project
|
|
832
|
+
243. `update_project_variable` - Update an existing CI/CD variable in a project
|
|
833
|
+
244. `delete_project_variable` - Delete a CI/CD variable from a project
|
|
834
|
+
245. `list_group_variables` - List CI/CD variables for a group
|
|
835
|
+
246. `get_group_variable` - Get a single CI/CD variable from a group
|
|
836
|
+
247. `create_group_variable` - Create a CI/CD variable for a group
|
|
837
|
+
248. `update_group_variable` - Update an existing CI/CD variable in a group
|
|
838
|
+
249. `delete_group_variable` - Delete a CI/CD variable from a group
|
|
839
|
+
250. `get_dependency_proxy_settings` - Get dependency proxy settings for a group
|
|
836
840
|
251. `update_dependency_proxy_settings` - Update dependency proxy settings for a group (enable/disable, credentials for authenticated Docker Hub pulls)
|
|
837
|
-
252. `list_dependency_proxy_blobs` - List cached dependency proxy blobs for a group
|
|
841
|
+
252. `list_dependency_proxy_blobs` - List cached dependency proxy blobs for a group
|
|
838
842
|
253. `purge_dependency_proxy_cache` - Schedule purge of all cached dependency proxy blobs for a group
|
|
839
843
|
254. `list_project_vulnerabilities` - List vulnerabilities for a project with optional state, severity, and report type filters (GraphQL-backed, cursor pagination)
|
|
840
844
|
255. `get_vulnerability` - Get full details of a specific vulnerability
|
package/README.zh-CN.md
CHANGED
|
@@ -110,7 +110,7 @@ command = lib.getExe inputs.gitlab-mcp.packages.${system}.default;
|
|
|
110
110
|
|
|
111
111
|
示例使用 `zereight-mcp-gitlab`,这是比旧的 `mcp-gitlab` 更不容易冲突的别名。如果 MCP 客户端找不到它,请使用 `which zereight-mcp-gitlab` 输出的绝对路径。
|
|
112
112
|
|
|
113
|
-
如果不想全局安装,请将 `npx` 固定到上一个稳定版本(即文档推荐的版本),例如 `npx -y @zereight/mcp-gitlab@2.1.
|
|
113
|
+
如果不想全局安装,请将 `npx` 固定到上一个稳定版本(即文档推荐的版本),例如 `npx -y @zereight/mcp-gitlab@2.1.62`。如果始终想使用最新版本,请改用 `npx -y @zereight/mcp-gitlab@latest`。有新版本发布时,服务器会在启动时通过 stderr 提示(可用 `GITLAB_DISABLE_VERSION_CHECK=true` 关闭)。
|
|
114
114
|
|
|
115
115
|
#### 使用 CLI 参数(适用于环境变量有问题的客户端)
|
|
116
116
|
|
|
@@ -138,6 +138,10 @@ command = lib.getExe inputs.gitlab-mcp.packages.${system}.default;
|
|
|
138
138
|
- `--use-milestone=true` - 启用里程碑 API(替代 `USE_MILESTONE`,旧版 — 推荐 `GITLAB_TOOLSETS=milestones`)
|
|
139
139
|
- `--use-pipeline=true` - 启用流水线 API(替代 `USE_PIPELINE`,旧版 — 推荐 `GITLAB_TOOLSETS=pipelines`)
|
|
140
140
|
- `--disable-version-check=true` - 关闭启动时的新版本提示(替代 `GITLAB_DISABLE_VERSION_CHECK`)
|
|
141
|
+
- `--masking-enabled=true` - 启用文本响应掩码(替代 `GITLAB_MASKING_ENABLED`)
|
|
142
|
+
- `--masking-config` - 掩码配置文件路径(替代 `GITLAB_MASKING_CONFIG`)
|
|
143
|
+
- `--masking-policy-file` - 受保护的托管策略文件路径(替代 `GITLAB_MASKING_POLICY_FILE`)
|
|
144
|
+
- `--masking-workspace-dir` - 用于解析掩码文件的目录(替代 `GITLAB_MASKING_WORKSPACE_DIR`)
|
|
141
145
|
|
|
142
146
|
CLI 参数优先于环境变量。
|
|
143
147
|
|
package/build/config.js
CHANGED
|
@@ -28,6 +28,13 @@ export const IS_OLD = getConfig("is-old", "GITLAB_IS_OLD") === "true";
|
|
|
28
28
|
// Behavior flags
|
|
29
29
|
// ---------------------------------------------------------------------------
|
|
30
30
|
export const GITLAB_READ_ONLY_MODE = getConfig("read-only", "GITLAB_READ_ONLY_MODE") === "true";
|
|
31
|
+
// Optional response masking. Disabled by default so existing deployments keep
|
|
32
|
+
// the exact original response behavior unless explicitly opted in.
|
|
33
|
+
export const GITLAB_MASKING_ENABLED = getConfig("masking-enabled", "GITLAB_MASKING_ENABLED") === "true";
|
|
34
|
+
export const GITLAB_MASKING_CONFIG = getConfig("masking-config", "GITLAB_MASKING_CONFIG");
|
|
35
|
+
/** Server-owned policy groups and project bindings for managed response masking. */
|
|
36
|
+
export const GITLAB_MASKING_POLICY_FILE = getConfig("masking-policy-file", "GITLAB_MASKING_POLICY_FILE");
|
|
37
|
+
export const GITLAB_MASKING_WORKSPACE_DIR = getConfig("masking-workspace-dir", "GITLAB_MASKING_WORKSPACE_DIR");
|
|
31
38
|
const PERMISSION_MODES = ["readonly", "modify", "full"];
|
|
32
39
|
export const GITLAB_PERMISSION_MODE = (() => {
|
|
33
40
|
const raw = getConfig("permission-mode", "GITLAB_PERMISSION_MODE");
|