@zereight/mcp-gitlab 2.0.34 → 2.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +221 -89
- package/build/gitlab-client-pool.js +6 -0
- package/build/index.js +2129 -34
- package/build/oauth-proxy.js +257 -0
- package/build/schemas.js +455 -199
- package/build/test/mcp-oauth-tests.js +443 -0
- package/build/test/multi-server-test.js +16 -8
- package/build/test/test-geteffectiveprojectid.js +211 -202
- package/build/test/test-mr-file-diffs.js +251 -0
- package/build/test/test-search-code.js +272 -0
- package/build/test/test-toolset-filtering.js +22 -17
- package/build/test/utils/mock-gitlab-server.js +263 -163
- package/build/test/utils/server-launcher.js +45 -41
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ For detailed OAuth2 setup instructions, see [OAuth Setup Guide](./docs/oauth-set
|
|
|
34
34
|
|
|
35
35
|
Quick setup - first create a GitLab OAuth application:
|
|
36
36
|
|
|
37
|
-
1. Go to your GitLab instance: `
|
|
37
|
+
1. Go to your GitLab instance: `Admin area` → `Applications`
|
|
38
38
|
2. Create a new application with:
|
|
39
39
|
- **Name**: `GitLab MCP Server` (or any name you prefer)
|
|
40
40
|
- **Redirect URI**: `http://127.0.0.1:8888/callback`
|
|
@@ -357,17 +357,20 @@ docker run -i --rm \
|
|
|
357
357
|
- `USE_MILESTONE`: Legacy flag. Milestone features are now enabled by default. When set to 'true', ensures milestone-related tools are included even if the `milestones` toolset is not explicitly listed in `GITLAB_TOOLSETS`.
|
|
358
358
|
- `USE_PIPELINE`: Legacy flag. Pipeline features are now enabled by default. When set to 'true', ensures pipeline-related tools are included even if the `pipelines` toolset is not explicitly listed in `GITLAB_TOOLSETS`.
|
|
359
359
|
- `GITLAB_TOOLSETS`: Comma-separated list of toolset IDs to enable. When empty or unset, default toolsets are used. Set to `"all"` to enable every toolset. Available toolsets (default toolsets marked with `*`):
|
|
360
|
-
- `merge_requests`\* — MR operations, notes, discussions, draft notes, threads (
|
|
360
|
+
- `merge_requests`\* — MR operations, notes, discussions, draft notes, threads, versions, file diffs, conflicts (34 tools)
|
|
361
361
|
- `issues`\* — Issue CRUD, notes, links, discussions (14 tools)
|
|
362
362
|
- `repositories`\* — Search, create, file contents, push, fork, tree (7 tools)
|
|
363
363
|
- `branches`\* — Branch creation, commits, diffs (4 tools)
|
|
364
364
|
- `projects`\* — Project/namespace info, group projects, iterations (8 tools)
|
|
365
365
|
- `labels`\* — Label CRUD (5 tools)
|
|
366
|
-
- `pipelines`\* — Pipeline and
|
|
366
|
+
- `pipelines`\* — Pipeline, job, deployment, environment, and artifact operations (19 tools)
|
|
367
367
|
- `milestones`\* — Milestone CRUD, issues, MRs, burndown (9 tools)
|
|
368
|
-
- `wiki`\* — Wiki page CRUD (
|
|
368
|
+
- `wiki`\* — Wiki page CRUD for projects and groups (10 tools)
|
|
369
369
|
- `releases`\* — Release CRUD, evidence, asset download (7 tools)
|
|
370
370
|
- `users`\* — User info, events, markdown upload, attachments (5 tools)
|
|
371
|
+
- `workitems` — Work item CRUD via GraphQL, type conversion, statuses, custom fields, notes, timeline events (12 tools, opt-in)
|
|
372
|
+
- `webhooks` — Webhook listing and event inspection (3 tools, opt-in)
|
|
373
|
+
- `search` — Code search across projects, groups, or globally (3 tools, requires advanced search or exact code search enabled)
|
|
371
374
|
|
|
372
375
|
Note: `execute_graphql` is not in any toolset and must be added individually via `GITLAB_TOOLS` if needed.
|
|
373
376
|
Exposing arbitrary GraphQL would allow bypassing toolset boundaries (e.g. querying data that the user intentionally disabled via toolsets like wiki or pipelines), which is a security and permission-containment concern. Keeping `execute_graphql` out of all toolsets and requiring explicit opt-in via `GITLAB_TOOLS=execute_graphql` is intentional, to align with that principle rather than for backward compatibility.
|
|
@@ -494,6 +497,92 @@ The token is stored per session (identified by `mcp-session-id` header) and reus
|
|
|
494
497
|
- **Rate limiting:** Each session is limited to `MAX_REQUESTS_PER_MINUTE` requests per minute (default 60)
|
|
495
498
|
- **Capacity limit:** Server accepts up to `MAX_SESSIONS` concurrent sessions (default 1000)
|
|
496
499
|
|
|
500
|
+
### MCP OAuth Setup (Claude.ai Native OAuth)
|
|
501
|
+
|
|
502
|
+
When using `GITLAB_MCP_OAUTH=true`, the server acts as an OAuth proxy to your GitLab
|
|
503
|
+
instance. Claude.ai (and any MCP-spec-compliant client) handles the entire browser
|
|
504
|
+
authentication flow automatically — no manual Personal Access Token management needed.
|
|
505
|
+
|
|
506
|
+
**Prerequisites:**
|
|
507
|
+
|
|
508
|
+
A **pre-registered GitLab OAuth application** is required. GitLab restricts dynamically
|
|
509
|
+
registered (unverified) applications to the `mcp` scope, which is insufficient for API
|
|
510
|
+
calls (need `api` or `read_api`).
|
|
511
|
+
|
|
512
|
+
1. Go to your GitLab instance → **Admin Area > Applications** (instance-wide) or **User Settings > Applications** (personal)
|
|
513
|
+
2. Create a new application with:
|
|
514
|
+
- **Confidential**: unchecked
|
|
515
|
+
- **Scopes**: `api`, `read_api`, `read_user`
|
|
516
|
+
3. Save and copy the **Application ID** — this is your `GITLAB_OAUTH_APP_ID`
|
|
517
|
+
|
|
518
|
+
**How it works:**
|
|
519
|
+
|
|
520
|
+
1. User adds your MCP server URL in Claude.ai
|
|
521
|
+
2. Claude.ai discovers OAuth endpoints via `/.well-known/oauth-authorization-server`
|
|
522
|
+
3. Claude.ai registers itself via Dynamic Client Registration (`POST /register`) — handled locally by the MCP server (each client gets a virtual client ID)
|
|
523
|
+
4. Claude.ai redirects the user's browser to GitLab's login page using the pre-registered OAuth application
|
|
524
|
+
5. User authenticates; GitLab redirects back to `https://claude.ai/api/mcp/auth_callback`
|
|
525
|
+
6. Claude.ai sends `Authorization: Bearer <token>` on every MCP request
|
|
526
|
+
7. Server validates the token with GitLab and stores it per session
|
|
527
|
+
|
|
528
|
+
**Server setup:**
|
|
529
|
+
|
|
530
|
+
```bash
|
|
531
|
+
docker run -d \
|
|
532
|
+
-e STREAMABLE_HTTP=true \
|
|
533
|
+
-e GITLAB_MCP_OAUTH=true \
|
|
534
|
+
-e GITLAB_OAUTH_APP_ID="your-gitlab-oauth-app-client-id" \
|
|
535
|
+
-e GITLAB_API_URL="https://gitlab.example.com/api/v4" \
|
|
536
|
+
-e MCP_SERVER_URL="https://your-mcp-server.example.com" \
|
|
537
|
+
-p 3002:3002 \
|
|
538
|
+
zereight050/gitlab-mcp
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
For local development (HTTP allowed):
|
|
542
|
+
|
|
543
|
+
```bash
|
|
544
|
+
MCP_DANGEROUSLY_ALLOW_INSECURE_ISSUER_URL=true \
|
|
545
|
+
STREAMABLE_HTTP=true \
|
|
546
|
+
GITLAB_MCP_OAUTH=true \
|
|
547
|
+
GITLAB_OAUTH_APP_ID=your-gitlab-oauth-app-client-id \
|
|
548
|
+
MCP_SERVER_URL=http://localhost:3002 \
|
|
549
|
+
GITLAB_API_URL=https://gitlab.com/api/v4 \
|
|
550
|
+
node build/index.js
|
|
551
|
+
```
|
|
552
|
+
|
|
553
|
+
**Claude.ai configuration:**
|
|
554
|
+
|
|
555
|
+
```json
|
|
556
|
+
{
|
|
557
|
+
"mcpServers": {
|
|
558
|
+
"GitLab": {
|
|
559
|
+
"url": "https://your-mcp-server.example.com/mcp"
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
No `headers` field is needed — Claude.ai obtains the token via OAuth automatically.
|
|
566
|
+
|
|
567
|
+
**Environment variables:**
|
|
568
|
+
|
|
569
|
+
| Variable | Required | Description |
|
|
570
|
+
|---|---|---|
|
|
571
|
+
| `GITLAB_MCP_OAUTH` | Yes | Set to `true` to enable |
|
|
572
|
+
| `GITLAB_OAUTH_APP_ID` | Yes | Client ID of the pre-registered GitLab OAuth application |
|
|
573
|
+
| `MCP_SERVER_URL` | Yes | Public HTTPS URL of your MCP server |
|
|
574
|
+
| `GITLAB_API_URL` | Yes | Your GitLab instance API URL (e.g. `https://gitlab.com/api/v4`) |
|
|
575
|
+
| `STREAMABLE_HTTP` | Yes | Must be `true` (SSE is not supported) |
|
|
576
|
+
| `MCP_DANGEROUSLY_ALLOW_INSECURE_ISSUER_URL` | No | Set `true` for local HTTP dev only |
|
|
577
|
+
|
|
578
|
+
**Important Notes:**
|
|
579
|
+
|
|
580
|
+
- MCP OAuth **only works with Streamable HTTP transport** (`SSE=true` is incompatible)
|
|
581
|
+
- Each user session stores its own OAuth token — sessions are fully isolated
|
|
582
|
+
- Session timeout, rate limiting, and capacity limits apply identically to the
|
|
583
|
+
`REMOTE_AUTHORIZATION` mode (`SESSION_TIMEOUT_SECONDS`, `MAX_REQUESTS_PER_MINUTE`,
|
|
584
|
+
`MAX_SESSIONS`)
|
|
585
|
+
|
|
497
586
|
## Tools 🛠️
|
|
498
587
|
|
|
499
588
|
<details>
|
|
@@ -514,91 +603,134 @@ The token is stored per session (identified by `mcp-session-id` header) and reus
|
|
|
514
603
|
11. `get_merge_request` - Get details of a merge request with compact deployment summary, behind-count, commit addition summary, and approval summary (Either mergeRequestIid or branchName must be provided)
|
|
515
604
|
12. `get_merge_request_diffs` - Get the changes/diffs of a merge request (Either mergeRequestIid or branchName must be provided)
|
|
516
605
|
13. `list_merge_request_diffs` - List merge request diffs with pagination support (Either mergeRequestIid or branchName must be provided)
|
|
517
|
-
14. `
|
|
518
|
-
15. `
|
|
519
|
-
16. `
|
|
520
|
-
17. `
|
|
521
|
-
18. `
|
|
522
|
-
19. `
|
|
523
|
-
20. `
|
|
524
|
-
21. `
|
|
525
|
-
22. `
|
|
526
|
-
23. `
|
|
527
|
-
24. `
|
|
528
|
-
25. `
|
|
529
|
-
26. `
|
|
530
|
-
27. `
|
|
531
|
-
28. `
|
|
532
|
-
29. `
|
|
533
|
-
30. `
|
|
534
|
-
31. `
|
|
535
|
-
32. `
|
|
536
|
-
33. `
|
|
537
|
-
34. `
|
|
538
|
-
35. `
|
|
539
|
-
36. `
|
|
540
|
-
37. `
|
|
541
|
-
38. `
|
|
542
|
-
39. `
|
|
543
|
-
40. `
|
|
544
|
-
41. `
|
|
545
|
-
42. `
|
|
546
|
-
43. `
|
|
547
|
-
44. `
|
|
548
|
-
45. `
|
|
549
|
-
46. `
|
|
550
|
-
47. `
|
|
551
|
-
48. `
|
|
552
|
-
49. `
|
|
553
|
-
50. `
|
|
554
|
-
51. `
|
|
555
|
-
52. `
|
|
556
|
-
53. `
|
|
557
|
-
54. `
|
|
558
|
-
55. `
|
|
559
|
-
56. `
|
|
560
|
-
57. `
|
|
561
|
-
58. `
|
|
562
|
-
59. `
|
|
563
|
-
60. `
|
|
564
|
-
61. `
|
|
565
|
-
62. `
|
|
566
|
-
63. `
|
|
567
|
-
64. `
|
|
568
|
-
65. `
|
|
569
|
-
66. `
|
|
570
|
-
67. `
|
|
571
|
-
68. `
|
|
572
|
-
69. `
|
|
573
|
-
70. `
|
|
574
|
-
71. `
|
|
575
|
-
72. `
|
|
576
|
-
73. `
|
|
577
|
-
74. `
|
|
578
|
-
75. `
|
|
579
|
-
76. `
|
|
580
|
-
77. `
|
|
581
|
-
78. `
|
|
582
|
-
79. `
|
|
583
|
-
80. `
|
|
584
|
-
81. `
|
|
585
|
-
82. `
|
|
586
|
-
83. `
|
|
587
|
-
84. `
|
|
588
|
-
85. `
|
|
589
|
-
86. `
|
|
590
|
-
87. `
|
|
591
|
-
88. `
|
|
592
|
-
89. `
|
|
593
|
-
90. `
|
|
594
|
-
91. `
|
|
595
|
-
92. `
|
|
596
|
-
93. `
|
|
597
|
-
94. `
|
|
598
|
-
95. `
|
|
599
|
-
96. `
|
|
600
|
-
97. `
|
|
601
|
-
98. `
|
|
606
|
+
14. `get_merge_request_conflicts` - Get the conflicts of a merge request in a GitLab project
|
|
607
|
+
15. `list_merge_request_changed_files` - STEP 1 of code review workflow. Returns ONLY the list of changed file paths in a merge request — WITHOUT diff content. Call this first to get file paths, then call get_merge_request_file_diff with multiple files in a single batched call (recommended 3-5 files per call). Supports excluded_file_patterns filtering using regex. (Either mergeRequestIid or branchName must be provided)
|
|
608
|
+
16. `get_merge_request_file_diff` - STEP 2 of code review workflow. Get diffs for one or more files from a merge request. Call list_merge_request_changed_files first, then pass them as an array to fetch diffs efficiently. Batching multiple files (recommended 3-5) is supported. (Either mergeRequestIid or branchName must be provided)
|
|
609
|
+
17. `list_merge_request_versions` - List all versions of a merge request
|
|
610
|
+
18. `get_merge_request_version` - Get a specific version of a merge request
|
|
611
|
+
19. `get_branch_diffs` - Get the changes/diffs between two branches or commits in a GitLab project
|
|
612
|
+
20. `update_merge_request` - Update a merge request (Either mergeRequestIid or branchName must be provided)
|
|
613
|
+
21. `create_note` - Create a new note (comment) to an issue or merge request
|
|
614
|
+
22. `create_merge_request_thread` - Create a new thread on a merge request
|
|
615
|
+
23. `mr_discussions` - List discussion items for a merge request
|
|
616
|
+
24. `resolve_merge_request_thread` - Resolve a thread on a merge request
|
|
617
|
+
25. `update_merge_request_note` - Modify an existing merge request thread note
|
|
618
|
+
26. `create_merge_request_note` - Add a new note to an existing merge request thread
|
|
619
|
+
27. `delete_merge_request_discussion_note` - Delete a discussion note on a merge request
|
|
620
|
+
28. `update_merge_request_discussion_note` - Update a discussion note on a merge request
|
|
621
|
+
29. `create_merge_request_discussion_note` - Add a new discussion note to an existing merge request thread
|
|
622
|
+
30. `delete_merge_request_note` - Delete an existing merge request note
|
|
623
|
+
31. `get_merge_request_note` - Get a specific note for a merge request
|
|
624
|
+
32. `get_merge_request_notes` - List notes for a merge request
|
|
625
|
+
33. `get_draft_note` - Get a single draft note from a merge request
|
|
626
|
+
34. `list_draft_notes` - List draft notes for a merge request
|
|
627
|
+
35. `create_draft_note` - Create a draft note for a merge request
|
|
628
|
+
36. `update_draft_note` - Update an existing draft note
|
|
629
|
+
37. `delete_draft_note` - Delete a draft note
|
|
630
|
+
38. `publish_draft_note` - Publish a single draft note
|
|
631
|
+
39. `bulk_publish_draft_notes` - Publish all draft notes for a merge request
|
|
632
|
+
40. `list_merge_requests` - List merge requests globally or in a specific GitLab project with filtering options (project_id is now optional)
|
|
633
|
+
41. `approve_merge_request` - Approve a merge request (requires appropriate permissions)
|
|
634
|
+
42. `unapprove_merge_request` - Unapprove a previously approved merge request
|
|
635
|
+
43. `get_merge_request_approval_state` - Get merge request approval details including approvers (uses `approval_state` when available, otherwise falls back to `approvals`)
|
|
636
|
+
44. `update_issue_note` - Modify an existing issue thread note
|
|
637
|
+
45. `create_issue_note` - Add a new note to an existing issue thread
|
|
638
|
+
46. `list_issues` - List issues (default: created by current user only; use scope='all' for all accessible issues)
|
|
639
|
+
47. `my_issues` - List issues assigned to the authenticated user (defaults to open issues)
|
|
640
|
+
48. `get_issue` - Get details of a specific issue in a GitLab project
|
|
641
|
+
49. `update_issue` - Update an issue in a GitLab project
|
|
642
|
+
50. `delete_issue` - Delete an issue from a GitLab project
|
|
643
|
+
51. `list_issue_links` - List all issue links for a specific issue
|
|
644
|
+
52. `list_issue_discussions` - List discussions for an issue in a GitLab project
|
|
645
|
+
53. `get_issue_link` - Get a specific issue link
|
|
646
|
+
54. `create_issue_link` - Create an issue link between two issues
|
|
647
|
+
55. `delete_issue_link` - Delete an issue link
|
|
648
|
+
56. `list_namespaces` - List all namespaces available to the current user
|
|
649
|
+
57. `get_namespace` - Get details of a namespace by ID or path
|
|
650
|
+
58. `verify_namespace` - Verify if a namespace path exists
|
|
651
|
+
59. `get_project` - Get details of a specific project
|
|
652
|
+
60. `list_projects` - List projects accessible by the current user
|
|
653
|
+
61. `list_project_members` - List members of a GitLab project
|
|
654
|
+
62. `list_group_projects` - List projects in a GitLab group with filtering options
|
|
655
|
+
63. `list_group_iterations` - List group iterations with filtering options
|
|
656
|
+
64. `list_labels` - List labels for a project
|
|
657
|
+
65. `get_label` - Get a single label from a project
|
|
658
|
+
66. `create_label` - Create a new label in a project
|
|
659
|
+
67. `update_label` - Update an existing label in a project
|
|
660
|
+
68. `delete_label` - Delete a label from a project
|
|
661
|
+
69. `list_pipelines` - List pipelines in a GitLab project with filtering options
|
|
662
|
+
70. `get_pipeline` - Get details of a specific pipeline in a GitLab project
|
|
663
|
+
71. `list_pipeline_jobs` - List all jobs in a specific pipeline
|
|
664
|
+
72. `list_pipeline_trigger_jobs` - List all trigger jobs (bridges) in a specific pipeline that trigger downstream pipelines
|
|
665
|
+
73. `get_pipeline_job` - Get details of a GitLab pipeline job number
|
|
666
|
+
74. `get_pipeline_job_output` - Get the output/trace of a GitLab pipeline job with optional pagination to limit context window usage
|
|
667
|
+
75. `create_pipeline` - Create a new pipeline for a branch or tag
|
|
668
|
+
76. `retry_pipeline` - Retry a failed or canceled pipeline
|
|
669
|
+
77. `cancel_pipeline` - Cancel a running pipeline
|
|
670
|
+
78. `play_pipeline_job` - Run a manual pipeline job
|
|
671
|
+
79. `retry_pipeline_job` - Retry a failed or canceled pipeline job
|
|
672
|
+
80. `cancel_pipeline_job` - Cancel a running pipeline job
|
|
673
|
+
81. `list_deployments` - List deployments in a GitLab project with filtering options
|
|
674
|
+
82. `get_deployment` - Get details of a specific deployment in a GitLab project
|
|
675
|
+
83. `list_environments` - List environments in a GitLab project
|
|
676
|
+
84. `get_environment` - Get details of a specific environment in a GitLab project
|
|
677
|
+
85. `list_job_artifacts` - List artifact files in a job's artifacts archive. Returns file names, paths, types, and sizes
|
|
678
|
+
86. `download_job_artifacts` - Download the entire artifact archive (zip) for a job to a local path. Returns the saved file path
|
|
679
|
+
87. `get_job_artifact_file` - Get the content of a single file from a job's artifacts by its path within the archive
|
|
680
|
+
88. `list_milestones` - List milestones in a GitLab project with filtering options
|
|
681
|
+
89. `get_milestone` - Get details of a specific milestone
|
|
682
|
+
90. `create_milestone` - Create a new milestone in a GitLab project
|
|
683
|
+
91. `edit_milestone` - Edit an existing milestone in a GitLab project
|
|
684
|
+
92. `delete_milestone` - Delete a milestone from a GitLab project
|
|
685
|
+
93. `get_milestone_issue` - Get issues associated with a specific milestone
|
|
686
|
+
94. `get_milestone_merge_requests` - Get merge requests associated with a specific milestone
|
|
687
|
+
95. `promote_milestone` - Promote a milestone to the next stage
|
|
688
|
+
96. `get_milestone_burndown_events` - Get burndown events for a specific milestone
|
|
689
|
+
97. `list_wiki_pages` - List wiki pages in a GitLab project
|
|
690
|
+
98. `get_wiki_page` - Get details of a specific wiki page
|
|
691
|
+
99. `create_wiki_page` - Create a new wiki page in a GitLab project
|
|
692
|
+
100. `update_wiki_page` - Update an existing wiki page in a GitLab project
|
|
693
|
+
101. `delete_wiki_page` - Delete a wiki page from a GitLab project
|
|
694
|
+
102. `list_group_wiki_pages` - List wiki pages in a GitLab group
|
|
695
|
+
103. `get_group_wiki_page` - Get details of a specific group wiki page
|
|
696
|
+
104. `create_group_wiki_page` - Create a new wiki page in a GitLab group
|
|
697
|
+
105. `update_group_wiki_page` - Update an existing wiki page in a GitLab group
|
|
698
|
+
106. `delete_group_wiki_page` - Delete a wiki page from a GitLab group
|
|
699
|
+
107. `get_repository_tree` - Get the repository tree for a GitLab project (list files and directories)
|
|
700
|
+
108. `list_commits` - List repository commits with filtering options
|
|
701
|
+
109. `get_commit` - Get details of a specific commit
|
|
702
|
+
110. `get_commit_diff` - Get changes/diffs of a specific commit
|
|
703
|
+
111. `list_releases` - List all releases for a project
|
|
704
|
+
112. `get_release` - Get a release by tag name
|
|
705
|
+
113. `create_release` - Create a new release in a GitLab project
|
|
706
|
+
114. `update_release` - Update an existing release in a GitLab project
|
|
707
|
+
115. `delete_release` - Delete a release from a GitLab project (does not delete the associated tag)
|
|
708
|
+
116. `create_release_evidence` - Create release evidence for an existing release (GitLab Premium/Ultimate only)
|
|
709
|
+
117. `download_release_asset` - Download a release asset file by direct asset path
|
|
710
|
+
118. `get_users` - Get GitLab user details by usernames
|
|
711
|
+
119. `list_events` - List all events for the currently authenticated user
|
|
712
|
+
120. `get_project_events` - List all visible events for a specified project
|
|
713
|
+
121. `upload_markdown` - Upload a file to a GitLab project for use in markdown content
|
|
714
|
+
122. `download_attachment` - Download an uploaded file from a GitLab project by secret and filename
|
|
715
|
+
123. `get_work_item` - Get a single work item with full details including status, hierarchy (parent/children), type, labels, assignees, and all widgets
|
|
716
|
+
124. `list_work_items` - List work items in a project with filters (type, state, search, assignees, labels). Returns items with status and hierarchy info
|
|
717
|
+
125. `create_work_item` - Create a new work item (issue, task, incident, test_case, epic, key_result, objective, requirement, ticket). Supports setting title, description, labels, assignees, weight, parent, health status, start/due dates, milestone, and confidentiality
|
|
718
|
+
126. `update_work_item` - Update a work item. Can modify title, description, labels, assignees, weight, state, status, parent hierarchy, children, health status, start/due dates, milestone, confidentiality, linked items, and custom fields
|
|
719
|
+
127. `convert_work_item_type` - Convert a work item to a different type (e.g. issue to task, task to incident)
|
|
720
|
+
128. `list_work_item_statuses` - List available statuses for a work item type in a project. Requires GitLab Premium/Ultimate with configurable statuses
|
|
721
|
+
129. `list_custom_field_definitions` - List available custom field definitions for a work item type in a project. Returns field names, types, and IDs needed for setting custom fields via update_work_item
|
|
722
|
+
130. `move_work_item` - Move a work item (issue, task, etc.) to a different project. Uses GitLab GraphQL issueMove mutation
|
|
723
|
+
131. `list_work_item_notes` - List notes and discussions on a work item. Returns threaded discussions with author, body, timestamps, and system/internal flags
|
|
724
|
+
132. `create_work_item_note` - Add a note/comment to a work item. Supports Markdown, internal notes, and threaded replies
|
|
725
|
+
133. `get_timeline_events` - List timeline events for an incident. Returns chronological events with notes, timestamps, and tags
|
|
726
|
+
134. `create_timeline_event` - Create a timeline event on an incident. Supports tags: 'Start time', 'End time', 'Impact detected', 'Response initiated', 'Impact mitigated', 'Cause identified'
|
|
727
|
+
135. `list_webhooks` - List all configured webhooks for a GitLab project or group. Provide either project_id or group_id
|
|
728
|
+
136. `list_webhook_events` - List recent webhook events (past 7 days) for a project or group webhook. Use summary mode for overview, then get_webhook_event for full details
|
|
729
|
+
137. `get_webhook_event` - Get full details of a specific webhook event by ID, including request/response payloads
|
|
730
|
+
138. `search_code` - Search for code across all projects on the GitLab instance (requires advanced search or exact code search to be enabled)
|
|
731
|
+
139. `search_project_code` - Search for code within a specific GitLab project (requires advanced search or exact code search to be enabled)
|
|
732
|
+
140. `search_group_code` - Search for code within a specific GitLab group (requires advanced search or exact code search to be enabled)
|
|
733
|
+
141. `execute_graphql` - Execute a GitLab GraphQL query
|
|
602
734
|
<!-- TOOLS-END -->
|
|
603
735
|
|
|
604
736
|
</details>
|