@structured-world/gitlab-mcp 4.0.0 → 4.1.1

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.
Files changed (86) hide show
  1. package/README.md +90 -4
  2. package/dist/entities/core/registry.js +162 -70
  3. package/dist/entities/core/registry.js.map +1 -1
  4. package/dist/entities/core/schema-readonly.d.ts +421 -199
  5. package/dist/entities/core/schema-readonly.js +222 -131
  6. package/dist/entities/core/schema-readonly.js.map +1 -1
  7. package/dist/entities/core/schema.d.ts +152 -61
  8. package/dist/entities/core/schema.js +111 -55
  9. package/dist/entities/core/schema.js.map +1 -1
  10. package/dist/entities/files/registry.js +5 -5
  11. package/dist/entities/files/registry.js.map +1 -1
  12. package/dist/entities/files/schema-readonly.d.ts +124 -24
  13. package/dist/entities/files/schema.d.ts +82 -17
  14. package/dist/entities/labels/registry.js +23 -34
  15. package/dist/entities/labels/registry.js.map +1 -1
  16. package/dist/entities/labels/schema-readonly.d.ts +26 -10
  17. package/dist/entities/labels/schema-readonly.js +5 -15
  18. package/dist/entities/labels/schema-readonly.js.map +1 -1
  19. package/dist/entities/labels/schema.d.ts +40 -11
  20. package/dist/entities/labels/schema.js +8 -23
  21. package/dist/entities/labels/schema.js.map +1 -1
  22. package/dist/entities/milestones/registry.js +44 -61
  23. package/dist/entities/milestones/registry.js.map +1 -1
  24. package/dist/entities/milestones/schema-readonly.d.ts +105 -30
  25. package/dist/entities/milestones/schema-readonly.js +7 -15
  26. package/dist/entities/milestones/schema-readonly.js.map +1 -1
  27. package/dist/entities/milestones/schema.d.ts +52 -19
  28. package/dist/entities/milestones/schema.js +8 -28
  29. package/dist/entities/milestones/schema.js.map +1 -1
  30. package/dist/entities/mrs/registry.js +20 -20
  31. package/dist/entities/mrs/registry.js.map +1 -1
  32. package/dist/entities/mrs/schema-readonly.d.ts +243 -68
  33. package/dist/entities/mrs/schema-readonly.js +83 -54
  34. package/dist/entities/mrs/schema-readonly.js.map +1 -1
  35. package/dist/entities/mrs/schema.d.ts +885 -142
  36. package/dist/entities/mrs/schema.js +113 -37
  37. package/dist/entities/mrs/schema.js.map +1 -1
  38. package/dist/entities/pipelines/registry.js +12 -12
  39. package/dist/entities/pipelines/registry.js.map +1 -1
  40. package/dist/entities/pipelines/schema-readonly.d.ts +525 -115
  41. package/dist/entities/pipelines/schema.d.ts +104 -30
  42. package/dist/entities/shared.d.ts +787 -110
  43. package/dist/entities/utils.d.ts +2 -2
  44. package/dist/entities/variables/registry.js +23 -33
  45. package/dist/entities/variables/registry.js.map +1 -1
  46. package/dist/entities/variables/schema-readonly.d.ts +30 -7
  47. package/dist/entities/variables/schema-readonly.js +4 -13
  48. package/dist/entities/variables/schema-readonly.js.map +1 -1
  49. package/dist/entities/variables/schema.d.ts +83 -26
  50. package/dist/entities/variables/schema.js +6 -21
  51. package/dist/entities/variables/schema.js.map +1 -1
  52. package/dist/entities/wiki/registry.js +25 -42
  53. package/dist/entities/wiki/registry.js.map +1 -1
  54. package/dist/entities/wiki/schema-readonly.d.ts +37 -8
  55. package/dist/entities/wiki/schema-readonly.js +4 -13
  56. package/dist/entities/wiki/schema-readonly.js.map +1 -1
  57. package/dist/entities/wiki/schema.d.ts +34 -9
  58. package/dist/entities/wiki/schema.js +6 -21
  59. package/dist/entities/wiki/schema.js.map +1 -1
  60. package/dist/entities/workitems/registry.js +94 -13
  61. package/dist/entities/workitems/registry.js.map +1 -1
  62. package/dist/entities/workitems/schema-readonly.d.ts +29 -32
  63. package/dist/entities/workitems/schema-readonly.js +7 -2
  64. package/dist/entities/workitems/schema-readonly.js.map +1 -1
  65. package/dist/entities/workitems/schema.d.ts +45 -21
  66. package/dist/graphql/workItems.d.ts +34 -1
  67. package/dist/graphql/workItems.js +349 -2
  68. package/dist/graphql/workItems.js.map +1 -1
  69. package/dist/handlers.js +44 -0
  70. package/dist/handlers.js.map +1 -1
  71. package/dist/registry-manager.d.ts +1 -0
  72. package/dist/registry-manager.js +54 -0
  73. package/dist/registry-manager.js.map +1 -1
  74. package/dist/services/ConnectionManager.js +3 -3
  75. package/dist/services/ConnectionManager.js.map +1 -1
  76. package/dist/services/SchemaIntrospector.js +3 -3
  77. package/dist/services/SchemaIntrospector.js.map +1 -1
  78. package/dist/services/ToolAvailability.js +30 -1
  79. package/dist/services/ToolAvailability.js.map +1 -1
  80. package/dist/structured-world-gitlab-mcp-4.1.1.tgz +0 -0
  81. package/dist/tsconfig.build.tsbuildinfo +1 -1
  82. package/dist/utils/namespace.d.ts +6 -0
  83. package/dist/utils/namespace.js +52 -0
  84. package/dist/utils/namespace.js.map +1 -0
  85. package/package.json +5 -3
  86. package/dist/structured-world-gitlab-mcp-4.0.0.tgz +0 -0
@@ -1,84 +1,159 @@
1
1
  import { z } from 'zod';
2
2
  export declare const GetBranchDiffsSchema: z.ZodObject<{
3
- project_id: z.ZodCoercedString<unknown>;
3
+ project_id: z.ZodString;
4
+ } & {
4
5
  from: z.ZodString;
5
6
  to: z.ZodString;
6
- straight: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
7
- }, z.core.$strip>;
8
- export declare const GetMergeRequestSchema: z.ZodObject<{
9
- project_id: z.ZodCoercedString<unknown>;
10
- merge_request_iid: z.ZodOptional<z.ZodCoercedString<unknown>>;
7
+ straight: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ project_id: string;
10
+ from: string;
11
+ to: string;
12
+ straight?: boolean | undefined;
13
+ }, {
14
+ project_id: string;
15
+ from: string;
16
+ to: string;
17
+ straight?: unknown;
18
+ }>;
19
+ export declare const GetMergeRequestSchema: z.ZodEffects<z.ZodObject<{
20
+ project_id: z.ZodString;
21
+ } & {
22
+ merge_request_iid: z.ZodOptional<z.ZodString>;
11
23
  branch_name: z.ZodOptional<z.ZodString>;
12
24
  include_diverged_commits_count: z.ZodOptional<z.ZodBoolean>;
13
25
  include_rebase_in_progress: z.ZodOptional<z.ZodBoolean>;
14
- }, z.core.$strip>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ project_id: string;
28
+ merge_request_iid?: string | undefined;
29
+ branch_name?: string | undefined;
30
+ include_diverged_commits_count?: boolean | undefined;
31
+ include_rebase_in_progress?: boolean | undefined;
32
+ }, {
33
+ project_id: string;
34
+ merge_request_iid?: string | undefined;
35
+ branch_name?: string | undefined;
36
+ include_diverged_commits_count?: boolean | undefined;
37
+ include_rebase_in_progress?: boolean | undefined;
38
+ }>, {
39
+ project_id: string;
40
+ merge_request_iid?: string | undefined;
41
+ branch_name?: string | undefined;
42
+ include_diverged_commits_count?: boolean | undefined;
43
+ include_rebase_in_progress?: boolean | undefined;
44
+ }, {
45
+ project_id: string;
46
+ merge_request_iid?: string | undefined;
47
+ branch_name?: string | undefined;
48
+ include_diverged_commits_count?: boolean | undefined;
49
+ include_rebase_in_progress?: boolean | undefined;
50
+ }>;
15
51
  export declare const GetMergeRequestDiffsSchema: z.ZodObject<{
16
- project_id: z.ZodCoercedString<unknown>;
17
- merge_request_iid: z.ZodCoercedString<unknown>;
52
+ project_id: z.ZodString;
53
+ } & {
54
+ merge_request_iid: z.ZodString;
18
55
  include_diverged_commits_count: z.ZodOptional<z.ZodBoolean>;
19
56
  include_rebase_in_progress: z.ZodOptional<z.ZodBoolean>;
57
+ } & {
20
58
  page: z.ZodOptional<z.ZodNumber>;
21
59
  per_page: z.ZodOptional<z.ZodNumber>;
22
- }, z.core.$strip>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ project_id: string;
62
+ merge_request_iid: string;
63
+ page?: number | undefined;
64
+ per_page?: number | undefined;
65
+ include_diverged_commits_count?: boolean | undefined;
66
+ include_rebase_in_progress?: boolean | undefined;
67
+ }, {
68
+ project_id: string;
69
+ merge_request_iid: string;
70
+ page?: number | undefined;
71
+ per_page?: number | undefined;
72
+ include_diverged_commits_count?: boolean | undefined;
73
+ include_rebase_in_progress?: boolean | undefined;
74
+ }>;
23
75
  export declare const ListMergeRequestDiffsSchema: z.ZodObject<{
24
- project_id: z.ZodCoercedString<unknown>;
25
- merge_request_iid: z.ZodCoercedString<unknown>;
76
+ project_id: z.ZodString;
77
+ } & {
78
+ merge_request_iid: z.ZodString;
26
79
  include_diverged_commits_count: z.ZodOptional<z.ZodBoolean>;
27
80
  include_rebase_in_progress: z.ZodOptional<z.ZodBoolean>;
81
+ } & {
28
82
  page: z.ZodOptional<z.ZodNumber>;
29
83
  per_page: z.ZodOptional<z.ZodNumber>;
30
- }, z.core.$strip>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ project_id: string;
86
+ merge_request_iid: string;
87
+ page?: number | undefined;
88
+ per_page?: number | undefined;
89
+ include_diverged_commits_count?: boolean | undefined;
90
+ include_rebase_in_progress?: boolean | undefined;
91
+ }, {
92
+ project_id: string;
93
+ merge_request_iid: string;
94
+ page?: number | undefined;
95
+ per_page?: number | undefined;
96
+ include_diverged_commits_count?: boolean | undefined;
97
+ include_rebase_in_progress?: boolean | undefined;
98
+ }>;
31
99
  export declare const ListMergeRequestDiscussionsSchema: z.ZodObject<{
32
- project_id: z.ZodCoercedString<unknown>;
33
- merge_request_iid: z.ZodCoercedString<unknown>;
100
+ project_id: z.ZodString;
101
+ } & {
102
+ merge_request_iid: z.ZodString;
103
+ } & {
34
104
  page: z.ZodOptional<z.ZodNumber>;
35
105
  per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
36
- }, z.core.$strip>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ per_page: number;
108
+ project_id: string;
109
+ merge_request_iid: string;
110
+ page?: number | undefined;
111
+ }, {
112
+ project_id: string;
113
+ merge_request_iid: string;
114
+ page?: number | undefined;
115
+ per_page?: number | undefined;
116
+ }>;
37
117
  export declare const GetDraftNoteSchema: z.ZodObject<{
38
- project_id: z.ZodCoercedString<unknown>;
39
- merge_request_iid: z.ZodCoercedString<unknown>;
40
- draft_note_id: z.ZodCoercedString<unknown>;
41
- }, z.core.$strip>;
118
+ project_id: z.ZodString;
119
+ } & {
120
+ merge_request_iid: z.ZodString;
121
+ draft_note_id: z.ZodString;
122
+ }, "strip", z.ZodTypeAny, {
123
+ project_id: string;
124
+ merge_request_iid: string;
125
+ draft_note_id: string;
126
+ }, {
127
+ project_id: string;
128
+ merge_request_iid: string;
129
+ draft_note_id: string;
130
+ }>;
42
131
  export declare const ListDraftNotesSchema: z.ZodObject<{
43
- project_id: z.ZodCoercedString<unknown>;
44
- merge_request_iid: z.ZodCoercedString<unknown>;
45
- }, z.core.$strip>;
132
+ project_id: z.ZodString;
133
+ } & {
134
+ merge_request_iid: z.ZodString;
135
+ }, "strip", z.ZodTypeAny, {
136
+ project_id: string;
137
+ merge_request_iid: string;
138
+ }, {
139
+ project_id: string;
140
+ merge_request_iid: string;
141
+ }>;
46
142
  export declare const ListMergeRequestsSchema: z.ZodObject<{
47
- project_id: z.ZodOptional<z.ZodCoercedString<unknown>>;
48
- state: z.ZodOptional<z.ZodEnum<{
49
- all: "all";
50
- opened: "opened";
51
- closed: "closed";
52
- merged: "merged";
53
- locked: "locked";
54
- }>>;
55
- order_by: z.ZodOptional<z.ZodEnum<{
56
- priority: "priority";
57
- title: "title";
58
- created_at: "created_at";
59
- updated_at: "updated_at";
60
- }>>;
61
- sort: z.ZodOptional<z.ZodEnum<{
62
- asc: "asc";
63
- desc: "desc";
64
- }>>;
143
+ project_id: z.ZodOptional<z.ZodString>;
144
+ state: z.ZodOptional<z.ZodEnum<["opened", "closed", "locked", "merged", "all"]>>;
145
+ order_by: z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "title", "priority"]>>;
146
+ sort: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
65
147
  milestone: z.ZodOptional<z.ZodString>;
66
- view: z.ZodOptional<z.ZodEnum<{
67
- simple: "simple";
68
- full: "full";
69
- }>>;
70
- labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
71
- with_labels_details: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
72
- with_merge_status_recheck: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
148
+ view: z.ZodOptional<z.ZodEnum<["simple", "full"]>>;
149
+ labels: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
150
+ with_labels_details: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
151
+ with_merge_status_recheck: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
73
152
  created_after: z.ZodOptional<z.ZodString>;
74
153
  created_before: z.ZodOptional<z.ZodString>;
75
154
  updated_after: z.ZodOptional<z.ZodString>;
76
155
  updated_before: z.ZodOptional<z.ZodString>;
77
- scope: z.ZodOptional<z.ZodEnum<{
78
- all: "all";
79
- created_by_me: "created_by_me";
80
- assigned_to_me: "assigned_to_me";
81
- }>>;
156
+ scope: z.ZodOptional<z.ZodEnum<["created_by_me", "assigned_to_me", "all"]>>;
82
157
  author_id: z.ZodOptional<z.ZodNumber>;
83
158
  author_username: z.ZodOptional<z.ZodString>;
84
159
  assignee_id: z.ZodOptional<z.ZodNumber>;
@@ -87,36 +162,136 @@ export declare const ListMergeRequestsSchema: z.ZodObject<{
87
162
  source_branch: z.ZodOptional<z.ZodString>;
88
163
  target_branch: z.ZodOptional<z.ZodString>;
89
164
  search: z.ZodOptional<z.ZodString>;
90
- in: z.ZodOptional<z.ZodEnum<{
91
- title: "title";
92
- description: "description";
93
- "title,description": "title,description";
94
- }>>;
95
- wip: z.ZodOptional<z.ZodEnum<{
96
- yes: "yes";
97
- no: "no";
98
- }>>;
165
+ in: z.ZodOptional<z.ZodEnum<["title", "description", "title,description"]>>;
166
+ wip: z.ZodOptional<z.ZodEnum<["yes", "no"]>>;
99
167
  not: z.ZodOptional<z.ZodObject<{
100
- labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
168
+ labels: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
101
169
  milestone: z.ZodOptional<z.ZodString>;
102
170
  author_id: z.ZodOptional<z.ZodNumber>;
103
171
  author_username: z.ZodOptional<z.ZodString>;
104
172
  assignee_id: z.ZodOptional<z.ZodNumber>;
105
173
  assignee_username: z.ZodOptional<z.ZodString>;
106
174
  my_reaction_emoji: z.ZodOptional<z.ZodString>;
107
- }, z.core.$strip>>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ labels?: string | string[] | undefined;
177
+ milestone?: string | undefined;
178
+ author_id?: number | undefined;
179
+ author_username?: string | undefined;
180
+ assignee_id?: number | undefined;
181
+ assignee_username?: string | undefined;
182
+ my_reaction_emoji?: string | undefined;
183
+ }, {
184
+ labels?: string | string[] | undefined;
185
+ milestone?: string | undefined;
186
+ author_id?: number | undefined;
187
+ author_username?: string | undefined;
188
+ assignee_id?: number | undefined;
189
+ assignee_username?: string | undefined;
190
+ my_reaction_emoji?: string | undefined;
191
+ }>>;
108
192
  environment: z.ZodOptional<z.ZodString>;
109
193
  deployed_before: z.ZodOptional<z.ZodString>;
110
194
  deployed_after: z.ZodOptional<z.ZodString>;
111
- approved_by_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
112
- approved_by_usernames: z.ZodOptional<z.ZodArray<z.ZodString>>;
195
+ approved_by_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
196
+ approved_by_usernames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
113
197
  reviewer_id: z.ZodOptional<z.ZodNumber>;
114
198
  reviewer_username: z.ZodOptional<z.ZodString>;
115
- with_api_entity_associations: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
199
+ with_api_entity_associations: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
116
200
  min_access_level: z.ZodOptional<z.ZodNumber>;
201
+ } & {
117
202
  page: z.ZodOptional<z.ZodNumber>;
118
203
  per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
119
- }, z.core.$strip>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ per_page: number;
206
+ sort?: "asc" | "desc" | undefined;
207
+ search?: string | undefined;
208
+ labels?: string | string[] | undefined;
209
+ milestone?: string | undefined;
210
+ page?: number | undefined;
211
+ state?: "all" | "opened" | "closed" | "merged" | "locked" | undefined;
212
+ project_id?: string | undefined;
213
+ created_after?: string | undefined;
214
+ created_before?: string | undefined;
215
+ min_access_level?: number | undefined;
216
+ order_by?: "priority" | "title" | "created_at" | "updated_at" | undefined;
217
+ not?: {
218
+ labels?: string | string[] | undefined;
219
+ milestone?: string | undefined;
220
+ author_id?: number | undefined;
221
+ author_username?: string | undefined;
222
+ assignee_id?: number | undefined;
223
+ assignee_username?: string | undefined;
224
+ my_reaction_emoji?: string | undefined;
225
+ } | undefined;
226
+ view?: "simple" | "full" | undefined;
227
+ with_labels_details?: boolean | undefined;
228
+ with_merge_status_recheck?: boolean | undefined;
229
+ updated_after?: string | undefined;
230
+ updated_before?: string | undefined;
231
+ scope?: "all" | "created_by_me" | "assigned_to_me" | undefined;
232
+ author_id?: number | undefined;
233
+ author_username?: string | undefined;
234
+ assignee_id?: number | undefined;
235
+ assignee_username?: string | undefined;
236
+ my_reaction_emoji?: string | undefined;
237
+ source_branch?: string | undefined;
238
+ target_branch?: string | undefined;
239
+ in?: "title" | "description" | "title,description" | undefined;
240
+ wip?: "yes" | "no" | undefined;
241
+ environment?: string | undefined;
242
+ deployed_before?: string | undefined;
243
+ deployed_after?: string | undefined;
244
+ approved_by_ids?: number[] | undefined;
245
+ approved_by_usernames?: string[] | undefined;
246
+ reviewer_id?: number | undefined;
247
+ reviewer_username?: string | undefined;
248
+ with_api_entity_associations?: boolean | undefined;
249
+ }, {
250
+ sort?: "asc" | "desc" | undefined;
251
+ search?: string | undefined;
252
+ labels?: string | string[] | undefined;
253
+ milestone?: string | undefined;
254
+ page?: number | undefined;
255
+ per_page?: number | undefined;
256
+ state?: "all" | "opened" | "closed" | "merged" | "locked" | undefined;
257
+ project_id?: string | undefined;
258
+ created_after?: string | undefined;
259
+ created_before?: string | undefined;
260
+ min_access_level?: number | undefined;
261
+ order_by?: "priority" | "title" | "created_at" | "updated_at" | undefined;
262
+ not?: {
263
+ labels?: string | string[] | undefined;
264
+ milestone?: string | undefined;
265
+ author_id?: number | undefined;
266
+ author_username?: string | undefined;
267
+ assignee_id?: number | undefined;
268
+ assignee_username?: string | undefined;
269
+ my_reaction_emoji?: string | undefined;
270
+ } | undefined;
271
+ view?: "simple" | "full" | undefined;
272
+ with_labels_details?: unknown;
273
+ with_merge_status_recheck?: unknown;
274
+ updated_after?: string | undefined;
275
+ updated_before?: string | undefined;
276
+ scope?: "all" | "created_by_me" | "assigned_to_me" | undefined;
277
+ author_id?: number | undefined;
278
+ author_username?: string | undefined;
279
+ assignee_id?: number | undefined;
280
+ assignee_username?: string | undefined;
281
+ my_reaction_emoji?: string | undefined;
282
+ source_branch?: string | undefined;
283
+ target_branch?: string | undefined;
284
+ in?: "title" | "description" | "title,description" | undefined;
285
+ wip?: "yes" | "no" | undefined;
286
+ environment?: string | undefined;
287
+ deployed_before?: string | undefined;
288
+ deployed_after?: string | undefined;
289
+ approved_by_ids?: number[] | undefined;
290
+ approved_by_usernames?: string[] | undefined;
291
+ reviewer_id?: number | undefined;
292
+ reviewer_username?: string | undefined;
293
+ with_api_entity_associations?: unknown;
294
+ }>;
120
295
  export type GetBranchDiffsOptions = z.infer<typeof GetBranchDiffsSchema>;
121
296
  export type GetMergeRequestOptions = z.infer<typeof GetMergeRequestSchema>;
122
297
  export type GetMergeRequestDiffsOptions = z.infer<typeof GetMergeRequestDiffsSchema>;