mcp4openapi 0.3.0 → 0.3.3
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 +7 -0
- package/dist/src/auth/oauth-provider.d.ts.map +1 -1
- package/dist/src/auth/oauth-provider.js +5 -2
- package/dist/src/auth/oauth-provider.js.map +1 -1
- package/dist/src/core/cli-config.d.ts.map +1 -1
- package/dist/src/core/cli-config.js +3 -0
- package/dist/src/core/cli-config.js.map +1 -1
- package/dist/src/core/index.d.ts.map +1 -1
- package/dist/src/core/index.js +19 -3
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/generated-schemas.d.ts +45 -0
- package/dist/src/generated-schemas.d.ts.map +1 -1
- package/dist/src/generated-schemas.js +3 -0
- package/dist/src/generated-schemas.js.map +1 -1
- package/dist/src/openapi/openapi-parser.d.ts.map +1 -1
- package/dist/src/openapi/openapi-parser.js +22 -0
- package/dist/src/openapi/openapi-parser.js.map +1 -1
- package/dist/src/profile/profile-allowlist.d.ts +18 -0
- package/dist/src/profile/profile-allowlist.d.ts.map +1 -0
- package/dist/src/profile/profile-allowlist.js +68 -0
- package/dist/src/profile/profile-allowlist.js.map +1 -0
- package/dist/src/profile/profile-loader.d.ts.map +1 -1
- package/dist/src/profile/profile-loader.js +8 -1
- package/dist/src/profile/profile-loader.js.map +1 -1
- package/dist/src/profile/profile-registry.d.ts +7 -1
- package/dist/src/profile/profile-registry.d.ts.map +1 -1
- package/dist/src/profile/profile-registry.js +49 -8
- package/dist/src/profile/profile-registry.js.map +1 -1
- package/dist/src/profile/profile-resolver.d.ts +16 -0
- package/dist/src/profile/profile-resolver.d.ts.map +1 -1
- package/dist/src/profile/profile-resolver.js +120 -0
- package/dist/src/profile/profile-resolver.js.map +1 -1
- package/dist/src/tooling/composite-executor.d.ts.map +1 -1
- package/dist/src/tooling/composite-executor.js +7 -2
- package/dist/src/tooling/composite-executor.js.map +1 -1
- package/dist/src/tooling/proxy-executor.d.ts.map +1 -1
- package/dist/src/tooling/proxy-executor.js +4 -0
- package/dist/src/tooling/proxy-executor.js.map +1 -1
- package/dist/src/tooling/tool-generator.d.ts.map +1 -1
- package/dist/src/tooling/tool-generator.js +36 -3
- package/dist/src/tooling/tool-generator.js.map +1 -1
- package/dist/src/transport/http-transport-config.d.ts.map +1 -1
- package/dist/src/transport/http-transport-config.js +1 -0
- package/dist/src/transport/http-transport-config.js.map +1 -1
- package/dist/src/transport/http-transport.d.ts +5 -0
- package/dist/src/transport/http-transport.d.ts.map +1 -1
- package/dist/src/transport/http-transport.js +63 -1
- package/dist/src/transport/http-transport.js.map +1 -1
- package/dist/src/transport/profile-index.d.ts +84 -0
- package/dist/src/transport/profile-index.d.ts.map +1 -0
- package/dist/src/transport/profile-index.js +405 -0
- package/dist/src/transport/profile-index.js.map +1 -0
- package/dist/src/types/http-transport.d.ts +1 -0
- package/dist/src/types/http-transport.d.ts.map +1 -1
- package/dist/src/types/openapi.d.ts +3 -0
- package/dist/src/types/openapi.d.ts.map +1 -1
- package/dist/src/types/profile.d.ts +3 -0
- package/dist/src/types/profile.d.ts.map +1 -1
- package/dist/src/validation/validation-utils.d.ts.map +1 -1
- package/dist/src/validation/validation-utils.js +1 -0
- package/dist/src/validation/validation-utils.js.map +1 -1
- package/html/profile-index.html +386 -0
- package/package.json +3 -2
- package/profile-schema.json +14 -0
- package/profiles/gitlab/developer-profile-oauth.json +244 -42
- package/profiles/gitlab/developer-profile-oauth.test.json +1009 -5
- package/profiles/gitlab/openapi.yaml +1419 -164
- package/profiles/gitlab/profile-optimized-oauth.json +785 -0
- package/profiles/gitlab/profile-optimized-oauth.test.json +1566 -0
- package/profiles/grafana/openapi.json +28078 -0
- package/profiles/grafana/profile.json +1083 -0
- package/profiles/grafana/profile.test.json +235 -0
- package/profiles/mattermost/openapi.yaml +27434 -0
- package/profiles/mattermost/profile.json +463 -0
- package/profiles/mattermost/profile.test.json +607 -0
- package/profiles/n8n/profile-optimized.json +1002 -364
- package/profiles/n8n/profile-optimized.test.json +43 -43
- package/profiles/n8n/profile.json +1 -1
- package/profiles/n8n-nodes/profile-nodes.json +1 -1
- package/profiles/semgrep/profile.json +1 -1
- package/profiles/youtrack/profile.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"profile_id": "gitlab",
|
|
5
5
|
"profile_aliases": ["gitlab-default", "gitlab-developer"],
|
|
6
6
|
"openapi_spec_path": "./openapi.yaml",
|
|
7
|
-
"description": "
|
|
7
|
+
"description": "Comprehensive operation-style tool set (manage_merge_requests, manage_issues, manage_projects, ...).",
|
|
8
8
|
|
|
9
9
|
"parameter_aliases": {
|
|
10
10
|
"id": ["project_id", "group_id", "resource_id"],
|
|
@@ -80,11 +80,13 @@
|
|
|
80
80
|
|
|
81
81
|
{
|
|
82
82
|
"name": "manage_pipelines_jobs",
|
|
83
|
-
"description": "Run and inspect pipelines/jobs. Actions: 'run_pipeline', 'get_pipeline', 'get_job', 'retry_job', 'cancel_job', 'play_job', 'download_job_artifacts' (proxy download). For 'run_pipeline', pass 'ref'. For 'get_pipeline', pass 'pipeline_id'. For job actions, pass 'job_id'.",
|
|
83
|
+
"description": "Run and inspect pipelines/jobs. Actions: 'list_pipelines', 'run_pipeline', 'get_pipeline', 'list_pipeline_jobs', 'get_job', 'retry_job', 'cancel_job', 'play_job', 'download_job_artifacts' (proxy download), 'download_job_artifact' (single file). For 'list_pipelines', optionally pass 'ref'. For 'run_pipeline', pass 'ref'. For 'get_pipeline' and 'list_pipeline_jobs', pass 'pipeline_id'. For job actions, pass 'job_id'. For 'download_job_artifact', pass 'artifact_path'.",
|
|
84
84
|
"metadata_params": ["action", "project_id", "pipeline_id", "job_id"],
|
|
85
85
|
"operations": {
|
|
86
|
+
"list_pipelines": "getApiV4ProjectsIdPipelines",
|
|
86
87
|
"run_pipeline": "postApiV4ProjectsIdPipeline",
|
|
87
88
|
"get_pipeline": "getApiV4ProjectsIdPipelinesPipelineId",
|
|
89
|
+
"list_pipeline_jobs": "getApiV4ProjectsIdPipelinesPipelineIdJobs",
|
|
88
90
|
"get_job": "getSingleJob",
|
|
89
91
|
"retry_job": "postApiV4ProjectsIdJobsJobIdRetry",
|
|
90
92
|
"play_job": "triggerManualJob",
|
|
@@ -93,17 +95,24 @@
|
|
|
93
95
|
"type": "proxy_download",
|
|
94
96
|
"metadata_endpoint": "getSingleJob",
|
|
95
97
|
"download_endpoint": "getApiV4ProjectsIdJobsJobIdArtifacts"
|
|
98
|
+
},
|
|
99
|
+
"download_job_artifact": {
|
|
100
|
+
"type": "proxy_download",
|
|
101
|
+
"metadata_endpoint": "getSingleJob",
|
|
102
|
+
"download_endpoint": "getApiV4ProjectsIdJobsJobIdArtifactsArtifactPath"
|
|
96
103
|
}
|
|
97
104
|
},
|
|
98
105
|
"response_fields": {
|
|
106
|
+
"list_pipelines": ["id", "status", "ref", "web_url"],
|
|
99
107
|
"run_pipeline": ["id", "status", "ref", "web_url"],
|
|
100
108
|
"get_pipeline": ["id", "status", "ref", "web_url"],
|
|
109
|
+
"list_pipeline_jobs": ["id", "status", "stage", "name", "ref", "web_url"],
|
|
101
110
|
"get_job": ["id", "status", "stage", "name", "ref", "web_url"]
|
|
102
111
|
},
|
|
103
112
|
"parameters": {
|
|
104
113
|
"action": {
|
|
105
114
|
"type": "string",
|
|
106
|
-
"enum": ["run_pipeline", "get_pipeline", "get_job", "retry_job", "cancel_job", "play_job", "download_job_artifacts"],
|
|
115
|
+
"enum": ["list_pipelines", "run_pipeline", "get_pipeline", "list_pipeline_jobs", "get_job", "retry_job", "cancel_job", "play_job", "download_job_artifacts", "download_job_artifact"],
|
|
107
116
|
"description": "Pipeline/job action to perform",
|
|
108
117
|
"required": true
|
|
109
118
|
},
|
|
@@ -115,51 +124,65 @@
|
|
|
115
124
|
"pipeline_id": {
|
|
116
125
|
"type": "integer",
|
|
117
126
|
"description": "Pipeline ID",
|
|
118
|
-
"required_for": ["get_pipeline"]
|
|
127
|
+
"required_for": ["get_pipeline", "list_pipeline_jobs"]
|
|
119
128
|
},
|
|
120
129
|
"job_id": {
|
|
121
130
|
"type": "integer",
|
|
122
131
|
"description": "Job ID",
|
|
123
|
-
"required_for": ["get_job", "retry_job", "cancel_job", "play_job", "download_job_artifacts"]
|
|
132
|
+
"required_for": ["get_job", "retry_job", "cancel_job", "play_job", "download_job_artifacts", "download_job_artifact"]
|
|
124
133
|
},
|
|
125
134
|
"ref": {
|
|
126
135
|
"type": "string",
|
|
127
136
|
"description": "Branch or tag to run pipeline on",
|
|
128
137
|
"required_for": ["run_pipeline"]
|
|
138
|
+
},
|
|
139
|
+
"artifact_path": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"description": "Path to a file inside the job artifacts archive",
|
|
142
|
+
"required_for": ["download_job_artifact"]
|
|
129
143
|
}
|
|
130
144
|
}
|
|
131
145
|
},
|
|
132
146
|
|
|
133
147
|
{
|
|
134
148
|
"name": "manage_labels_milestones",
|
|
135
|
-
"description": "Manage project
|
|
136
|
-
"metadata_params": ["action", "project_id", "milestone_id"],
|
|
149
|
+
"description": "Manage project and group labels/milestones. Actions: 'list_labels', 'list_group_labels', 'create_label', 'delete_label', 'list_milestones', 'list_group_milestones', 'create_milestone', 'update_milestone'. For 'create_label', pass 'name' and 'color'. For 'delete_label', pass 'name'. For 'create_milestone' and 'update_milestone', pass 'title'. For 'update_milestone', also pass 'milestone_id'. For group list actions, pass 'group_id'.",
|
|
150
|
+
"metadata_params": ["action", "project_id", "group_id", "milestone_id"],
|
|
137
151
|
"operations": {
|
|
138
152
|
"list_labels": "getApiV4ProjectsIdLabels",
|
|
153
|
+
"list_group_labels": "getApiV4GroupsIdLabels",
|
|
139
154
|
"create_label": "postApiV4ProjectsIdLabels",
|
|
140
155
|
"delete_label": "deleteApiV4ProjectsIdLabels",
|
|
141
156
|
"list_milestones": "getApiV4ProjectsIdMilestones",
|
|
157
|
+
"list_group_milestones": "getApiV4GroupsIdMilestones",
|
|
142
158
|
"create_milestone": "postApiV4ProjectsIdMilestones",
|
|
143
159
|
"update_milestone": "putApiV4ProjectsIdMilestonesMilestoneId"
|
|
144
160
|
},
|
|
145
161
|
"response_fields": {
|
|
146
162
|
"list_labels": ["id", "name", "color", "description"],
|
|
163
|
+
"list_group_labels": ["id", "name", "color", "description"],
|
|
147
164
|
"create_label": ["id", "name", "color", "description"],
|
|
148
165
|
"list_milestones": ["id", "iid", "title", "state"],
|
|
166
|
+
"list_group_milestones": ["id", "iid", "title", "state"],
|
|
149
167
|
"create_milestone": ["id", "iid", "title", "state"],
|
|
150
168
|
"update_milestone": ["id", "iid", "title", "state"]
|
|
151
169
|
},
|
|
152
170
|
"parameters": {
|
|
153
171
|
"action": {
|
|
154
172
|
"type": "string",
|
|
155
|
-
"enum": ["list_labels", "create_label", "delete_label", "list_milestones", "create_milestone", "update_milestone"],
|
|
173
|
+
"enum": ["list_labels", "list_group_labels", "create_label", "delete_label", "list_milestones", "list_group_milestones", "create_milestone", "update_milestone"],
|
|
156
174
|
"description": "Action to perform",
|
|
157
175
|
"required": true
|
|
158
176
|
},
|
|
159
177
|
"project_id": {
|
|
160
178
|
"type": "string",
|
|
161
179
|
"description": "Project ID",
|
|
162
|
-
"
|
|
180
|
+
"required_for": ["list_labels", "create_label", "delete_label", "list_milestones", "create_milestone", "update_milestone"]
|
|
181
|
+
},
|
|
182
|
+
"group_id": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"description": "Group ID",
|
|
185
|
+
"required_for": ["list_group_labels", "list_group_milestones"]
|
|
163
186
|
},
|
|
164
187
|
"name": {
|
|
165
188
|
"type": "string",
|
|
@@ -282,21 +305,25 @@
|
|
|
282
305
|
|
|
283
306
|
{
|
|
284
307
|
"name": "manage_project_hooks",
|
|
285
|
-
"description": "Manage project webhooks. Actions: 'list_hooks', 'create_hook', 'delete_hook'. For 'create_hook', pass 'url'. For 'delete_hook', pass 'hook_id'.",
|
|
308
|
+
"description": "Manage project webhooks. Actions: 'list_hooks', 'get_hook', 'create_hook', 'update_hook', 'delete_hook'. For 'create_hook' and 'update_hook', pass 'url'. For 'get_hook' and 'delete_hook', pass 'hook_id'.",
|
|
286
309
|
"metadata_params": ["action", "project_id", "hook_id"],
|
|
287
310
|
"operations": {
|
|
288
311
|
"list_hooks": "getApiV4ProjectsIdHooks",
|
|
312
|
+
"get_hook": "getApiV4ProjectsIdHooksHookId",
|
|
289
313
|
"create_hook": "postApiV4ProjectsIdHooks",
|
|
314
|
+
"update_hook": "putApiV4ProjectsIdHooksHookId",
|
|
290
315
|
"delete_hook": "deleteApiV4ProjectsIdHooksHookId"
|
|
291
316
|
},
|
|
292
317
|
"response_fields": {
|
|
293
318
|
"list_hooks": ["id", "url", "push_events", "issues_events", "merge_requests_events"],
|
|
294
|
-
"
|
|
319
|
+
"get_hook": ["id", "url", "push_events", "issues_events", "merge_requests_events"],
|
|
320
|
+
"create_hook": ["id", "url", "push_events", "issues_events", "merge_requests_events"],
|
|
321
|
+
"update_hook": ["id", "url", "push_events", "issues_events", "merge_requests_events"]
|
|
295
322
|
},
|
|
296
323
|
"parameters": {
|
|
297
324
|
"action": {
|
|
298
325
|
"type": "string",
|
|
299
|
-
"enum": ["list_hooks", "create_hook", "delete_hook"],
|
|
326
|
+
"enum": ["list_hooks", "get_hook", "create_hook", "update_hook", "delete_hook"],
|
|
300
327
|
"description": "Action to perform",
|
|
301
328
|
"required": true
|
|
302
329
|
},
|
|
@@ -308,12 +335,12 @@
|
|
|
308
335
|
"hook_id": {
|
|
309
336
|
"type": "integer",
|
|
310
337
|
"description": "Hook ID",
|
|
311
|
-
"required_for": ["delete_hook"]
|
|
338
|
+
"required_for": ["get_hook", "update_hook", "delete_hook"]
|
|
312
339
|
},
|
|
313
340
|
"url": {
|
|
314
341
|
"type": "string",
|
|
315
342
|
"description": "Hook URL",
|
|
316
|
-
"required_for": ["create_hook"]
|
|
343
|
+
"required_for": ["create_hook", "update_hook"]
|
|
317
344
|
},
|
|
318
345
|
"push_events": {
|
|
319
346
|
"type": "boolean",
|
|
@@ -330,6 +357,54 @@
|
|
|
330
357
|
}
|
|
331
358
|
},
|
|
332
359
|
|
|
360
|
+
{
|
|
361
|
+
"name": "manage_project_variables",
|
|
362
|
+
"description": "Manage project variables. Actions: 'list', 'get', 'create', 'update', 'delete'. For 'get', 'update', and 'delete', pass 'key'. For 'create' and 'update', pass 'value'.",
|
|
363
|
+
"metadata_params": ["action", "project_id"],
|
|
364
|
+
"operations": {
|
|
365
|
+
"list": "getApiV4ProjectsIdVariables",
|
|
366
|
+
"get": "getApiV4ProjectsIdVariablesKey",
|
|
367
|
+
"create": "postApiV4ProjectsIdVariables",
|
|
368
|
+
"update": "putApiV4ProjectsIdVariablesKey",
|
|
369
|
+
"delete": "deleteApiV4ProjectsIdVariablesKey"
|
|
370
|
+
},
|
|
371
|
+
"parameters": {
|
|
372
|
+
"action": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"enum": ["list", "get", "create", "update", "delete"],
|
|
375
|
+
"description": "Action to perform",
|
|
376
|
+
"required": true
|
|
377
|
+
},
|
|
378
|
+
"project_id": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"description": "Project ID",
|
|
381
|
+
"required": true
|
|
382
|
+
},
|
|
383
|
+
"key": {
|
|
384
|
+
"type": "string",
|
|
385
|
+
"description": "Variable key",
|
|
386
|
+
"required_for": ["get", "update", "delete"]
|
|
387
|
+
},
|
|
388
|
+
"value": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"description": "Variable value",
|
|
391
|
+
"required_for": ["create", "update"]
|
|
392
|
+
},
|
|
393
|
+
"protected": {
|
|
394
|
+
"type": "boolean",
|
|
395
|
+
"description": "Whether the variable is protected"
|
|
396
|
+
},
|
|
397
|
+
"masked": {
|
|
398
|
+
"type": "boolean",
|
|
399
|
+
"description": "Whether the variable is masked"
|
|
400
|
+
},
|
|
401
|
+
"environment_scope": {
|
|
402
|
+
"type": "string",
|
|
403
|
+
"description": "Environment scope for the variable"
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
|
|
333
408
|
{
|
|
334
409
|
"name": "manage_snippets",
|
|
335
410
|
"description": "Read project snippets and download raw content via proxy. Actions: 'list_snippets', 'get_snippet', 'download_snippet'. For 'get_snippet' and 'download_snippet', pass 'snippet_id'.",
|
|
@@ -369,26 +444,28 @@
|
|
|
369
444
|
|
|
370
445
|
{
|
|
371
446
|
"name": "manage_projects",
|
|
372
|
-
"description": "Work with GitLab projects. Actions: 'list' (all projects), 'get' (project details), '
|
|
447
|
+
"description": "Work with GitLab projects. Actions: 'list' (all projects), 'get' (project details), 'list_members' (project members). Use 'list' to discover projects. For 'get' and 'list_members', pass 'project_id'.",
|
|
373
448
|
"metadata_params": ["action", "project_id"],
|
|
374
449
|
"operations": {
|
|
375
450
|
"list": "getApiV4Projects",
|
|
376
|
-
"get": "getApiV4ProjectsId"
|
|
451
|
+
"get": "getApiV4ProjectsId",
|
|
452
|
+
"list_members": "getApiV4ProjectsIdMembers"
|
|
377
453
|
},
|
|
378
454
|
"response_fields": {
|
|
379
|
-
"list": ["id", "name", "path", "path_with_namespace", "description", "visibility", "web_url", "last_activity_at", "star_count", "forks_count", "avatar_url", "namespace"]
|
|
455
|
+
"list": ["id", "name", "path", "path_with_namespace", "description", "visibility", "web_url", "last_activity_at", "star_count", "forks_count", "avatar_url", "namespace"],
|
|
456
|
+
"list_members": ["id", "name", "username", "access_level"]
|
|
380
457
|
},
|
|
381
458
|
"parameters": {
|
|
382
459
|
"action": {
|
|
383
460
|
"type": "string",
|
|
384
|
-
"enum": ["list", "get"],
|
|
461
|
+
"enum": ["list", "get", "list_members"],
|
|
385
462
|
"description": "Action to perform",
|
|
386
463
|
"required": true
|
|
387
464
|
},
|
|
388
465
|
"project_id": {
|
|
389
466
|
"type": "string",
|
|
390
467
|
"description": "Project ID. Use numeric ID (e.g. '123') or URL-encoded path (e.g. 'group%2Fproject').",
|
|
391
|
-
"required_for": ["get"],
|
|
468
|
+
"required_for": ["get", "list_members"],
|
|
392
469
|
"example": "123"
|
|
393
470
|
},
|
|
394
471
|
"page": {
|
|
@@ -418,7 +495,7 @@
|
|
|
418
495
|
|
|
419
496
|
{
|
|
420
497
|
"name": "manage_merge_requests",
|
|
421
|
-
"description": "Work with merge requests. Actions: 'list' (all MRs in project), 'get' (single MR details), 'create' (create new MR), 'update' (update MR), 'delete' (delete MR - admins only), 'list_notes' (get all comments), 'get_note' (single comment), 'create_note' (add comment), 'update_note' (edit comment), 'delete_note' (remove comment), 'download_note_attachment' (download note attachment via proxy), 'list_discussions', 'get_discussion', 'create_discussion', 'reply_discussion', 'delete_discussion', 'set_discussion_resolved', 'get_approvals', 'approve', 'unapprove', '
|
|
498
|
+
"description": "Work with merge requests. Actions: 'list' (all MRs in project), 'get' (single MR details), 'create' (create new MR), 'update' (update MR), 'delete' (delete MR - admins only), 'merge' (accept MR), 'list_commits', 'list_diffs', 'list_raw_diffs', 'list_pipelines', 'create_pipeline', 'list_notes' (get all comments), 'get_note' (single comment), 'create_note' (add comment), 'update_note' (edit comment), 'delete_note' (remove comment), 'download_note_attachment' (download note attachment via proxy), 'list_discussions', 'get_discussion', 'create_discussion', 'reply_discussion', 'delete_discussion', 'set_discussion_resolved', 'get_approvals', 'approve', 'unapprove', 'list_versions' (list diff versions), 'get_version' (specific diff version), 'list_award_emoji', 'get_award_emoji', 'create_award_emoji', 'delete_award_emoji', 'list_note_award_emoji', 'get_note_award_emoji', 'create_note_award_emoji', 'delete_note_award_emoji'. Use 'list' to see all merge requests, filter by state (opened, closed, merged, all). For actions that target a specific MR, pass 'merge_request_iid'.",
|
|
422
499
|
"metadata_params": ["action", "project_id", "merge_request_iid", "note_id", "award_id", "discussion_id", "version_id"],
|
|
423
500
|
"operations": {
|
|
424
501
|
"list": "getApiV4ProjectsIdMergeRequests",
|
|
@@ -426,6 +503,12 @@
|
|
|
426
503
|
"create": "postApiV4ProjectsIdMergeRequests",
|
|
427
504
|
"update": "putApiV4ProjectsIdMergeRequestsMergeRequestIid",
|
|
428
505
|
"delete": "deleteApiV4ProjectsIdMergeRequestsMergeRequestIid",
|
|
506
|
+
"merge": "putApiV4ProjectsIdMergeRequestsMergeRequestIidMerge",
|
|
507
|
+
"list_commits": "getApiV4ProjectsIdMergeRequestsMergeRequestIidCommits",
|
|
508
|
+
"list_diffs": "getApiV4ProjectsIdMergeRequestsMergeRequestIidDiffs",
|
|
509
|
+
"list_raw_diffs": "getApiV4ProjectsIdMergeRequestsMergeRequestIidRawDiffs",
|
|
510
|
+
"list_pipelines": "getApiV4ProjectsIdMergeRequestsMergeRequestIidPipelines",
|
|
511
|
+
"create_pipeline": "postApiV4ProjectsIdMergeRequestsMergeRequestIidPipelines",
|
|
429
512
|
"list_notes": "getApiV4ProjectsIdMergeRequestsMergeRequestIidNotes",
|
|
430
513
|
"get_note": "getApiV4ProjectsIdMergeRequestsMergeRequestIidNotesNoteId",
|
|
431
514
|
"create_note": "postApiV4ProjectsIdMergeRequestsMergeRequestIidNotes",
|
|
@@ -445,7 +528,6 @@
|
|
|
445
528
|
"get_approvals": "getApiV4ProjectsIdMergeRequestsMergeRequestIidApprovals",
|
|
446
529
|
"approve": "postApiV4ProjectsIdMergeRequestsMergeRequestIidApprove",
|
|
447
530
|
"unapprove": "postApiV4ProjectsIdMergeRequestsMergeRequestIidUnapprove",
|
|
448
|
-
"get_changes": "getApiV4ProjectsIdMergeRequestsMergeRequestIidChanges",
|
|
449
531
|
"list_versions": "getApiV4ProjectsIdMergeRequestsMergeRequestIidVersions",
|
|
450
532
|
"get_version": "getApiV4ProjectsIdMergeRequestsMergeRequestIidVersionsVersionId",
|
|
451
533
|
"list_award_emoji": "getApiV4ProjectsIdMergeRequestsMergeRequestIidAwardEmoji",
|
|
@@ -461,6 +543,11 @@
|
|
|
461
543
|
"list": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at", "updated_at"],
|
|
462
544
|
"create": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at"],
|
|
463
545
|
"update": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at", "updated_at"],
|
|
546
|
+
"merge": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at", "updated_at"],
|
|
547
|
+
"list_commits": ["id", "short_id", "title", "message", "author_name", "authored_date", "committed_date"],
|
|
548
|
+
"list_diffs": ["old_path", "new_path", "new_file", "renamed_file", "deleted_file", "diff"],
|
|
549
|
+
"list_pipelines": ["id", "status", "ref", "sha", "web_url"],
|
|
550
|
+
"create_pipeline": ["id", "status", "ref", "sha", "web_url"],
|
|
464
551
|
"list_notes": ["id", "body", "author", "created_at", "updated_at", "system", "confidential"],
|
|
465
552
|
"get_note": ["id", "body", "author", "created_at", "updated_at", "system", "confidential", "attachment"],
|
|
466
553
|
"create_note": ["id", "body", "author", "created_at", "system", "confidential"],
|
|
@@ -473,7 +560,6 @@
|
|
|
473
560
|
"get_approvals": ["approvals_required", "approvals_left", "approved_by"],
|
|
474
561
|
"approve": ["approvals_required", "approvals_left", "approved_by"],
|
|
475
562
|
"unapprove": ["approvals_required", "approvals_left", "approved_by"],
|
|
476
|
-
"get_changes": ["id", "iid", "title", "state", "changes"],
|
|
477
563
|
"list_versions": ["id", "short_commit_id", "created_at", "real_size", "commits_count", "head_commit_sha", "base_commit_sha", "start_commit_sha"],
|
|
478
564
|
"get_version": ["id", "head_commit_sha", "base_commit_sha", "start_commit_sha", "real_size", "created_at", "diffs"],
|
|
479
565
|
"list_award_emoji": ["id", "name", "user", "created_at", "updated_at", "awardable_id", "awardable_type"],
|
|
@@ -486,7 +572,7 @@
|
|
|
486
572
|
"parameters": {
|
|
487
573
|
"action": {
|
|
488
574
|
"type": "string",
|
|
489
|
-
"enum": ["list", "get", "create", "update", "delete", "list_notes", "get_note", "create_note", "update_note", "delete_note", "download_note_attachment", "list_discussions", "get_discussion", "create_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved", "get_approvals", "approve", "unapprove", "
|
|
575
|
+
"enum": ["list", "get", "create", "update", "delete", "merge", "list_commits", "list_diffs", "list_raw_diffs", "list_pipelines", "create_pipeline", "list_notes", "get_note", "create_note", "update_note", "delete_note", "download_note_attachment", "list_discussions", "get_discussion", "create_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved", "get_approvals", "approve", "unapprove", "list_versions", "get_version", "list_award_emoji", "get_award_emoji", "create_award_emoji", "delete_award_emoji", "list_note_award_emoji", "get_note_award_emoji", "create_note_award_emoji", "delete_note_award_emoji"],
|
|
490
576
|
"description": "Action to perform",
|
|
491
577
|
"required": true
|
|
492
578
|
},
|
|
@@ -499,7 +585,7 @@
|
|
|
499
585
|
"merge_request_iid": {
|
|
500
586
|
"type": "integer",
|
|
501
587
|
"description": "The internal ID of the merge request",
|
|
502
|
-
"required_for": ["get", "update", "delete", "list_notes", "get_note", "create_note", "update_note", "delete_note", "download_note_attachment", "list_discussions", "get_discussion", "create_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved", "get_approvals", "approve", "unapprove", "
|
|
588
|
+
"required_for": ["get", "update", "delete", "merge", "list_commits", "list_diffs", "list_raw_diffs", "list_pipelines", "create_pipeline", "list_notes", "get_note", "create_note", "update_note", "delete_note", "download_note_attachment", "list_discussions", "get_discussion", "create_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved", "get_approvals", "approve", "unapprove", "list_versions", "get_version", "list_award_emoji", "get_award_emoji", "create_award_emoji", "delete_award_emoji", "list_note_award_emoji", "get_note_award_emoji", "create_note_award_emoji", "delete_note_award_emoji"]
|
|
503
589
|
},
|
|
504
590
|
"discussion_id": {
|
|
505
591
|
"type": "string",
|
|
@@ -1049,49 +1135,86 @@
|
|
|
1049
1135
|
|
|
1050
1136
|
{
|
|
1051
1137
|
"name": "manage_issues",
|
|
1052
|
-
"description": "Work with issues. Actions: 'list' (all issues in project), 'get' (single issue details), 'create' (create new issue), 'delete' (delete issue - admins only), 'list_notes' (get all comments), 'get_note' (single comment), 'create_note' (add comment), 'update_note' (edit comment), 'delete_note' (remove comment). Use 'list' to see all issues, filter by state (opened, closed, all). For actions that target a specific issue, pass 'issue_iid'. For 'create', pass 'title'. For note actions, pass 'body' and/or 'note_id' as required.",
|
|
1138
|
+
"description": "Work with issues. Actions: 'list' (all issues in project), 'list_global' (issues across projects), 'get' (single issue details), 'create' (create new issue), 'update' (update issue), 'delete' (delete issue - admins only), 'list_notes' (get all comments), 'get_note' (single comment), 'create_note' (add comment), 'update_note' (edit comment), 'delete_note' (remove comment), 'list_discussions', 'get_discussion', 'create_discussion', 'reply_discussion', 'delete_discussion', 'set_discussion_resolved', 'list_note_award_emoji', 'get_note_award_emoji', 'create_note_award_emoji', 'delete_note_award_emoji'. Use 'list' to see all issues, filter by state (opened, closed, all). For actions that target a specific issue, pass 'issue_iid'. For 'create', pass 'title'. For note and discussion actions, pass 'body' and/or 'note_id' or 'discussion_id' as required.",
|
|
1053
1139
|
"metadata_params": ["action", "project_id", "issue_iid", "note_id"],
|
|
1054
1140
|
"operations": {
|
|
1055
1141
|
"list": "getApiV4ProjectsIdIssues",
|
|
1142
|
+
"list_global": "getApiV4Issues",
|
|
1056
1143
|
"get": "getApiV4ProjectsIdIssuesIssueIid",
|
|
1057
1144
|
"create": "postApiV4ProjectsIdIssues",
|
|
1145
|
+
"update": "putApiV4ProjectsIdIssuesIssueIid",
|
|
1058
1146
|
"delete": "deleteApiV4ProjectsIdIssuesIssueIid",
|
|
1059
1147
|
"list_notes": "getApiV4ProjectsIdIssuesIssueIidNotes",
|
|
1060
1148
|
"get_note": "getApiV4ProjectsIdIssuesIssueIidNotesNoteId",
|
|
1061
1149
|
"create_note": "postApiV4ProjectsIdIssuesIssueIidNotes",
|
|
1062
1150
|
"update_note": "putApiV4ProjectsIdIssuesIssueIidNotesNoteId",
|
|
1063
|
-
"delete_note": "deleteApiV4ProjectsIdIssuesIssueIidNotesNoteId"
|
|
1151
|
+
"delete_note": "deleteApiV4ProjectsIdIssuesIssueIidNotesNoteId",
|
|
1152
|
+
"list_discussions": "getApiV4ProjectsIdIssuesIssueIidDiscussions",
|
|
1153
|
+
"get_discussion": "getApiV4ProjectsIdIssuesIssueIidDiscussionsDiscussionId",
|
|
1154
|
+
"create_discussion": "postApiV4ProjectsIdIssuesIssueIidDiscussions",
|
|
1155
|
+
"reply_discussion": "postApiV4ProjectsIdIssuesIssueIidDiscussionsDiscussionIdNotes",
|
|
1156
|
+
"delete_discussion": "deleteApiV4ProjectsIdIssuesIssueIidDiscussionsDiscussionId",
|
|
1157
|
+
"set_discussion_resolved": "putApiV4ProjectsIdIssuesIssueIidDiscussionsDiscussionId",
|
|
1158
|
+
"list_note_award_emoji": "getApiV4ProjectsIdIssuesIssueIidNotesNoteIdAwardEmoji",
|
|
1159
|
+
"get_note_award_emoji": "getApiV4ProjectsIdIssuesIssueIidNotesNoteIdAwardEmojiAwardId",
|
|
1160
|
+
"create_note_award_emoji": "postApiV4ProjectsIdIssuesIssueIidNotesNoteIdAwardEmoji",
|
|
1161
|
+
"delete_note_award_emoji": "deleteApiV4ProjectsIdIssuesIssueIidNotesNoteIdAwardEmojiAwardId"
|
|
1064
1162
|
},
|
|
1065
1163
|
"response_fields": {
|
|
1066
1164
|
"list": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at", "updated_at"],
|
|
1165
|
+
"list_global": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at", "updated_at"],
|
|
1067
1166
|
"create": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at"],
|
|
1167
|
+
"update": ["id", "iid", "title", "description", "state", "web_url", "author", "created_at", "updated_at"],
|
|
1068
1168
|
"list_notes": ["id", "body", "author", "created_at", "updated_at", "system", "confidential"],
|
|
1069
1169
|
"get_note": ["id", "body", "author", "created_at", "updated_at", "system", "confidential", "attachment"],
|
|
1070
1170
|
"create_note": ["id", "body", "author", "created_at", "system", "confidential"],
|
|
1071
|
-
"update_note": ["id", "body", "author", "created_at", "updated_at", "system", "confidential"]
|
|
1171
|
+
"update_note": ["id", "body", "author", "created_at", "updated_at", "system", "confidential"],
|
|
1172
|
+
"list_discussions": ["id", "notes", "resolved"],
|
|
1173
|
+
"get_discussion": ["id", "notes", "resolved"],
|
|
1174
|
+
"create_discussion": ["id", "notes", "resolved"],
|
|
1175
|
+
"reply_discussion": ["id", "notes", "resolved"],
|
|
1176
|
+
"set_discussion_resolved": ["id", "notes", "resolved"],
|
|
1177
|
+
"list_note_award_emoji": ["id", "name", "user", "created_at"],
|
|
1178
|
+
"get_note_award_emoji": ["id", "name", "user", "created_at"],
|
|
1179
|
+
"create_note_award_emoji": ["id", "name", "user", "created_at"]
|
|
1072
1180
|
},
|
|
1073
1181
|
"parameters": {
|
|
1074
1182
|
"action": {
|
|
1075
1183
|
"type": "string",
|
|
1076
|
-
"enum": ["list", "get", "create", "delete", "list_notes", "get_note", "create_note", "update_note", "delete_note"],
|
|
1184
|
+
"enum": ["list", "list_global", "get", "create", "update", "delete", "list_notes", "get_note", "create_note", "update_note", "delete_note", "list_discussions", "get_discussion", "create_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved", "list_note_award_emoji", "get_note_award_emoji", "create_note_award_emoji", "delete_note_award_emoji"],
|
|
1077
1185
|
"description": "Action to perform",
|
|
1078
1186
|
"required": true
|
|
1079
1187
|
},
|
|
1080
1188
|
"project_id": {
|
|
1081
1189
|
"type": "string",
|
|
1082
1190
|
"description": "Project ID. Use numeric ID (e.g. '123') or URL-encoded path (e.g. 'group%2Fproject').",
|
|
1083
|
-
"
|
|
1191
|
+
"required_for": ["list", "get", "create", "update", "delete", "list_notes", "get_note", "create_note", "update_note", "delete_note", "list_discussions", "get_discussion", "create_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved", "list_note_award_emoji", "get_note_award_emoji", "create_note_award_emoji", "delete_note_award_emoji"],
|
|
1084
1192
|
"example": "123"
|
|
1085
1193
|
},
|
|
1086
1194
|
"issue_iid": {
|
|
1087
1195
|
"type": "integer",
|
|
1088
1196
|
"description": "The internal ID of the issue",
|
|
1089
|
-
"required_for": ["get", "delete", "list_notes", "get_note", "create_note", "update_note", "delete_note"]
|
|
1197
|
+
"required_for": ["get", "update", "delete", "list_notes", "get_note", "create_note", "update_note", "delete_note", "list_discussions", "get_discussion", "create_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved", "list_note_award_emoji", "get_note_award_emoji", "create_note_award_emoji", "delete_note_award_emoji"]
|
|
1090
1198
|
},
|
|
1091
1199
|
"note_id": {
|
|
1092
1200
|
"type": "integer",
|
|
1093
1201
|
"description": "The ID of the note",
|
|
1094
|
-
"required_for": ["get_note", "update_note", "delete_note"]
|
|
1202
|
+
"required_for": ["get_note", "update_note", "delete_note", "list_note_award_emoji", "get_note_award_emoji", "create_note_award_emoji", "delete_note_award_emoji"]
|
|
1203
|
+
},
|
|
1204
|
+
"discussion_id": {
|
|
1205
|
+
"type": "string",
|
|
1206
|
+
"description": "The ID of the discussion",
|
|
1207
|
+
"required_for": ["get_discussion", "reply_discussion", "delete_discussion", "set_discussion_resolved"]
|
|
1208
|
+
},
|
|
1209
|
+
"award_id": {
|
|
1210
|
+
"type": "integer",
|
|
1211
|
+
"description": "The ID of the award emoji",
|
|
1212
|
+
"required_for": ["get_note_award_emoji", "delete_note_award_emoji"]
|
|
1213
|
+
},
|
|
1214
|
+
"name": {
|
|
1215
|
+
"type": "string",
|
|
1216
|
+
"description": "Emoji name (for award emoji actions)",
|
|
1217
|
+
"required_for": ["create_note_award_emoji"]
|
|
1095
1218
|
},
|
|
1096
1219
|
"state": {
|
|
1097
1220
|
"type": "string",
|
|
@@ -1099,6 +1222,35 @@
|
|
|
1099
1222
|
"description": "Filter by issue state",
|
|
1100
1223
|
"default": "opened"
|
|
1101
1224
|
},
|
|
1225
|
+
"search": {
|
|
1226
|
+
"type": "string",
|
|
1227
|
+
"description": "Search issues by title or description (for list_global)"
|
|
1228
|
+
},
|
|
1229
|
+
"labels": {
|
|
1230
|
+
"type": "string",
|
|
1231
|
+
"description": "Filter by labels (comma-separated, for list_global)"
|
|
1232
|
+
},
|
|
1233
|
+
"milestone": {
|
|
1234
|
+
"type": "string",
|
|
1235
|
+
"description": "Filter by milestone title (for list_global)"
|
|
1236
|
+
},
|
|
1237
|
+
"assignee_id": {
|
|
1238
|
+
"type": "integer",
|
|
1239
|
+
"description": "Filter by assignee ID (for list_global)"
|
|
1240
|
+
},
|
|
1241
|
+
"assignee_username": {
|
|
1242
|
+
"type": "string",
|
|
1243
|
+
"description": "Filter by assignee username (for list_global)"
|
|
1244
|
+
},
|
|
1245
|
+
"author_id": {
|
|
1246
|
+
"type": "integer",
|
|
1247
|
+
"description": "Filter by author ID (for list_global)"
|
|
1248
|
+
},
|
|
1249
|
+
"scope": {
|
|
1250
|
+
"type": "string",
|
|
1251
|
+
"enum": ["created_by_me", "assigned_to_me", "all"],
|
|
1252
|
+
"description": "Issue scope (for list_global)"
|
|
1253
|
+
},
|
|
1102
1254
|
"page": {
|
|
1103
1255
|
"type": "integer",
|
|
1104
1256
|
"description": "Page number for pagination",
|
|
@@ -1120,12 +1272,22 @@
|
|
|
1120
1272
|
"description": "The description of the issue (optional for create)",
|
|
1121
1273
|
"example": "This implements the new feature requested by the team."
|
|
1122
1274
|
},
|
|
1275
|
+
"state_event": {
|
|
1276
|
+
"type": "string",
|
|
1277
|
+
"enum": ["close", "reopen"],
|
|
1278
|
+
"description": "Change issue state (for update)"
|
|
1279
|
+
},
|
|
1123
1280
|
"body": {
|
|
1124
1281
|
"type": "string",
|
|
1125
1282
|
"description": "The content of the note",
|
|
1126
1283
|
"required_for": ["create_note", "update_note"],
|
|
1127
1284
|
"example": "Looks good to me."
|
|
1128
1285
|
},
|
|
1286
|
+
"resolved": {
|
|
1287
|
+
"type": "boolean",
|
|
1288
|
+
"description": "Resolve or unresolve discussion",
|
|
1289
|
+
"required_for": ["set_discussion_resolved"]
|
|
1290
|
+
},
|
|
1129
1291
|
"assignee_id": {
|
|
1130
1292
|
"type": "integer",
|
|
1131
1293
|
"description": "The ID of the user to assign the issue to (optional for create)",
|
|
@@ -1289,18 +1451,21 @@
|
|
|
1289
1451
|
|
|
1290
1452
|
{
|
|
1291
1453
|
"name": "repository_commits",
|
|
1292
|
-
"description": "
|
|
1454
|
+
"description": "Repository commits and comparisons. Actions: 'list', 'get_commit', 'compare'.",
|
|
1293
1455
|
"metadata_params": ["action", "project_id"],
|
|
1294
1456
|
"operations": {
|
|
1295
|
-
"list": "getApiV4ProjectsIdRepositoryCommits"
|
|
1457
|
+
"list": "getApiV4ProjectsIdRepositoryCommits",
|
|
1458
|
+
"get_commit": "getApiV4ProjectsIdRepositoryCommitsSha",
|
|
1459
|
+
"compare": "getApiV4ProjectsIdRepositoryCompare"
|
|
1296
1460
|
},
|
|
1297
1461
|
"response_fields": {
|
|
1298
|
-
"list": ["id", "short_id", "title", "message", "author_name", "author_email", "authored_date", "committed_date", "web_url"]
|
|
1462
|
+
"list": ["id", "short_id", "title", "message", "author_name", "author_email", "authored_date", "committed_date", "web_url"],
|
|
1463
|
+
"get_commit": ["id", "short_id", "title", "message", "author_name", "author_email", "authored_date", "committed_date", "web_url"]
|
|
1299
1464
|
},
|
|
1300
1465
|
"parameters": {
|
|
1301
1466
|
"action": {
|
|
1302
1467
|
"type": "string",
|
|
1303
|
-
"enum": ["list"],
|
|
1468
|
+
"enum": ["list", "get_commit", "compare"],
|
|
1304
1469
|
"description": "Action to perform",
|
|
1305
1470
|
"required": true
|
|
1306
1471
|
},
|
|
@@ -1350,17 +1515,36 @@
|
|
|
1350
1515
|
"order": {
|
|
1351
1516
|
"type": "string",
|
|
1352
1517
|
"description": "Order commits, for example default or topo"
|
|
1518
|
+
},
|
|
1519
|
+
"sha": {
|
|
1520
|
+
"type": "string",
|
|
1521
|
+
"description": "Commit SHA",
|
|
1522
|
+
"required_for": ["get_commit"]
|
|
1523
|
+
},
|
|
1524
|
+
"from": {
|
|
1525
|
+
"type": "string",
|
|
1526
|
+
"description": "Source ref for compare",
|
|
1527
|
+
"required_for": ["compare"]
|
|
1528
|
+
},
|
|
1529
|
+
"to": {
|
|
1530
|
+
"type": "string",
|
|
1531
|
+
"description": "Target ref for compare",
|
|
1532
|
+
"required_for": ["compare"]
|
|
1353
1533
|
}
|
|
1354
1534
|
}
|
|
1355
1535
|
},
|
|
1356
1536
|
|
|
1357
1537
|
{
|
|
1358
1538
|
"name": "repository_files",
|
|
1359
|
-
"description": "
|
|
1539
|
+
"description": "Repository files and tree. Actions: 'list_tree', 'get_file' (metadata + base64 content), 'get_raw' (raw content), 'create_file', 'update_file', 'delete_file'.",
|
|
1360
1540
|
"metadata_params": ["action", "project_id", "file_path"],
|
|
1361
1541
|
"operations": {
|
|
1542
|
+
"list_tree": "getApiV4ProjectsIdRepositoryTree",
|
|
1362
1543
|
"get_file": "getApiV4ProjectsIdRepositoryFilesFilePath",
|
|
1363
|
-
"get_raw": "getApiV4ProjectsIdRepositoryFilesFilePathRaw"
|
|
1544
|
+
"get_raw": "getApiV4ProjectsIdRepositoryFilesFilePathRaw",
|
|
1545
|
+
"create_file": "postApiV4ProjectsIdRepositoryFilesFilePath",
|
|
1546
|
+
"update_file": "putApiV4ProjectsIdRepositoryFilesFilePath",
|
|
1547
|
+
"delete_file": "deleteApiV4ProjectsIdRepositoryFilesFilePath"
|
|
1364
1548
|
},
|
|
1365
1549
|
"response_fields": {
|
|
1366
1550
|
"get_file": ["file_name", "file_path", "size", "encoding", "content", "ref", "blob_id", "commit_id", "last_commit_id"]
|
|
@@ -1368,7 +1552,7 @@
|
|
|
1368
1552
|
"parameters": {
|
|
1369
1553
|
"action": {
|
|
1370
1554
|
"type": "string",
|
|
1371
|
-
"enum": ["get_file", "get_raw"],
|
|
1555
|
+
"enum": ["list_tree", "get_file", "get_raw", "create_file", "update_file", "delete_file"],
|
|
1372
1556
|
"description": "Action to perform",
|
|
1373
1557
|
"required": true
|
|
1374
1558
|
},
|
|
@@ -1381,13 +1565,31 @@
|
|
|
1381
1565
|
"file_path": {
|
|
1382
1566
|
"type": "string",
|
|
1383
1567
|
"description": "URL-encoded full path to the file, e.g., 'src%2Findex.js'. Use %2F instead of '/'.",
|
|
1384
|
-
"
|
|
1568
|
+
"required_for": ["get_file", "get_raw", "create_file", "update_file", "delete_file"]
|
|
1385
1569
|
},
|
|
1386
1570
|
"ref": {
|
|
1387
1571
|
"type": "string",
|
|
1388
|
-
"description": "Branch name, tag, or commit SHA to read from",
|
|
1389
|
-
"
|
|
1390
|
-
|
|
1572
|
+
"description": "Branch name, tag, or commit SHA to read from (for list_tree/get_file/get_raw)",
|
|
1573
|
+
"required_for": ["get_file", "get_raw"]
|
|
1574
|
+
},
|
|
1575
|
+
"path": {
|
|
1576
|
+
"type": "string",
|
|
1577
|
+
"description": "Directory path within the repository (for list_tree)"
|
|
1578
|
+
},
|
|
1579
|
+
"branch": {
|
|
1580
|
+
"type": "string",
|
|
1581
|
+
"description": "Branch name for file operations",
|
|
1582
|
+
"required_for": ["create_file", "update_file", "delete_file"]
|
|
1583
|
+
},
|
|
1584
|
+
"content": {
|
|
1585
|
+
"type": "string",
|
|
1586
|
+
"description": "File content",
|
|
1587
|
+
"required_for": ["create_file", "update_file"]
|
|
1588
|
+
},
|
|
1589
|
+
"commit_message": {
|
|
1590
|
+
"type": "string",
|
|
1591
|
+
"description": "Commit message",
|
|
1592
|
+
"required_for": ["create_file", "update_file", "delete_file"]
|
|
1391
1593
|
}
|
|
1392
1594
|
}
|
|
1393
1595
|
},
|