@zereight/mcp-gitlab 2.1.52 → 2.1.53
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.ko.md +3 -7
- package/README.md +112 -103
- package/README.zh-CN.md +3 -7
- package/build/index.js +409 -19
- package/build/schemas.js +233 -0
- package/build/test/test-list-group-merge-requests.js +165 -0
- package/build/test/test-pipeline-schedules.js +482 -0
- package/build/test/test-toolset-filtering.js +2 -2
- package/build/tools/registry.js +100 -1
- package/build/tools/tool-descriptions.js +12 -0
- package/package.json +1 -2
package/build/tools/registry.js
CHANGED
|
@@ -2,7 +2,7 @@ import { zodToJsonSchema } from "zod-to-json-schema";
|
|
|
2
2
|
import { toJSONSchema } from "../utils/schema.js";
|
|
3
3
|
import { USE_GITLAB_WIKI, USE_MILESTONE, USE_PIPELINE, SSE, STREAMABLE_HTTP, } from "../config.js";
|
|
4
4
|
import { getToolDescription } from "./tool-descriptions.js";
|
|
5
|
-
import { ApproveMergeRequestSchema, BulkPublishDraftNotesSchema, CancelPipelineJobSchema, CancelPipelineSchema, ConvertWorkItemTypeSchema, CreateBranchSchema, CreateDraftNoteSchema, CreateGroupSchema, CreateGroupWikiPageSchema, CreateIssueLinkSchema, CreateIssueNoteSchema, CreateIssueSchema, CreateIssueEmojiReactionSchema, CreateIssueNoteEmojiReactionSchema, ListIssueEmojiReactionsSchema, ListIssueNoteEmojiReactionsSchema, CreateLabelSchema, MarkAllTodosDoneSchema, ListTodosSchema, MarkTodoDoneSchema, CreateMergeRequestDiscussionNoteSchema, CreateMergeRequestEmojiReactionSchema, ListMergeRequestEmojiReactionsSchema, ListMergeRequestNoteEmojiReactionsSchema, CreateMergeRequestNoteSchema, CreateMergeRequestNoteEmojiReactionSchema, CreateMergeRequestSchema, CreateMergeRequestThreadSchema, CreateNoteSchema, CreateCommitStatusSchema, CreateOrUpdateFileSchema, CreatePipelineSchema, CreateProjectMilestoneSchema, CreateGroupMilestoneSchema, CreateReleaseEvidenceSchema, CreateReleaseSchema, CreateRepositorySchema, CreateTagSchema, CreateTimelineEventSchema, CreateWikiPageSchema, CreateWorkItemNoteSchema, CreateWorkItemEmojiReactionSchema, CreateWorkItemNoteEmojiReactionSchema, ListWorkItemEmojiReactionsSchema, ListWorkItemNoteEmojiReactionsSchema, CreateWorkItemSchema, DeleteBranchSchema, GetProtectedBranchSchema, ListProtectedBranchesSchema, ProtectBranchSchema, UnprotectBranchSchema, UpdateDefaultBranchSchema, DeleteDraftNoteSchema, DeleteGroupMilestoneSchema, DeleteGroupWikiPageSchema, DeleteIssueLinkSchema, DeleteIssueSchema, DeleteIssueEmojiReactionSchema, DeleteIssueNoteEmojiReactionSchema, DeleteLabelSchema, DeleteMergeRequestDiscussionNoteSchema, DeleteMergeRequestNoteSchema, DeleteMergeRequestEmojiReactionSchema, DeleteMergeRequestNoteEmojiReactionSchema, DeleteProjectMilestoneSchema, DeleteReleaseSchema, DeleteTagSchema, DeleteWikiPageSchema, DeleteWorkItemEmojiReactionSchema, DeleteWorkItemNoteEmojiReactionSchema, DownloadAttachmentSchema, DownloadAttachmentRemoteSchema, DownloadJobArtifactsSchema, DownloadJobArtifactsRemoteSchema, DownloadReleaseAssetSchema, EditProjectMilestoneSchema, EditGroupMilestoneSchema, ExecuteGraphQLSchema, ForkRepositorySchema, HealthCheckSchema, GetBranchSchema, GetBranchDiffsSchema, GetCommitDiffSchema, GetCommitSchema, GetFileBlameSchema, GetDeploymentSchema, GetDraftNoteSchema, GetEnvironmentSchema, GetFileContentsSchema, GetGroupWikiPageSchema, GetIssueLinkSchema, GetIssueSchema, GetJobArtifactFileSchema, GetLabelSchema, GetMergeRequestApprovalStateSchema, GetMergeRequestConflictsSchema, GetMergeRequestDiffsSchema, GetMergeRequestFileDiffSchema, GetMergeRequestNoteSchema, GetMergeRequestNotesSchema, GetMergeRequestSchema, GetMergeRequestVersionSchema, GetMilestoneBurndownEventsSchema, GetMilestoneIssuesSchema, GetMilestoneMergeRequestsSchema, GetGroupMilestoneSchema, GetGroupMilestoneIssuesSchema, GetGroupMilestoneMergeRequestsSchema, GetGroupMilestoneBurndownEventsSchema, GetNamespaceSchema, GetPipelineJobOutputSchema, PipelineJobControlSchema, GetPipelineSchema, GetProjectEventsSchema, GetProjectMilestoneSchema, GetProjectSchema, GetReleaseSchema, GetRepositoryTreeSchema, GetTagSchema, GetTagSignatureSchema, GetTimelineEventsSchema, GetUsersSchema, GetUserSchema, WhoAmISchema, GetWebhookEventSchema, GetWikiPageSchema, GetWorkItemSchema, ListBranchesSchema, ListCommitsSchema, ListCommitStatusesSchema, ListCustomFieldDefinitionsSchema, ListDeploymentsSchema, ListDraftNotesSchema, ListEnvironmentsSchema, ListEventsSchema, ListGroupIterationsSchema, ListGroupMilestonesSchema, ListGroupProjectsSchema, ListGroupWikiPagesSchema, ListIssueDiscussionsSchema, ListIssueLinksSchema, ListIssuesSchema, ListJobArtifactsSchema, ListLabelsSchema, ListMergeRequestChangedFilesSchema, ListMergeRequestDiffsSchema, ListMergeRequestDiscussionsSchema, ListMergeRequestPipelinesSchema, ListMergeRequestVersionsSchema, ListMergeRequestsSchema, ListNamespacesSchema, ListPipelineJobsSchema, ListPipelineTriggerJobsSchema, ValidateCiLintSchema, ValidateProjectCiLintSchema, ListCiCatalogResourcesSchema, GetCiCatalogResourceSchema, ListPipelinesSchema, ListGroupMembersSchema, ListProjectMembersSchema, ListProjectMilestonesSchema, ListProjectsSchema, ListReleasesSchema, ListTagsSchema, ListWebhookEventsSchema, ListWebhooksSchema, ListWikiPagesSchema, ListWorkItemNotesSchema, ListWorkItemStatusesSchema, ListWorkItemsSchema, MarkdownUploadSchema, MarkdownUploadRemoteSchema, MergeMergeRequestSchema, MoveWorkItemSchema, MyIssuesSchema, PlayPipelineJobSchema, PromoteProjectMilestoneSchema, PublishDraftNoteSchema, PushFilesSchema, ResolveMergeRequestThreadSchema, RetryPipelineJobSchema, RetryPipelineSchema, SearchCodeSchema, SearchGroupCodeSchema, SearchProjectCodeSchema, SearchRepositoriesSchema, UnapproveMergeRequestSchema, UpdateDraftNoteSchema, UpdateGroupWikiPageSchema, UpdateIssueNoteSchema, UpdateIssueSchema, UpdateIssueDescriptionPatchSchema, UpdateLabelSchema, UpdateProjectSchema, UpdateMergeRequestDiscussionNoteSchema, UpdateMergeRequestNoteSchema, UpdateMergeRequestSchema, UpdateReleaseSchema, UpdateWikiPageSchema, UpdateWorkItemSchema, VerifyNamespaceSchema, ListProjectVariablesSchema, GetProjectVariableSchema, CreateProjectVariableSchema, UpdateProjectVariableSchema, DeleteProjectVariableSchema, ListGroupVariablesSchema, GetGroupVariableSchema, CreateGroupVariableSchema, UpdateGroupVariableSchema, DeleteGroupVariableSchema, GetDependencyProxySettingsSchema, UpdateDependencyProxySettingsSchema, ListDependencyProxyBlobsSchema, PurgeDependencyProxyCacheSchema, ListProjectVulnerabilitiesSchema, GetVulnerabilitySchema, DismissVulnerabilitySchema, ConfirmVulnerabilitySchema, } from "../schemas.js";
|
|
5
|
+
import { ApproveMergeRequestSchema, BulkPublishDraftNotesSchema, CancelPipelineJobSchema, CancelPipelineSchema, ConvertWorkItemTypeSchema, CreateBranchSchema, CreateDraftNoteSchema, CreateGroupSchema, CreateGroupWikiPageSchema, CreateIssueLinkSchema, CreateIssueNoteSchema, CreateIssueSchema, CreateIssueEmojiReactionSchema, CreateIssueNoteEmojiReactionSchema, ListIssueEmojiReactionsSchema, ListIssueNoteEmojiReactionsSchema, CreateLabelSchema, MarkAllTodosDoneSchema, ListTodosSchema, MarkTodoDoneSchema, CreateMergeRequestDiscussionNoteSchema, CreateMergeRequestEmojiReactionSchema, ListMergeRequestEmojiReactionsSchema, ListMergeRequestNoteEmojiReactionsSchema, CreateMergeRequestNoteSchema, CreateMergeRequestNoteEmojiReactionSchema, CreateMergeRequestSchema, CreateMergeRequestThreadSchema, CreateNoteSchema, CreateCommitStatusSchema, CreateOrUpdateFileSchema, CreatePipelineSchema, CreateProjectMilestoneSchema, CreateGroupMilestoneSchema, CreateReleaseEvidenceSchema, CreateReleaseSchema, CreateRepositorySchema, CreateTagSchema, CreateTimelineEventSchema, CreateWikiPageSchema, CreateWorkItemNoteSchema, CreateWorkItemEmojiReactionSchema, CreateWorkItemNoteEmojiReactionSchema, ListWorkItemEmojiReactionsSchema, ListWorkItemNoteEmojiReactionsSchema, CreateWorkItemSchema, DeleteBranchSchema, GetProtectedBranchSchema, ListProtectedBranchesSchema, ProtectBranchSchema, UnprotectBranchSchema, UpdateDefaultBranchSchema, DeleteDraftNoteSchema, DeleteGroupMilestoneSchema, DeleteGroupWikiPageSchema, DeleteIssueLinkSchema, DeleteIssueSchema, DeleteIssueEmojiReactionSchema, DeleteIssueNoteEmojiReactionSchema, DeleteLabelSchema, DeleteMergeRequestDiscussionNoteSchema, DeleteMergeRequestNoteSchema, DeleteMergeRequestEmojiReactionSchema, DeleteMergeRequestNoteEmojiReactionSchema, DeleteProjectMilestoneSchema, DeleteReleaseSchema, DeleteTagSchema, DeleteWikiPageSchema, DeleteWorkItemEmojiReactionSchema, DeleteWorkItemNoteEmojiReactionSchema, DownloadAttachmentSchema, DownloadAttachmentRemoteSchema, DownloadJobArtifactsSchema, DownloadJobArtifactsRemoteSchema, DownloadReleaseAssetSchema, EditProjectMilestoneSchema, EditGroupMilestoneSchema, ExecuteGraphQLSchema, ForkRepositorySchema, HealthCheckSchema, GetBranchSchema, GetBranchDiffsSchema, GetCommitDiffSchema, GetCommitSchema, GetFileBlameSchema, GetDeploymentSchema, GetDraftNoteSchema, GetEnvironmentSchema, GetFileContentsSchema, GetGroupWikiPageSchema, GetIssueLinkSchema, GetIssueSchema, GetJobArtifactFileSchema, GetLabelSchema, GetMergeRequestApprovalStateSchema, GetMergeRequestConflictsSchema, GetMergeRequestDiffsSchema, GetMergeRequestFileDiffSchema, GetMergeRequestNoteSchema, GetMergeRequestNotesSchema, GetMergeRequestSchema, GetMergeRequestVersionSchema, GetMilestoneBurndownEventsSchema, GetMilestoneIssuesSchema, GetMilestoneMergeRequestsSchema, GetGroupMilestoneSchema, GetGroupMilestoneIssuesSchema, GetGroupMilestoneMergeRequestsSchema, GetGroupMilestoneBurndownEventsSchema, GetNamespaceSchema, GetPipelineJobOutputSchema, PipelineJobControlSchema, GetPipelineSchema, GetProjectEventsSchema, GetProjectMilestoneSchema, GetProjectSchema, GetReleaseSchema, GetRepositoryTreeSchema, GetTagSchema, GetTagSignatureSchema, GetTimelineEventsSchema, GetUsersSchema, GetUserSchema, WhoAmISchema, GetWebhookEventSchema, GetWikiPageSchema, GetWorkItemSchema, ListBranchesSchema, ListCommitsSchema, ListCommitStatusesSchema, ListCustomFieldDefinitionsSchema, ListDeploymentsSchema, ListDraftNotesSchema, ListEnvironmentsSchema, ListEventsSchema, ListGroupIterationsSchema, ListGroupMilestonesSchema, ListGroupProjectsSchema, ListGroupWikiPagesSchema, ListIssueDiscussionsSchema, ListIssueLinksSchema, ListIssuesSchema, ListJobArtifactsSchema, ListLabelsSchema, ListMergeRequestChangedFilesSchema, ListMergeRequestDiffsSchema, ListMergeRequestDiscussionsSchema, ListMergeRequestPipelinesSchema, ListMergeRequestVersionsSchema, ListMergeRequestsSchema, ListGroupMergeRequestsSchema, ListNamespacesSchema, ListPipelineJobsSchema, ListPipelineTriggerJobsSchema, ValidateCiLintSchema, ValidateProjectCiLintSchema, ListCiCatalogResourcesSchema, GetCiCatalogResourceSchema, ListPipelinesSchema, ListPipelineSchedulesSchema, GetPipelineScheduleSchema, ListPipelineSchedulePipelinesSchema, CreatePipelineScheduleSchema, UpdatePipelineScheduleSchema, DeletePipelineScheduleSchema, PlayPipelineScheduleSchema, TakeOwnershipPipelineScheduleSchema, GetPipelineScheduleVariableSchema, CreatePipelineScheduleVariableSchema, UpdatePipelineScheduleVariableSchema, DeletePipelineScheduleVariableSchema, ListGroupMembersSchema, ListProjectMembersSchema, ListProjectMilestonesSchema, ListProjectsSchema, ListReleasesSchema, ListTagsSchema, ListWebhookEventsSchema, ListWebhooksSchema, ListWikiPagesSchema, ListWorkItemNotesSchema, ListWorkItemStatusesSchema, ListWorkItemsSchema, MarkdownUploadSchema, MarkdownUploadRemoteSchema, MergeMergeRequestSchema, MoveWorkItemSchema, MyIssuesSchema, PlayPipelineJobSchema, PromoteProjectMilestoneSchema, PublishDraftNoteSchema, PushFilesSchema, ResolveMergeRequestThreadSchema, RetryPipelineJobSchema, RetryPipelineSchema, SearchCodeSchema, SearchGroupCodeSchema, SearchProjectCodeSchema, SearchRepositoriesSchema, UnapproveMergeRequestSchema, UpdateDraftNoteSchema, UpdateGroupWikiPageSchema, UpdateIssueNoteSchema, UpdateIssueSchema, UpdateIssueDescriptionPatchSchema, UpdateLabelSchema, UpdateProjectSchema, UpdateMergeRequestDiscussionNoteSchema, UpdateMergeRequestNoteSchema, UpdateMergeRequestSchema, UpdateReleaseSchema, UpdateWikiPageSchema, UpdateWorkItemSchema, VerifyNamespaceSchema, ListProjectVariablesSchema, GetProjectVariableSchema, CreateProjectVariableSchema, UpdateProjectVariableSchema, DeleteProjectVariableSchema, ListGroupVariablesSchema, GetGroupVariableSchema, CreateGroupVariableSchema, UpdateGroupVariableSchema, DeleteGroupVariableSchema, GetDependencyProxySettingsSchema, UpdateDependencyProxySettingsSchema, ListDependencyProxyBlobsSchema, PurgeDependencyProxyCacheSchema, ListProjectVulnerabilitiesSchema, GetVulnerabilitySchema, DismissVulnerabilitySchema, ConfirmVulnerabilitySchema, } from "../schemas.js";
|
|
6
6
|
const IS_REMOTE = SSE || STREAMABLE_HTTP;
|
|
7
7
|
// Define all available tools
|
|
8
8
|
export const allTools = [
|
|
@@ -625,6 +625,66 @@ export const allTools = [
|
|
|
625
625
|
description: "Cancel a running pipeline",
|
|
626
626
|
inputSchema: toJSONSchema(CancelPipelineSchema),
|
|
627
627
|
},
|
|
628
|
+
{
|
|
629
|
+
name: "list_pipeline_schedules",
|
|
630
|
+
description: "List pipeline schedules in a project, optionally filtered to active or inactive",
|
|
631
|
+
inputSchema: toJSONSchema(ListPipelineSchedulesSchema),
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
name: "get_pipeline_schedule",
|
|
635
|
+
description: "Get details of a specific pipeline schedule, including its variables and last pipeline",
|
|
636
|
+
inputSchema: toJSONSchema(GetPipelineScheduleSchema),
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
name: "list_pipeline_schedule_pipelines",
|
|
640
|
+
description: "List the pipelines that a pipeline schedule has triggered",
|
|
641
|
+
inputSchema: toJSONSchema(ListPipelineSchedulePipelinesSchema),
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
name: "create_pipeline_schedule",
|
|
645
|
+
description: "Create a new pipeline schedule for a branch or tag",
|
|
646
|
+
inputSchema: toJSONSchema(CreatePipelineScheduleSchema),
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
name: "update_pipeline_schedule",
|
|
650
|
+
description: "Update an existing pipeline schedule",
|
|
651
|
+
inputSchema: toJSONSchema(UpdatePipelineScheduleSchema),
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
name: "delete_pipeline_schedule",
|
|
655
|
+
description: "Delete a pipeline schedule",
|
|
656
|
+
inputSchema: toJSONSchema(DeletePipelineScheduleSchema),
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
name: "play_pipeline_schedule",
|
|
660
|
+
description: "Run a pipeline schedule immediately",
|
|
661
|
+
inputSchema: toJSONSchema(PlayPipelineScheduleSchema),
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
name: "take_ownership_pipeline_schedule",
|
|
665
|
+
description: "Take ownership of a pipeline schedule",
|
|
666
|
+
inputSchema: toJSONSchema(TakeOwnershipPipelineScheduleSchema),
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
name: "get_pipeline_schedule_variable",
|
|
670
|
+
description: "Get a single variable of a pipeline schedule",
|
|
671
|
+
inputSchema: toJSONSchema(GetPipelineScheduleVariableSchema),
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
name: "create_pipeline_schedule_variable",
|
|
675
|
+
description: "Create a variable for a pipeline schedule",
|
|
676
|
+
inputSchema: toJSONSchema(CreatePipelineScheduleVariableSchema),
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
name: "update_pipeline_schedule_variable",
|
|
680
|
+
description: "Update a variable of a pipeline schedule",
|
|
681
|
+
inputSchema: toJSONSchema(UpdatePipelineScheduleVariableSchema),
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
name: "delete_pipeline_schedule_variable",
|
|
685
|
+
description: "Delete a variable from a pipeline schedule",
|
|
686
|
+
inputSchema: toJSONSchema(DeletePipelineScheduleVariableSchema),
|
|
687
|
+
},
|
|
628
688
|
{
|
|
629
689
|
name: "play_pipeline_job",
|
|
630
690
|
description: "Run a manual pipeline job",
|
|
@@ -664,6 +724,11 @@ export const allTools = [
|
|
|
664
724
|
description: "List merge requests (without project_id: user's MRs; with project_id: project MRs)",
|
|
665
725
|
inputSchema: toJSONSchema(ListMergeRequestsSchema),
|
|
666
726
|
},
|
|
727
|
+
{
|
|
728
|
+
name: "list_group_merge_requests",
|
|
729
|
+
description: "List merge requests across all projects of a group and its subgroups",
|
|
730
|
+
inputSchema: toJSONSchema(ListGroupMergeRequestsSchema),
|
|
731
|
+
},
|
|
667
732
|
{
|
|
668
733
|
name: "list_milestones",
|
|
669
734
|
description: "List milestones with filtering options",
|
|
@@ -1157,6 +1222,7 @@ export const readOnlyTools = new Set([
|
|
|
1157
1222
|
"list_todos",
|
|
1158
1223
|
"my_issues",
|
|
1159
1224
|
"list_merge_requests",
|
|
1225
|
+
"list_group_merge_requests",
|
|
1160
1226
|
"get_issue",
|
|
1161
1227
|
"list_issue_links",
|
|
1162
1228
|
"list_issue_discussions",
|
|
@@ -1170,6 +1236,10 @@ export const readOnlyTools = new Set([
|
|
|
1170
1236
|
"list_group_members",
|
|
1171
1237
|
"get_pipeline",
|
|
1172
1238
|
"list_pipelines",
|
|
1239
|
+
"list_pipeline_schedules",
|
|
1240
|
+
"get_pipeline_schedule",
|
|
1241
|
+
"list_pipeline_schedule_pipelines",
|
|
1242
|
+
"get_pipeline_schedule_variable",
|
|
1173
1243
|
"list_deployments",
|
|
1174
1244
|
"get_deployment",
|
|
1175
1245
|
"list_environments",
|
|
@@ -1276,6 +1346,8 @@ export const destructiveTools = new Set([
|
|
|
1276
1346
|
"push_files",
|
|
1277
1347
|
"delete_project_variable",
|
|
1278
1348
|
"delete_group_variable",
|
|
1349
|
+
"delete_pipeline_schedule",
|
|
1350
|
+
"delete_pipeline_schedule_variable",
|
|
1279
1351
|
"purge_dependency_proxy_cache",
|
|
1280
1352
|
]);
|
|
1281
1353
|
// Tools that permanently delete resources — blocked in "modify" permission mode.
|
|
@@ -1296,6 +1368,8 @@ export const deleteTools = new Set([
|
|
|
1296
1368
|
"delete_merge_request_note",
|
|
1297
1369
|
"delete_merge_request_note_emoji_reaction",
|
|
1298
1370
|
"delete_milestone",
|
|
1371
|
+
"delete_pipeline_schedule",
|
|
1372
|
+
"delete_pipeline_schedule_variable",
|
|
1299
1373
|
"delete_project_variable",
|
|
1300
1374
|
"delete_release",
|
|
1301
1375
|
"delete_tag",
|
|
@@ -1355,6 +1429,18 @@ export const pipelineToolNames = new Set([
|
|
|
1355
1429
|
"create_pipeline",
|
|
1356
1430
|
"retry_pipeline",
|
|
1357
1431
|
"cancel_pipeline",
|
|
1432
|
+
"list_pipeline_schedules",
|
|
1433
|
+
"get_pipeline_schedule",
|
|
1434
|
+
"list_pipeline_schedule_pipelines",
|
|
1435
|
+
"create_pipeline_schedule",
|
|
1436
|
+
"update_pipeline_schedule",
|
|
1437
|
+
"delete_pipeline_schedule",
|
|
1438
|
+
"play_pipeline_schedule",
|
|
1439
|
+
"take_ownership_pipeline_schedule",
|
|
1440
|
+
"get_pipeline_schedule_variable",
|
|
1441
|
+
"create_pipeline_schedule_variable",
|
|
1442
|
+
"update_pipeline_schedule_variable",
|
|
1443
|
+
"delete_pipeline_schedule_variable",
|
|
1358
1444
|
"play_pipeline_job",
|
|
1359
1445
|
"retry_pipeline_job",
|
|
1360
1446
|
"cancel_pipeline_job",
|
|
@@ -1385,6 +1471,7 @@ export const TOOLSET_DEFINITIONS = [
|
|
|
1385
1471
|
"update_merge_request",
|
|
1386
1472
|
"create_merge_request",
|
|
1387
1473
|
"list_merge_requests",
|
|
1474
|
+
"list_group_merge_requests",
|
|
1388
1475
|
"get_branch_diffs",
|
|
1389
1476
|
"mr_discussions",
|
|
1390
1477
|
"create_merge_request_note",
|
|
@@ -1536,6 +1623,18 @@ export const TOOLSET_DEFINITIONS = [
|
|
|
1536
1623
|
"create_pipeline",
|
|
1537
1624
|
"retry_pipeline",
|
|
1538
1625
|
"cancel_pipeline",
|
|
1626
|
+
"list_pipeline_schedules",
|
|
1627
|
+
"get_pipeline_schedule",
|
|
1628
|
+
"list_pipeline_schedule_pipelines",
|
|
1629
|
+
"create_pipeline_schedule",
|
|
1630
|
+
"update_pipeline_schedule",
|
|
1631
|
+
"delete_pipeline_schedule",
|
|
1632
|
+
"play_pipeline_schedule",
|
|
1633
|
+
"take_ownership_pipeline_schedule",
|
|
1634
|
+
"get_pipeline_schedule_variable",
|
|
1635
|
+
"create_pipeline_schedule_variable",
|
|
1636
|
+
"update_pipeline_schedule_variable",
|
|
1637
|
+
"delete_pipeline_schedule_variable",
|
|
1539
1638
|
"play_pipeline_job",
|
|
1540
1639
|
"retry_pipeline_job",
|
|
1541
1640
|
"cancel_pipeline_job",
|
|
@@ -34,6 +34,18 @@ const TOOL_GUIDANCE = {
|
|
|
34
34
|
discover_tools: "Use this when a needed opt-in category is not currently exposed; omit `category` to inspect available categories, then call it with a category to activate that group for the current session. It changes only the session's tool registry, returns the active-tool summary, and does not change GitLab data.",
|
|
35
35
|
health_check: "Use this to verify server connectivity and authentication before making GitLab requests; use `whoami` when the authenticated user's identity is the goal. It does not mutate GitLab state and returns server/authentication status plus GitLab version details when available.",
|
|
36
36
|
whoami: "Use this to identify the authenticated GitLab user; use `get_user` or `get_users` when looking up another user. It is read-only and returns the current user profile, while missing credentials or GitLab permission failures are reported as errors.",
|
|
37
|
+
list_pipeline_schedules: "Use this to survey a project's scheduled pipelines and their `cron`, `next_run_at`, and `active` state, optionally narrowed with `scope` to `active` or `inactive`; use `list_pipelines` for pipelines that already ran and `get_pipeline_schedule` when the schedule ID is known. The list response carries no `variables` — call `get_pipeline_schedule` for those — and includes `inputs` only for Maintainers, Owners, or the schedule owner. It is read-only and paginated, requires project access, and returns schedule records or an error when the project is missing or access is denied.",
|
|
38
|
+
get_pipeline_schedule: "Use this to inspect one schedule's cron, owner, last pipeline, variables, and inputs; use `list_pipeline_schedules` to discover schedule IDs and `list_pipeline_schedule_pipelines` for the pipelines it produced. It is read-only, returns `variables` and `inputs` only to Maintainers, Owners, or the schedule owner, and returns the schedule or an error when the schedule is missing or access is denied.",
|
|
39
|
+
list_pipeline_schedule_pipelines: "Use this to review the pipelines a schedule has actually triggered, for example to see whether the nightly run succeeded; use `get_pipeline` for one pipeline's full detail and `list_pipelines` for project-wide filtering. Narrow the result with `scope`, `status`, `sort`, and the `created_*` / `updated_*` date bounds. It is read-only and paginated, requires project access, and returns pipeline records or an error when the schedule is missing or access is denied.",
|
|
40
|
+
create_pipeline_schedule: "Use this to add a recurring pipeline for a branch or tag; use `create_pipeline` to run a pipeline once now and `update_pipeline_schedule` once the schedule exists. `ref` accepts a short name or a full ref such as `refs/heads/main`, which you should prefer when a branch and tag share a name; `cron_timezone` defaults to `UTC` and `active` defaults to true. It creates remote CI configuration, requires the Developer, Maintainer, or Owner role plus permission to run pipelines on the target ref, and returns the new schedule or a validation, cron, ref, or permission error.",
|
|
41
|
+
update_pipeline_schedule: "Use this to change an existing schedule's cron, ref, description, inputs, or `active` flag; call `take_ownership_pipeline_schedule` first when the schedule belongs to another user, because GitLab rejects edits from non-owners. Every field is optional and GitLab reschedules the next run after the update. It changes remote CI configuration, requires the Developer, Maintainer, or Owner role and ownership of the schedule, and returns the updated schedule or a validation, cron, or permission error.",
|
|
42
|
+
delete_pipeline_schedule: "Use this only after confirming the schedule with `get_pipeline_schedule`; use `update_pipeline_schedule` with `active: false` to pause a schedule instead of removing it. The operation permanently removes the schedule and its variables, requires the Developer, Maintainer, or Owner role and ownership of the schedule, and returns a confirmation or a missing-resource or permission error.",
|
|
43
|
+
play_pipeline_schedule: "Use this to run a schedule's pipeline immediately without waiting for its cron; it does not shift `next_run_at`, so the regular cadence continues unchanged, and it does not modify the schedule itself. Use `create_pipeline` when you want a one-off pipeline that is unrelated to a schedule. It creates a pipeline on GitLab, requires ownership of the schedule and permission to run pipelines on its ref, is rate-limited to once per minute per schedule, and returns GitLab's acknowledgement message or a permission, rate-limit, or missing-schedule error.",
|
|
44
|
+
take_ownership_pipeline_schedule: "Use this to transfer a schedule's ownership to the authenticated user, which is the prerequisite for `update_pipeline_schedule` or `delete_pipeline_schedule` on someone else's schedule; it does not otherwise change the cron, ref, or variables. It changes remote ownership, requires the Maintainer or Owner role, and returns the schedule with its new owner or a permission or missing-schedule error.",
|
|
45
|
+
get_pipeline_schedule_variable: "Use this to read one variable attached to a pipeline schedule by key; use `get_pipeline_schedule` to list every variable at once and `get_project_variable` for project-level CI/CD variables, which are a separate set. It is read-only, requires the Maintainer or Owner role or ownership of the schedule (GitLab 18.7 or later exposes this endpoint), and returns the variable or an error when the schedule, key, or permission is missing.",
|
|
46
|
+
create_pipeline_schedule_variable: "Use this to attach a new variable to a pipeline schedule so its scheduled pipelines receive it; use `update_pipeline_schedule_variable` when the key already exists and `create_project_variable` for a project-wide variable. `variable_type` defaults to `env_var` and `key` is limited to 255 characters matching /[a-zA-Z0-9_]+/. It creates remote CI configuration, requires the Developer, Maintainer, or Owner role and ownership of the schedule, and returns the new variable or a validation, duplicate-key, or permission error.",
|
|
47
|
+
update_pipeline_schedule_variable: "Use this to change the value or type of an existing pipeline schedule variable; use `create_pipeline_schedule_variable` when the key does not exist yet. It changes remote CI configuration that scheduled pipelines consume, requires the Developer, Maintainer, or Owner role and ownership of the schedule, and returns the updated variable or a missing-key, validation, or permission error.",
|
|
48
|
+
delete_pipeline_schedule_variable: "Use this only after confirming the key with `get_pipeline_schedule` or `get_pipeline_schedule_variable`; use `update_pipeline_schedule_variable` to change a value without removing it. The operation permanently removes the variable from the schedule so later scheduled pipelines no longer receive it, requires the Developer, Maintainer, or Owner role and ownership of the schedule, and returns a confirmation or a missing-key or permission error.",
|
|
37
49
|
};
|
|
38
50
|
const PARAMETER_GUIDANCE = "When `project_id` or `group_id` is accepted, provide the numeric ID or complete URL-encoded path described by the schema; use required identifiers and pagination fields exactly as documented.";
|
|
39
51
|
function ensureSentence(text) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zereight/mcp-gitlab",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.53",
|
|
4
4
|
"mcpName": "io.github.zereight/gitlab-mcp",
|
|
5
5
|
"description": "GitLab MCP server for projects, merge requests, issues, pipelines, wiki, releases, and more",
|
|
6
6
|
"keywords": [
|
|
@@ -68,7 +68,6 @@
|
|
|
68
68
|
"lint:fix": "eslint . --ext .ts --fix",
|
|
69
69
|
"release": "bash scripts/release.sh",
|
|
70
70
|
"release:mcp-registry": "bash scripts/publish_mcp_registry.sh",
|
|
71
|
-
"sync:alias-package": "node scripts/sync-alias-package-version.mjs",
|
|
72
71
|
"format": "prettier --write \"**/*.{js,ts,json,md}\"",
|
|
73
72
|
"format:check": "prettier --check \"**/*.{js,ts,json,md}\""
|
|
74
73
|
},
|