@structured-world/gitlab-mcp 5.7.0 → 5.8.0

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 (92) hide show
  1. package/README.md +236 -1
  2. package/dist/config.d.ts +5 -0
  3. package/dist/config.js +6 -1
  4. package/dist/config.js.map +1 -1
  5. package/dist/entities/core/registry.js +53 -20
  6. package/dist/entities/core/registry.js.map +1 -1
  7. package/dist/entities/core/schema-readonly.d.ts +172 -442
  8. package/dist/entities/core/schema.d.ts +65 -173
  9. package/dist/entities/files/registry.js +42 -19
  10. package/dist/entities/files/registry.js.map +1 -1
  11. package/dist/entities/files/schema-readonly.d.ts +24 -124
  12. package/dist/entities/files/schema.d.ts +17 -82
  13. package/dist/entities/labels/registry.js +39 -6
  14. package/dist/entities/labels/registry.js.map +1 -1
  15. package/dist/entities/labels/schema-readonly.d.ts +6 -24
  16. package/dist/entities/labels/schema.d.ts +5 -37
  17. package/dist/entities/milestones/registry.js +44 -11
  18. package/dist/entities/milestones/registry.js.map +1 -1
  19. package/dist/entities/milestones/schema-readonly.d.ts +20 -100
  20. package/dist/entities/milestones/schema.d.ts +11 -48
  21. package/dist/entities/mrs/registry.js +56 -23
  22. package/dist/entities/mrs/registry.js.map +1 -1
  23. package/dist/entities/mrs/schema-readonly.d.ts +68 -243
  24. package/dist/entities/mrs/schema.d.ts +142 -885
  25. package/dist/entities/pipelines/registry.js +46 -13
  26. package/dist/entities/pipelines/registry.js.map +1 -1
  27. package/dist/entities/pipelines/schema-readonly.d.ts +115 -525
  28. package/dist/entities/pipelines/schema.d.ts +30 -104
  29. package/dist/entities/shared.d.ts +110 -787
  30. package/dist/entities/utils.d.ts +2 -2
  31. package/dist/entities/variables/registry.js +40 -7
  32. package/dist/entities/variables/registry.js.map +1 -1
  33. package/dist/entities/variables/schema-readonly.d.ts +3 -28
  34. package/dist/entities/variables/schema.d.ts +20 -80
  35. package/dist/entities/wiki/registry.js +39 -6
  36. package/dist/entities/wiki/registry.js.map +1 -1
  37. package/dist/entities/wiki/schema-readonly.d.ts +4 -35
  38. package/dist/entities/wiki/schema.d.ts +3 -31
  39. package/dist/entities/workitems/registry.js +40 -7
  40. package/dist/entities/workitems/registry.js.map +1 -1
  41. package/dist/entities/workitems/schema-readonly.d.ts +35 -32
  42. package/dist/entities/workitems/schema-readonly.js +1 -1
  43. package/dist/entities/workitems/schema-readonly.js.map +1 -1
  44. package/dist/entities/workitems/schema.d.ts +21 -45
  45. package/dist/middleware/index.d.ts +1 -0
  46. package/dist/middleware/index.js +8 -0
  47. package/dist/middleware/index.js.map +1 -0
  48. package/dist/middleware/oauth-auth.d.ts +4 -0
  49. package/dist/middleware/oauth-auth.js +135 -0
  50. package/dist/middleware/oauth-auth.js.map +1 -0
  51. package/dist/oauth/config.d.ts +19 -0
  52. package/dist/oauth/config.js +70 -0
  53. package/dist/oauth/config.js.map +1 -0
  54. package/dist/oauth/endpoints/authorize.d.ts +3 -0
  55. package/dist/oauth/endpoints/authorize.js +414 -0
  56. package/dist/oauth/endpoints/authorize.js.map +1 -0
  57. package/dist/oauth/endpoints/index.d.ts +3 -0
  58. package/dist/oauth/endpoints/index.js +13 -0
  59. package/dist/oauth/endpoints/index.js.map +1 -0
  60. package/dist/oauth/endpoints/metadata.d.ts +4 -0
  61. package/dist/oauth/endpoints/metadata.js +36 -0
  62. package/dist/oauth/endpoints/metadata.js.map +1 -0
  63. package/dist/oauth/endpoints/token.d.ts +2 -0
  64. package/dist/oauth/endpoints/token.js +159 -0
  65. package/dist/oauth/endpoints/token.js.map +1 -0
  66. package/dist/oauth/gitlab-device-flow.d.ts +8 -0
  67. package/dist/oauth/gitlab-device-flow.js +172 -0
  68. package/dist/oauth/gitlab-device-flow.js.map +1 -0
  69. package/dist/oauth/index.d.ts +8 -0
  70. package/dist/oauth/index.js +48 -0
  71. package/dist/oauth/index.js.map +1 -0
  72. package/dist/oauth/session-store.d.ts +37 -0
  73. package/dist/oauth/session-store.js +182 -0
  74. package/dist/oauth/session-store.js.map +1 -0
  75. package/dist/oauth/token-context.d.ts +8 -0
  76. package/dist/oauth/token-context.js +40 -0
  77. package/dist/oauth/token-context.js.map +1 -0
  78. package/dist/oauth/token-utils.d.ts +14 -0
  79. package/dist/oauth/token-utils.js +148 -0
  80. package/dist/oauth/token-utils.js.map +1 -0
  81. package/dist/oauth/types.d.ts +94 -0
  82. package/dist/oauth/types.js +3 -0
  83. package/dist/oauth/types.js.map +1 -0
  84. package/dist/server.js +147 -9
  85. package/dist/server.js.map +1 -1
  86. package/dist/structured-world-gitlab-mcp-5.8.0.tgz +0 -0
  87. package/dist/tsconfig.build.tsbuildinfo +1 -1
  88. package/dist/utils/fetch.d.ts +3 -7
  89. package/dist/utils/fetch.js +82 -54
  90. package/dist/utils/fetch.js.map +1 -1
  91. package/package.json +23 -23
  92. package/dist/structured-world-gitlab-mcp-5.7.0.tgz +0 -0
@@ -1,159 +1,84 @@
1
1
  import { z } from "zod";
2
2
  export declare const GetBranchDiffsSchema: z.ZodObject<{
3
- project_id: z.ZodString;
4
- } & {
3
+ project_id: z.ZodCoercedString<unknown>;
5
4
  from: z.ZodString;
6
5
  to: z.ZodString;
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>;
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>>;
23
11
  branch_name: z.ZodOptional<z.ZodString>;
24
12
  include_diverged_commits_count: z.ZodOptional<z.ZodBoolean>;
25
13
  include_rebase_in_progress: z.ZodOptional<z.ZodBoolean>;
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
- }>;
14
+ }, z.core.$strip>;
51
15
  export declare const GetMergeRequestDiffsSchema: z.ZodObject<{
52
- project_id: z.ZodString;
53
- } & {
54
- merge_request_iid: z.ZodString;
16
+ project_id: z.ZodCoercedString<unknown>;
17
+ merge_request_iid: z.ZodCoercedString<unknown>;
55
18
  include_diverged_commits_count: z.ZodOptional<z.ZodBoolean>;
56
19
  include_rebase_in_progress: z.ZodOptional<z.ZodBoolean>;
57
- } & {
58
20
  page: z.ZodOptional<z.ZodNumber>;
59
21
  per_page: z.ZodOptional<z.ZodNumber>;
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
- }>;
22
+ }, z.core.$strip>;
75
23
  export declare const ListMergeRequestDiffsSchema: z.ZodObject<{
76
- project_id: z.ZodString;
77
- } & {
78
- merge_request_iid: z.ZodString;
24
+ project_id: z.ZodCoercedString<unknown>;
25
+ merge_request_iid: z.ZodCoercedString<unknown>;
79
26
  include_diverged_commits_count: z.ZodOptional<z.ZodBoolean>;
80
27
  include_rebase_in_progress: z.ZodOptional<z.ZodBoolean>;
81
- } & {
82
28
  page: z.ZodOptional<z.ZodNumber>;
83
29
  per_page: z.ZodOptional<z.ZodNumber>;
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
- }>;
30
+ }, z.core.$strip>;
99
31
  export declare const ListMergeRequestDiscussionsSchema: z.ZodObject<{
100
- project_id: z.ZodString;
101
- } & {
102
- merge_request_iid: z.ZodString;
103
- } & {
32
+ project_id: z.ZodCoercedString<unknown>;
33
+ merge_request_iid: z.ZodCoercedString<unknown>;
104
34
  page: z.ZodOptional<z.ZodNumber>;
105
35
  per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
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
- }>;
36
+ }, z.core.$strip>;
117
37
  export declare const GetDraftNoteSchema: z.ZodObject<{
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
- }>;
38
+ project_id: z.ZodCoercedString<unknown>;
39
+ merge_request_iid: z.ZodCoercedString<unknown>;
40
+ draft_note_id: z.ZodCoercedString<unknown>;
41
+ }, z.core.$strip>;
131
42
  export declare const ListDraftNotesSchema: z.ZodObject<{
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
- }>;
43
+ project_id: z.ZodCoercedString<unknown>;
44
+ merge_request_iid: z.ZodCoercedString<unknown>;
45
+ }, z.core.$strip>;
142
46
  export declare const ListMergeRequestsSchema: z.ZodObject<{
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"]>>;
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
+ }>>;
147
65
  milestone: z.ZodOptional<z.ZodString>;
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>>;
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>>;
152
73
  created_after: z.ZodOptional<z.ZodString>;
153
74
  created_before: z.ZodOptional<z.ZodString>;
154
75
  updated_after: z.ZodOptional<z.ZodString>;
155
76
  updated_before: z.ZodOptional<z.ZodString>;
156
- scope: z.ZodOptional<z.ZodEnum<["created_by_me", "assigned_to_me", "all"]>>;
77
+ scope: z.ZodOptional<z.ZodEnum<{
78
+ all: "all";
79
+ created_by_me: "created_by_me";
80
+ assigned_to_me: "assigned_to_me";
81
+ }>>;
157
82
  author_id: z.ZodOptional<z.ZodNumber>;
158
83
  author_username: z.ZodOptional<z.ZodString>;
159
84
  assignee_id: z.ZodOptional<z.ZodNumber>;
@@ -162,136 +87,36 @@ export declare const ListMergeRequestsSchema: z.ZodObject<{
162
87
  source_branch: z.ZodOptional<z.ZodString>;
163
88
  target_branch: z.ZodOptional<z.ZodString>;
164
89
  search: z.ZodOptional<z.ZodString>;
165
- in: z.ZodOptional<z.ZodEnum<["title", "description", "title,description"]>>;
166
- wip: z.ZodOptional<z.ZodEnum<["yes", "no"]>>;
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
+ }>>;
167
99
  not: z.ZodOptional<z.ZodObject<{
168
- labels: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
100
+ labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
169
101
  milestone: z.ZodOptional<z.ZodString>;
170
102
  author_id: z.ZodOptional<z.ZodNumber>;
171
103
  author_username: z.ZodOptional<z.ZodString>;
172
104
  assignee_id: z.ZodOptional<z.ZodNumber>;
173
105
  assignee_username: z.ZodOptional<z.ZodString>;
174
106
  my_reaction_emoji: z.ZodOptional<z.ZodString>;
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
- }>>;
107
+ }, z.core.$strip>>;
192
108
  environment: z.ZodOptional<z.ZodString>;
193
109
  deployed_before: z.ZodOptional<z.ZodString>;
194
110
  deployed_after: z.ZodOptional<z.ZodString>;
195
- approved_by_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
196
- approved_by_usernames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
111
+ approved_by_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
112
+ approved_by_usernames: z.ZodOptional<z.ZodArray<z.ZodString>>;
197
113
  reviewer_id: z.ZodOptional<z.ZodNumber>;
198
114
  reviewer_username: z.ZodOptional<z.ZodString>;
199
- with_api_entity_associations: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
115
+ with_api_entity_associations: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
200
116
  min_access_level: z.ZodOptional<z.ZodNumber>;
201
- } & {
202
117
  page: z.ZodOptional<z.ZodNumber>;
203
118
  per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
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
- order_by?: "priority" | "title" | "created_at" | "updated_at" | undefined;
216
- min_access_level?: number | 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?: string[] | 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
- order_by?: "priority" | "title" | "created_at" | "updated_at" | undefined;
261
- min_access_level?: number | 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?: string[] | undefined;
290
- approved_by_usernames?: string[] | undefined;
291
- reviewer_id?: number | undefined;
292
- reviewer_username?: string | undefined;
293
- with_api_entity_associations?: unknown;
294
- }>;
119
+ }, z.core.$strip>;
295
120
  export type GetBranchDiffsOptions = z.infer<typeof GetBranchDiffsSchema>;
296
121
  export type GetMergeRequestOptions = z.infer<typeof GetMergeRequestSchema>;
297
122
  export type GetMergeRequestDiffsOptions = z.infer<typeof GetMergeRequestDiffsSchema>;