@zereight/mcp-gitlab 2.1.11 → 2.1.13
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.md +152 -150
- package/build/index.js +205 -9
- package/build/schemas.js +124 -0
- package/build/test/test-get-file-blame.js +145 -0
- package/build/test/test-geteffectiveprojectid.js +230 -6
- package/build/test/test-issue-description-patch.js +256 -0
- package/build/test/test-token-optimizations.js +1 -1
- package/build/test/test-toolset-filtering.js +7 -3
- package/build/test/utils/mock-gitlab-server.js +46 -0
- package/build/tools/registry.js +52 -3
- package/build/utils/patch-helper.js +145 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -495,156 +495,158 @@ Register the skill directory in your AI client to get optimal tool usage guidanc
|
|
|
495
495
|
2. `create_or_update_file` - Create or update a single file in a GitLab project
|
|
496
496
|
3. `search_repositories` - Search for GitLab projects
|
|
497
497
|
4. `create_repository` - Create a new GitLab project
|
|
498
|
-
5. `
|
|
499
|
-
6. `
|
|
500
|
-
7. `
|
|
501
|
-
8. `
|
|
502
|
-
9. `
|
|
503
|
-
10. `
|
|
504
|
-
11. `
|
|
505
|
-
12. `
|
|
506
|
-
13. `
|
|
507
|
-
14. `
|
|
508
|
-
15. `
|
|
509
|
-
16. `
|
|
510
|
-
17. `
|
|
511
|
-
18. `
|
|
512
|
-
19. `
|
|
513
|
-
20. `
|
|
514
|
-
21. `
|
|
515
|
-
22. `
|
|
516
|
-
23. `
|
|
517
|
-
24. `
|
|
518
|
-
25. `
|
|
519
|
-
26. `
|
|
520
|
-
27. `
|
|
521
|
-
28. `
|
|
522
|
-
29. `
|
|
523
|
-
30. `
|
|
524
|
-
31. `
|
|
525
|
-
32. `
|
|
526
|
-
33. `
|
|
527
|
-
34. `
|
|
528
|
-
35. `
|
|
529
|
-
36. `
|
|
530
|
-
37. `
|
|
531
|
-
38. `
|
|
532
|
-
39. `
|
|
533
|
-
40. `
|
|
534
|
-
41. `
|
|
535
|
-
42. `
|
|
536
|
-
43. `
|
|
537
|
-
44. `
|
|
538
|
-
45. `
|
|
539
|
-
46. `
|
|
540
|
-
47. `
|
|
541
|
-
48. `
|
|
542
|
-
49. `
|
|
543
|
-
50. `
|
|
544
|
-
51. `
|
|
545
|
-
52. `
|
|
546
|
-
53. `
|
|
547
|
-
54. `
|
|
548
|
-
55. `
|
|
549
|
-
56. `
|
|
550
|
-
57. `
|
|
551
|
-
58. `
|
|
552
|
-
59. `
|
|
553
|
-
60. `
|
|
554
|
-
61. `
|
|
555
|
-
62. `
|
|
556
|
-
63. `
|
|
557
|
-
64. `
|
|
558
|
-
65. `
|
|
559
|
-
66. `
|
|
560
|
-
67. `
|
|
561
|
-
68. `
|
|
562
|
-
69. `
|
|
563
|
-
70. `
|
|
564
|
-
71. `
|
|
565
|
-
72. `
|
|
566
|
-
73. `
|
|
567
|
-
74. `
|
|
568
|
-
75. `
|
|
569
|
-
76. `
|
|
570
|
-
77. `
|
|
571
|
-
78. `
|
|
572
|
-
79. `
|
|
573
|
-
80. `
|
|
574
|
-
81. `
|
|
575
|
-
82. `
|
|
576
|
-
83. `
|
|
577
|
-
84. `
|
|
578
|
-
85. `
|
|
579
|
-
86. `
|
|
580
|
-
87. `
|
|
581
|
-
88. `
|
|
582
|
-
89. `
|
|
583
|
-
90. `
|
|
584
|
-
91. `
|
|
585
|
-
92. `
|
|
586
|
-
93. `
|
|
587
|
-
94. `
|
|
588
|
-
95. `
|
|
589
|
-
96. `
|
|
590
|
-
97. `
|
|
591
|
-
98. `
|
|
592
|
-
99. `
|
|
593
|
-
100. `
|
|
594
|
-
101. `
|
|
595
|
-
102. `
|
|
596
|
-
103. `
|
|
597
|
-
104. `
|
|
598
|
-
105. `
|
|
599
|
-
106. `
|
|
600
|
-
107. `
|
|
601
|
-
108. `
|
|
602
|
-
109. `
|
|
603
|
-
110. `
|
|
604
|
-
111. `
|
|
605
|
-
112. `
|
|
606
|
-
113. `
|
|
607
|
-
114. `
|
|
608
|
-
115. `
|
|
609
|
-
116. `
|
|
610
|
-
117. `
|
|
611
|
-
118. `
|
|
612
|
-
119. `
|
|
613
|
-
120. `
|
|
614
|
-
121. `
|
|
615
|
-
122. `
|
|
616
|
-
123. `
|
|
617
|
-
124. `
|
|
618
|
-
125. `
|
|
619
|
-
126. `
|
|
620
|
-
127. `
|
|
621
|
-
128. `
|
|
622
|
-
129. `
|
|
623
|
-
130. `
|
|
624
|
-
131. `
|
|
625
|
-
132. `
|
|
626
|
-
133. `
|
|
627
|
-
134. `
|
|
628
|
-
135. `
|
|
629
|
-
136. `
|
|
630
|
-
137. `
|
|
631
|
-
138. `
|
|
632
|
-
139. `
|
|
633
|
-
140. `
|
|
634
|
-
141. `
|
|
635
|
-
142. `
|
|
636
|
-
143. `
|
|
637
|
-
144. `
|
|
638
|
-
145. `
|
|
639
|
-
146. `
|
|
640
|
-
147. `
|
|
641
|
-
148. `
|
|
642
|
-
149. `
|
|
643
|
-
150. `
|
|
644
|
-
151. `
|
|
645
|
-
152. `
|
|
646
|
-
153. `
|
|
647
|
-
154. `
|
|
498
|
+
5. `create_group` - Create a new GitLab group or subgroup (name, path, description, visibility, and optional parent_id)
|
|
499
|
+
6. `get_file_contents` - Get the contents of a file or directory from a GitLab project
|
|
500
|
+
7. `push_files` - Push multiple files to a GitLab project in a single commit
|
|
501
|
+
8. `create_issue` - Create a new issue in a GitLab project
|
|
502
|
+
9. `create_merge_request` - Create a new merge request in a GitLab project
|
|
503
|
+
10. `fork_repository` - Fork a GitLab project to your account or specified namespace
|
|
504
|
+
11. `create_branch` - Create a new branch in a GitLab project
|
|
505
|
+
12. `get_merge_request` - Get details of a merge request with compact deployment summary, behind-count, commit addition summary, and approval summary (Either mergeRequestIid or branchName must be provided)
|
|
506
|
+
13. `get_merge_request_diffs` - Get the changes/diffs of a merge request (Either mergeRequestIid or branchName must be provided)
|
|
507
|
+
14. `list_merge_request_diffs` - List merge request diffs with pagination support (Either mergeRequestIid or branchName must be provided)
|
|
508
|
+
15. `get_merge_request_conflicts` - Get the conflicts of a merge request in a GitLab project
|
|
509
|
+
16. `list_merge_request_changed_files` - STEP 1 of code review workflow. Returns ONLY the list of changed file paths in a merge request — WITHOUT diff content. Call this first to get file paths, then call get_merge_request_file_diff with multiple files in a single batched call (recommended 3-5 files per call). Supports excluded_file_patterns filtering using regex. (Either mergeRequestIid or branchName must be provided)
|
|
510
|
+
17. `get_merge_request_file_diff` - STEP 2 of code review workflow. Get diffs for one or more files from a merge request. Call list_merge_request_changed_files first, then pass them as an array to fetch diffs efficiently. Batching multiple files (recommended 3-5) is supported. (Either mergeRequestIid or branchName must be provided)
|
|
511
|
+
18. `list_merge_request_versions` - List all versions of a merge request
|
|
512
|
+
19. `get_merge_request_version` - Get a specific version of a merge request
|
|
513
|
+
20. `get_branch_diffs` - Get the changes/diffs between two branches or commits in a GitLab project
|
|
514
|
+
21. `update_merge_request` - Update a merge request (Either mergeRequestIid or branchName must be provided)
|
|
515
|
+
22. `create_note` - Create a new note (comment) to an issue or merge request
|
|
516
|
+
23. `create_merge_request_thread` - Create a new thread on a merge request
|
|
517
|
+
24. `mr_discussions` - List discussion items for a merge request
|
|
518
|
+
25. `resolve_merge_request_thread` - Resolve a thread on a merge request
|
|
519
|
+
26. `update_merge_request_note` - Modify an existing merge request thread note
|
|
520
|
+
27. `create_merge_request_note` - Add a new note to an existing merge request thread
|
|
521
|
+
28. `delete_merge_request_discussion_note` - Delete a discussion note on a merge request
|
|
522
|
+
29. `update_merge_request_discussion_note` - Update a discussion note on a merge request
|
|
523
|
+
30. `create_merge_request_discussion_note` - Add a new discussion note to an existing merge request thread
|
|
524
|
+
31. `delete_merge_request_note` - Delete an existing merge request note
|
|
525
|
+
32. `get_merge_request_note` - Get a specific note for a merge request
|
|
526
|
+
33. `get_merge_request_notes` - List notes for a merge request
|
|
527
|
+
34. `get_draft_note` - Get a single draft note from a merge request
|
|
528
|
+
35. `list_draft_notes` - List draft notes for a merge request
|
|
529
|
+
36. `create_draft_note` - Create a draft note for a merge request
|
|
530
|
+
37. `update_draft_note` - Update an existing draft note
|
|
531
|
+
38. `delete_draft_note` - Delete a draft note
|
|
532
|
+
39. `publish_draft_note` - Publish a single draft note
|
|
533
|
+
40. `bulk_publish_draft_notes` - Publish all draft notes for a merge request
|
|
534
|
+
41. `list_merge_requests` - List merge requests globally or in a specific GitLab project with filtering options (project_id is now optional)
|
|
535
|
+
42. `approve_merge_request` - Approve a merge request (requires appropriate permissions)
|
|
536
|
+
43. `unapprove_merge_request` - Unapprove a previously approved merge request
|
|
537
|
+
44. `get_merge_request_approval_state` - Get merge request approval details including approvers (uses `approval_state` when available, otherwise falls back to `approvals`)
|
|
538
|
+
45. `update_issue_note` - Modify an existing issue thread note
|
|
539
|
+
46. `create_issue_note` - Add a new note to an existing issue thread
|
|
540
|
+
47. `list_issues` - List issues (default: created by current user only; use scope='all' for all accessible issues)
|
|
541
|
+
48. `my_issues` - List issues assigned to the authenticated user (defaults to open issues)
|
|
542
|
+
49. `get_issue` - Get details of a specific issue in a GitLab project
|
|
543
|
+
50. `update_issue` - Update an issue in a GitLab project
|
|
544
|
+
51. `update_issue_description_patch` - Apply a patch (search/replace or unified diff) to an issue description. Reduces token usage by sending only the change instead of the full description. Supports `dry_run` to preview and `create_note` to summarize.
|
|
545
|
+
52. `delete_issue` - Delete an issue from a GitLab project
|
|
546
|
+
53. `list_todos` - List GitLab to-do items for the current user
|
|
547
|
+
54. `mark_todo_done` - Mark a GitLab to-do item as done
|
|
548
|
+
55. `mark_all_todos_done` - Mark all pending GitLab to-do items as done for the current user
|
|
549
|
+
56. `list_issue_links` - List all issue links for a specific issue
|
|
550
|
+
57. `list_issue_discussions` - List discussions for an issue in a GitLab project
|
|
551
|
+
58. `get_issue_link` - Get a specific issue link
|
|
552
|
+
59. `create_issue_link` - Create an issue link between two issues
|
|
553
|
+
60. `delete_issue_link` - Delete an issue link
|
|
554
|
+
61. `list_namespaces` - List all namespaces available to the current user
|
|
555
|
+
62. `get_namespace` - Get details of a namespace by ID or path
|
|
556
|
+
63. `verify_namespace` - Verify if a namespace path exists
|
|
557
|
+
64. `get_project` - Get details of a specific project
|
|
558
|
+
65. `list_projects` - List projects accessible by the current user
|
|
559
|
+
66. `list_project_members` - List members of a GitLab project
|
|
560
|
+
67. `list_group_projects` - List projects in a GitLab group with filtering options
|
|
561
|
+
68. `list_group_iterations` - List group iterations with filtering options
|
|
562
|
+
69. `list_labels` - List labels for a project
|
|
563
|
+
70. `get_label` - Get a single label from a project
|
|
564
|
+
71. `create_label` - Create a new label in a project
|
|
565
|
+
72. `update_label` - Update an existing label in a project
|
|
566
|
+
73. `delete_label` - Delete a label from a project
|
|
567
|
+
74. `list_pipelines` - List pipelines in a GitLab project with filtering options
|
|
568
|
+
75. `get_pipeline` - Get details of a specific pipeline in a GitLab project
|
|
569
|
+
76. `list_pipeline_jobs` - List all jobs in a specific pipeline
|
|
570
|
+
77. `list_pipeline_trigger_jobs` - List all trigger jobs (bridges) in a specific pipeline that trigger downstream pipelines
|
|
571
|
+
78. `get_pipeline_job` - Get details of a GitLab pipeline job number
|
|
572
|
+
79. `get_pipeline_job_output` - Get the output/trace of a GitLab pipeline job with optional pagination to limit context window usage
|
|
573
|
+
80. `validate_ci_lint` - Validate provided GitLab CI/CD YAML content for a project
|
|
574
|
+
81. `validate_project_ci_lint` - Validate an existing `.gitlab-ci.yml` configuration for a project
|
|
575
|
+
82. `create_pipeline` - Create a new pipeline for a branch or tag
|
|
576
|
+
83. `retry_pipeline` - Retry a failed or canceled pipeline
|
|
577
|
+
84. `cancel_pipeline` - Cancel a running pipeline
|
|
578
|
+
85. `play_pipeline_job` - Run a manual pipeline job
|
|
579
|
+
86. `retry_pipeline_job` - Retry a failed or canceled pipeline job
|
|
580
|
+
87. `cancel_pipeline_job` - Cancel a running pipeline job
|
|
581
|
+
88. `list_deployments` - List deployments in a GitLab project with filtering options
|
|
582
|
+
89. `get_deployment` - Get details of a specific deployment in a GitLab project
|
|
583
|
+
90. `list_environments` - List environments in a GitLab project
|
|
584
|
+
91. `get_environment` - Get details of a specific environment in a GitLab project
|
|
585
|
+
92. `list_job_artifacts` - List artifact files in a job's artifacts archive. Returns file names, paths, types, and sizes
|
|
586
|
+
93. `download_job_artifacts` - Download the entire artifact archive (zip) for a job to a local path. Returns the saved file path
|
|
587
|
+
94. `get_job_artifact_file` - Get the content of a single file from a job's artifacts by its path within the archive
|
|
588
|
+
95. `list_milestones` - List milestones in a GitLab project with filtering options
|
|
589
|
+
96. `get_milestone` - Get details of a specific milestone
|
|
590
|
+
97. `create_milestone` - Create a new milestone in a GitLab project
|
|
591
|
+
98. `edit_milestone` - Edit an existing milestone in a GitLab project
|
|
592
|
+
99. `delete_milestone` - Delete a milestone from a GitLab project
|
|
593
|
+
100. `get_milestone_issue` - Get issues associated with a specific milestone
|
|
594
|
+
101. `get_milestone_merge_requests` - Get merge requests associated with a specific milestone
|
|
595
|
+
102. `promote_milestone` - Promote a milestone to the next stage
|
|
596
|
+
103. `get_milestone_burndown_events` - Get burndown events for a specific milestone
|
|
597
|
+
104. `list_wiki_pages` - List wiki pages in a GitLab project
|
|
598
|
+
105. `get_wiki_page` - Get details of a specific wiki page
|
|
599
|
+
106. `create_wiki_page` - Create a new wiki page in a GitLab project
|
|
600
|
+
107. `update_wiki_page` - Update an existing wiki page in a GitLab project
|
|
601
|
+
108. `delete_wiki_page` - Delete a wiki page from a GitLab project
|
|
602
|
+
109. `list_group_wiki_pages` - List wiki pages in a GitLab group
|
|
603
|
+
110. `get_group_wiki_page` - Get details of a specific group wiki page
|
|
604
|
+
111. `create_group_wiki_page` - Create a new wiki page in a GitLab group
|
|
605
|
+
112. `update_group_wiki_page` - Update an existing wiki page in a GitLab group
|
|
606
|
+
113. `delete_group_wiki_page` - Delete a wiki page from a GitLab group
|
|
607
|
+
114. `get_repository_tree` - Get the repository tree for a GitLab project (list files and directories)
|
|
608
|
+
115. `list_commits` - List repository commits with filtering options
|
|
609
|
+
116. `get_commit` - Get details of a specific commit
|
|
610
|
+
117. `get_commit_diff` - Get changes/diffs of a specific commit
|
|
611
|
+
118. `list_commit_statuses` - List statuses for a specific commit
|
|
612
|
+
119. `create_commit_status` - Create or update the status of a specific commit
|
|
613
|
+
120. `list_releases` - List all releases for a project
|
|
614
|
+
121. `get_release` - Get a release by tag name
|
|
615
|
+
122. `create_release` - Create a new release in a GitLab project
|
|
616
|
+
123. `update_release` - Update an existing release in a GitLab project
|
|
617
|
+
124. `delete_release` - Delete a release from a GitLab project (does not delete the associated tag)
|
|
618
|
+
125. `create_release_evidence` - Create release evidence for an existing release (GitLab Premium/Ultimate only)
|
|
619
|
+
126. `download_release_asset` - Download a release asset file by direct asset path
|
|
620
|
+
127. `list_tags` - List repository tags with filtering and pagination support
|
|
621
|
+
128. `get_tag` - Get details of a specific repository tag
|
|
622
|
+
129. `create_tag` - Create a new tag in the repository
|
|
623
|
+
130. `delete_tag` - Delete a tag from the repository
|
|
624
|
+
131. `get_tag_signature` - Get the signature of a signed tag
|
|
625
|
+
132. `get_users` - Get GitLab user details by usernames
|
|
626
|
+
133. `list_events` - List all events for the currently authenticated user
|
|
627
|
+
134. `get_project_events` - List all visible events for a specified project
|
|
628
|
+
135. `upload_markdown` - Upload a file to a GitLab project for use in markdown content
|
|
629
|
+
136. `download_attachment` - Download an uploaded file from a GitLab project by secret and filename
|
|
630
|
+
137. `get_work_item` - Get a single work item with full details including status, hierarchy (parent/children), type, labels, assignees, and all widgets
|
|
631
|
+
138. `list_work_items` - List work items in a project with filters (type, state, search, assignees, labels). Returns items with status and hierarchy info
|
|
632
|
+
139. `create_work_item` - Create a new work item (issue, task, incident, test_case, epic, key_result, objective, requirement, ticket). Supports setting title, description, labels, assignees, weight, parent, health status, start/due dates, milestone, and confidentiality
|
|
633
|
+
140. `update_work_item` - Update a work item. Can modify title, description, labels, assignees, weight, state, status, parent hierarchy, children, health status, start/due dates, milestone, confidentiality, linked items, and custom fields
|
|
634
|
+
141. `convert_work_item_type` - Convert a work item to a different type (e.g. issue to task, task to incident)
|
|
635
|
+
142. `list_work_item_statuses` - List available statuses for a work item type in a project. Requires GitLab Premium/Ultimate with configurable statuses
|
|
636
|
+
143. `list_custom_field_definitions` - List available custom field definitions for a work item type in a project. Returns field names, types, and IDs needed for setting custom fields via update_work_item
|
|
637
|
+
144. `move_work_item` - Move a work item (issue, task, etc.) to a different project. Uses GitLab GraphQL issueMove mutation
|
|
638
|
+
145. `list_work_item_notes` - List notes and discussions on a work item. Returns threaded discussions with author, body, timestamps, and system/internal flags
|
|
639
|
+
146. `create_work_item_note` - Add a note/comment to a work item. Supports Markdown, internal notes, and threaded replies
|
|
640
|
+
147. `get_timeline_events` - List timeline events for an incident. Returns chronological events with notes, timestamps, and tags
|
|
641
|
+
148. `create_timeline_event` - Create a timeline event on an incident. Supports tags: 'Start time', 'End time', 'Impact detected', 'Response initiated', 'Impact mitigated', 'Cause identified'
|
|
642
|
+
149. `list_webhooks` - List all configured webhooks for a GitLab project or group. Provide either project_id or group_id
|
|
643
|
+
150. `list_webhook_events` - List recent webhook events (past 7 days) for a project or group webhook. Use summary mode for overview, then get_webhook_event for full details
|
|
644
|
+
151. `get_webhook_event` - Get full details of a specific webhook event by ID, including request/response payloads
|
|
645
|
+
152. `search_code` - Search for code across all projects on the GitLab instance (requires advanced search or exact code search to be enabled)
|
|
646
|
+
153. `search_project_code` - Search for code within a specific GitLab project (requires advanced search or exact code search to be enabled)
|
|
647
|
+
154. `search_group_code` - Search for code within a specific GitLab group (requires advanced search or exact code search to be enabled)
|
|
648
|
+
155. `execute_graphql` - Execute a GitLab GraphQL query
|
|
649
|
+
156. `list_merge_request_pipelines` - List pipelines for a merge request with pagination support
|
|
648
650
|
|
|
649
651
|
<!-- TOOLS-END -->
|
|
650
652
|
|