@zereight/mcp-gitlab 1.0.34 → 1.0.35
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 +4 -3
- package/build/schemas.js +20 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,9 +51,9 @@ When using with the Claude App, you need to set up your API key and URLs directl
|
|
|
51
51
|
7. `create_merge_request` - Create a new merge request in a GitLab project
|
|
52
52
|
8. `fork_repository` - Fork a GitLab project to your account or specified namespace
|
|
53
53
|
9. `create_branch` - Create a new branch in a GitLab project
|
|
54
|
-
10. `get_merge_request` - Get details of a merge request
|
|
55
|
-
11. `get_merge_request_diffs` - Get the changes/diffs of a merge request
|
|
56
|
-
12. `update_merge_request` - Update a merge request
|
|
54
|
+
10. `get_merge_request` - Get details of a merge request (Either mergeRequestIid or branchName must be provided)
|
|
55
|
+
11. `get_merge_request_diffs` - Get the changes/diffs of a merge request (Either mergeRequestIid or branchName must be provided)
|
|
56
|
+
12. `update_merge_request` - Update a merge request (Either mergeRequestIid or branchName must be provided)
|
|
57
57
|
13. `create_note` - Create a new note (comment) to an issue or merge request
|
|
58
58
|
14. `mr_discussions` - List discussion items for a merge request
|
|
59
59
|
15. `update_merge_request_note` - Modify an existing merge request thread note
|
|
@@ -81,4 +81,5 @@ When using with the Claude App, you need to set up your API key and URLs directl
|
|
|
81
81
|
37. `create_wiki_page` - Create a new wiki page in a GitLab project
|
|
82
82
|
38. `update_wiki_page` - Update an existing wiki page in a GitLab project
|
|
83
83
|
39. `delete_wiki_page` - Delete a wiki page from a GitLab project
|
|
84
|
+
40. `get_repository_tree` - Get the repository tree for a GitLab project (list files and directories)
|
|
84
85
|
<!-- TOOLS-END -->
|
package/build/schemas.js
CHANGED
|
@@ -156,11 +156,23 @@ export const GitLabTreeItemSchema = z.object({
|
|
|
156
156
|
export const GetRepositoryTreeSchema = z.object({
|
|
157
157
|
project_id: z.string().describe("The ID or URL-encoded path of the project"),
|
|
158
158
|
path: z.string().optional().describe("The path inside the repository"),
|
|
159
|
-
ref: z
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
159
|
+
ref: z
|
|
160
|
+
.string()
|
|
161
|
+
.optional()
|
|
162
|
+
.describe("The name of a repository branch or tag. Defaults to the default branch."),
|
|
163
|
+
recursive: z
|
|
164
|
+
.boolean()
|
|
165
|
+
.optional()
|
|
166
|
+
.describe("Boolean value to get a recursive tree"),
|
|
167
|
+
per_page: z
|
|
168
|
+
.number()
|
|
169
|
+
.optional()
|
|
170
|
+
.describe("Number of results to show per page"),
|
|
171
|
+
page_token: z
|
|
172
|
+
.string()
|
|
173
|
+
.optional()
|
|
174
|
+
.describe("The tree record ID for pagination"),
|
|
175
|
+
pagination: z.string().optional().describe("Pagination method (keyset)"),
|
|
164
176
|
});
|
|
165
177
|
export const GitLabTreeSchema = z.object({
|
|
166
178
|
id: z.string(), // Changed from sha to match GitLab API
|
|
@@ -777,9 +789,7 @@ export const ListLabelsSchema = z.object({
|
|
|
777
789
|
});
|
|
778
790
|
export const GetLabelSchema = z.object({
|
|
779
791
|
project_id: z.string().describe("Project ID or URL-encoded path"),
|
|
780
|
-
label_id: z
|
|
781
|
-
.union([z.number(), z.string()])
|
|
782
|
-
.describe("The ID or title of a project's label"),
|
|
792
|
+
label_id: z.string().describe("The ID or title of a project's label"),
|
|
783
793
|
include_ancestor_groups: z
|
|
784
794
|
.boolean()
|
|
785
795
|
.optional()
|
|
@@ -800,9 +810,7 @@ export const CreateLabelSchema = z.object({
|
|
|
800
810
|
});
|
|
801
811
|
export const UpdateLabelSchema = z.object({
|
|
802
812
|
project_id: z.string().describe("Project ID or URL-encoded path"),
|
|
803
|
-
label_id: z
|
|
804
|
-
.union([z.number(), z.string()])
|
|
805
|
-
.describe("The ID or title of a project's label"),
|
|
813
|
+
label_id: z.string().describe("The ID or title of a project's label"),
|
|
806
814
|
new_name: z.string().optional().describe("The new name of the label"),
|
|
807
815
|
color: z
|
|
808
816
|
.string()
|
|
@@ -820,9 +828,7 @@ export const UpdateLabelSchema = z.object({
|
|
|
820
828
|
});
|
|
821
829
|
export const DeleteLabelSchema = z.object({
|
|
822
830
|
project_id: z.string().describe("Project ID or URL-encoded path"),
|
|
823
|
-
label_id: z
|
|
824
|
-
.union([z.number(), z.string()])
|
|
825
|
-
.describe("The ID or title of a project's label"),
|
|
831
|
+
label_id: z.string().describe("The ID or title of a project's label"),
|
|
826
832
|
});
|
|
827
833
|
// Group projects schema
|
|
828
834
|
export const ListGroupProjectsSchema = z.object({
|