gitlab-mcp-server
v4.0.0GitLab MCP Server with GraphQL discovery
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_achievements List Achievements
List group achievements with cursor pagination. Requires Achievements to be enabled on the GitLab instance. Optional recipient previews are a single page per achievement; each preview includes pageInfo.
| Parameter | Type | Description |
|---|---|---|
group * | string | Group full path, for example my-group/sub-group. |
after | string | Previous pageInfo.endCursor; repeat until hasNextPage is false. |
fetchAll | boolean | Fetch multiple pages up to first items, not an exhaustive scan. |
first | integer | |
ids | array | Optional achievement IDs to filter. |
includeRecipients | boolean | Include a page of active awards and recipient usernames for each achievement. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_project Project Details
Get detailed information about a specific GitLab project (read-only)
| Parameter | Type | Description |
|---|---|---|
fullPath * | string | Full path of the project (e.g., "group/project-name") |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_issues Project Issues
Get issues from a specific GitLab project (read-only)
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Full path of the project (e.g., "group/project-name") |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of issues to retrieve |
sort | string | Sort order (e.g., UPDATED_DESC, CREATED_DESC, CREATED_ASC). Defaults to UPDATED_DESC for recency. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_merge_requests Merge Requests
Get merge requests from a specific GitLab project (read-only)
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Full path of the project (e.g., "group/project-name") |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of merge requests to retrieve |
sort | string | Sort order (e.g., UPDATED_DESC, CREATED_DESC, CREATED_ASC). Defaults to UPDATED_DESC for recency. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
execute_custom_query Custom GraphQL Query
Execute custom GraphQL queries for complex filtering (e.g., issues with assigneeUsernames: ["user"], labelName: ["bug"]). Use this for structured filtering by assignee/author/labels when search tools return 0 results. Use pagination and limit complexity to avoid timeouts.
| Parameter | Type | Description |
|---|---|---|
query * | string | GraphQL query string. Example: query { issues(assigneeUsernames: ["cdhanlon"], state: opened, first: 50) { nodes { iid title webUrl } } } |
requiresWrite | boolean | Hint that this needs write access. Mutations are auto-detected and always write-gated regardless of this flag. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) | |
variables | object | Variables for the GraphQL query |
execute_rest_read Custom REST Read
Execute an arbitrary GET request against the GitLab REST API at /api/v4. Open-ended escape hatch for read endpoints not covered by a dedicated tool — e.g. /projects/:id/repository/files, /projects/:id/pipelines/:pipeline_id/test_report, /admin/*. Provide the path beginning with "/" (no host, no /api/v4 prefix) and an optional query object. For writes, use execute_rest_write.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path under /api/v4, beginning with "/" (e.g. "/projects/42/issues" or "/projects/foo%2Fbar/repository/commits/HEAD"). Must not include host, "/api/v4" prefix, or "?" query string. |
query | object | Query string parameters (e.g. { state: "opened", per_page: 20 }). Values are coerced to strings. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_available_queries Available Queries
Get list of available GraphQL queries and mutations from the GitLab schema
| Parameter | Type | Description |
|---|---|---|
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_merge_request_pipelines MR Pipelines
Get CI/CD pipelines for a merge request, including status, duration, and stages
| Parameter | Type | Description |
|---|---|---|
iid * | string | Merge request IID |
projectPath * | string | Full path of the project (e.g., "group/project-name") |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of pipelines to retrieve |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_pipeline_jobs Pipeline Jobs
Get jobs for a specific pipeline, including status, stage, duration, and retry/cancel info
| Parameter | Type | Description |
|---|---|---|
pipelineIid * | string | Pipeline IID |
projectPath * | string | Full path of the project (e.g., "group/project-name") |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of jobs to retrieve |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_merge_request_diffs MR Diffs
Get diff statistics for a merge request, including per-file additions/deletions and diff refs
| Parameter | Type | Description |
|---|---|---|
iid * | string | Merge request IID |
projectPath * | string | Full path of the project (e.g., "group/project-name") |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_merge_request_commits MR Commits
Get commits for a merge request (excluding merge commits), with commit count and details
| Parameter | Type | Description |
|---|---|---|
iid * | string | Merge request IID |
projectPath * | string | Full path of the project (e.g., "group/project-name") |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of commits to retrieve |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_notes Notes/Comments
Get notes (comments) on an issue or merge request, including system notes and inline MR comments
| Parameter | Type | Description |
|---|---|---|
iid * | string | Issue or merge request IID |
noteableType * | string | Type of item to get notes for |
projectPath * | string | Full path of the project (e.g., "group/project-name") |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of notes to retrieve |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_issue_context Get Issue Context
Bundle issue body, all notes (paginated up to maxNotes), related merge requests (mentioning), closing merge requests, linked issues (relates_to/blocks/is_blocked_by) into a single call. Use this instead of fanning out across get_issues + get_notes + search_merge_requests when investigating an issue.
| Parameter | Type | Description |
|---|---|---|
iid * | string | Issue IID (the number shown in the GitLab UI) |
projectPath * | string | Full project path (e.g. "my-group/my-project") |
includeSystemNotes | boolean | Include system-generated notes (label changes, assignment events). Default false. |
maxNotes | integer | Cap on notes fetched. Default 100. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_merge_request_context Get Merge Request Context
Bundle MR body, all notes (paginated up to maxNotes, filtered to non-system by default), commits, pipeline summary, reviewers with approval state, and issues this MR will close into a single call. Use this instead of fanning out across get_merge_requests + get_notes + get_merge_request_commits + get_merge_request_pipelines when investigating an MR.
| Parameter | Type | Description |
|---|---|---|
iid * | string | Merge request IID |
projectPath * | string | Full project path (e.g. "my-group/my-project") |
includeSystemNotes | boolean | Include system-generated notes. Default false. |
maxCommits | integer | Cap on commits fetched. Default 50. |
maxNotes | integer | Cap on notes fetched. Default 100. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
list_milestones Milestones
List milestones for a project or group with progress statistics (total/closed issue counts)
| Parameter | Type | Description |
|---|---|---|
fullPath * | string | Full path of the project or group (e.g., "group/project-name" or "group") |
isProject * | boolean | Whether the path is a project (true) or group (false) |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of milestones to retrieve |
includeAncestors | boolean | Include milestones from ancestor groups |
search | string | Search milestones by title |
state | string | Filter by state: active, closed (omit for all) |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
list_iterations Iterations
List iterations (sprints) for a group with cadence info. Requires GitLab Premium/Ultimate.
| Parameter | Type | Description |
|---|---|---|
groupPath * | string | Full path of the group (e.g., "my-group" or "parent/child-group") |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of iterations to retrieve |
state | string | Filter by state: upcoming, current, opened, closed (omit for all) |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_time_tracking Time Tracking
Get time tracking data (estimate, spent, timelogs) for an issue or merge request
| Parameter | Type | Description |
|---|---|---|
iid * | string | Issue or merge request IID |
projectPath * | string | Full path of the project (e.g., "group/project-name") |
resourceType * | string | Type of resource to get time tracking for |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
first | number | Number of timelog entries to retrieve |
includeTimelogs | boolean | Whether to include individual timelog entries |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_merge_request_reviewers MR Reviewers
Get approval and reviewer status for a merge request, including who approved and review states
| Parameter | Type | Description |
|---|---|---|
iid * | string | Merge request IID |
projectPath * | string | Full path of the project (e.g., "group/project-name") |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_project_statistics Project Statistics
Get aggregate project statistics: open issues/MRs, star/fork counts, storage sizes, commit count, last pipeline status, release count, and language breakdown
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Full path of the project (e.g., "group/project-name") |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
list_broadcast_messages List Broadcast Messages
List all GitLab broadcast messages (instance-wide announcements). Read-only.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (1-based) |
perPage | integer | Results per page |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_broadcast_message Get Broadcast Message
Get a specific GitLab broadcast message by ID.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Broadcast message ID |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_work_item Get Work Item
Fetch a GitLab work item (issue, task, epic, incident, OKR) by global ID. Returns the raw widgets array so epic hierarchy, health status, iteration, milestone, and dates are all visible. Accepts either a numeric id or a full gid (gid://gitlab/WorkItem/123).
| Parameter | Type | Description |
|---|---|---|
id * | string | Work item ID — numeric (e.g. "123") or full gid (e.g. "gid://gitlab/WorkItem/123") |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
list_work_items List Work Items
List work items within a namespace (group or project fullPath). Supports filtering by type (ISSUE, TASK, EPIC, INCIDENT, OBJECTIVE, KEY_RESULT) and state, plus cursor pagination and fetchAll.
| Parameter | Type | Description |
|---|---|---|
fullPath * | string | Namespace full path — group (e.g. "my-group") or project (e.g. "my-group/my-project") |
after | string | Cursor for next page |
fetchAll | boolean | Auto-paginate up to first items |
first | integer | Page size (default 20, capped by server maxPageSize) |
sort | string | Sort enum, e.g. UPDATED_DESC (default), CREATED_DESC, TITLE_ASC |
state | string | Filter by state. "all" returns every state. |
types | array | Filter by work item types. Omit for all types. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
list_user_events User Events
List a specific user's public GitLab activity feed by username or numeric ID. Use for tracking what a teammate has been working on.
| Parameter | Type | Description |
|---|---|---|
user * | string | Username (e.g. "alice") or numeric user ID |
action | string | Filter by action type |
after | string | Only events after this date (YYYY-MM-DD) |
before | string | Only events before this date (YYYY-MM-DD) |
page | integer | Page number (1-based) |
per_page | integer | Results per page |
sort | string | Sort order (default desc — newest first) |
target_type | string | Filter by target resource type |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
list_project_events Project Events
List activity events for a single GitLab project — commits pushed, MRs opened/merged, issues touched, notes added. Accepts project full path or numeric ID.
| Parameter | Type | Description |
|---|---|---|
project * | string | Project full path (e.g. "group/my-project") or numeric project ID |
action | string | Filter by action type |
after | string | Only events after this date (YYYY-MM-DD) |
before | string | Only events before this date (YYYY-MM-DD) |
page | integer | Page number (1-based) |
per_page | integer | Results per page |
sort | string | Sort order (default desc — newest first) |
target_type | string | Filter by target resource type |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
list_my_events My Events
List the authenticated user's GitLab activity feed — pushes, MRs, comments, approvals, issue actions. Primary tool for "what did I just do". Requires user authentication.
| Parameter | Type | Description |
|---|---|---|
action | string | Filter by action type |
after | string | Only events after this date (YYYY-MM-DD) |
before | string | Only events before this date (YYYY-MM-DD) |
page | integer | Page number (1-based) |
per_page | integer | Results per page |
scope | string | Set to "all" to include events from any project you have access to, not just your own authored events |
sort | string | Sort order (default desc — newest first) |
target_type | string | Filter by target resource type |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
analytics_user_summary User Activity Summary
Aggregated activity summary for a user over a time window — totals by action type (pushes, MRs opened/merged, comments, approvals), breakdown by project and by day. Use this instead of list_user_events when you want counts rather than a raw event feed.
| Parameter | Type | Description |
|---|---|---|
since * | string | ISO date/datetime, inclusive lower bound (e.g. "2026-03-01" or "2026-03-01T00:00:00Z") |
user * | string | Username (e.g. "alice") or numeric user ID |
maxEvents | integer | Cap on events fetched. Defaults to 2000; returned envelope has truncated:true if reached. |
until | string | ISO date/datetime, inclusive upper bound. Defaults to now. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
analytics_group_summary Group Activity Summary
Aggregated activity summary for an entire group (optionally including subgroups) over a time window — totals by action type (pushes, MRs opened/merged, comments, approvals), with breakdowns by project, by contributor, and by day. Use this to answer "what did this team do" without fanning out across list_project_events yourself.
| Parameter | Type | Description |
|---|---|---|
group * | string | Group full path (e.g. "my-group" or "my-group/sub-group") |
since * | string | ISO date/datetime, inclusive lower bound (e.g. "2026-04-01" or "2026-04-01T00:00:00Z") |
includeSubgroups | boolean | Recurse into subgroup projects. Defaults to true. |
maxEvents | integer | Global cap on events fetched across all projects. Defaults to 2000; envelope flags truncated:true if reached. |
maxProjects | integer | Cap on projects scanned. Defaults to 500. |
topContributors | integer | Cap on the byUser[] list (sorted by event count desc). Default 10. |
until | string | ISO date/datetime, inclusive upper bound. Defaults to now. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
analytics_review_bottlenecks Review Bottlenecks
Aggregate open (non-draft) merge requests across a group or project to surface review bottlenecks. Returns per-reviewer queue stats, age-bucket histogram, and the stalest MRs by updatedAt. MRs with no reviewer assigned are bucketed under "(unassigned)".
| Parameter | Type | Description |
|---|---|---|
group | string | Group full path (e.g. "my-group"). Mutually exclusive with `project`. |
maxMRs | integer | Hard cap on MRs scanned. Envelope flags `truncated:true` if reached. |
project | string | Project full path (e.g. "my-group/my-project"). Mutually exclusive with `group`. |
staleAfterDays | integer | An MR counts as "stale" if its updatedAt is older than this many days. Default 3. |
topStalest | integer | Cap on the stalest[] list. Default 20. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_current_user Current User
Get information about the current authenticated GitLab user
| Parameter | Type | Description |
|---|---|---|
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_projects List Projects
List projects accessible to the user (requires authentication to see private projects)
| Parameter | Type | Description |
|---|---|---|
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of projects to retrieve |
sort | string | GitLab project sort string (e.g., latest_activity_desc, created_desc, name_asc, stars_desc). Defaults to latest_activity_desc for recency. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
create_achievement Create Achievement
Create a group achievement with name and optional description. Requires group Maintainer/Owner and enabled Achievements. Set avatars in GitLab UI; file uploads are not supported by this tool.
| Parameter | Type | Description |
|---|---|---|
group * | string | Group full path, for example my-group/sub-group. |
name * | string | |
description | string | |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
update_achievement Update Achievement
Update an achievement name or description. Requires group Maintainer/Owner. Provide at least one changed field; an empty description clears it.
| Parameter | Type | Description |
|---|---|---|
achievementId * | string | Numeric achievement ID or gid://gitlab/Achievements::Achievement/<id>. |
description | string | |
name | string | |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
delete_achievement Delete Achievement
Delete a group achievement and every related awarded or revoked instance. Destructive; requires group Maintainer/Owner.
| Parameter | Type | Description |
|---|---|---|
achievementId * | string | Numeric achievement ID or gid://gitlab/Achievements::Achievement/<id>. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
award_achievement Award Achievement
Award an achievement to a GitLab username. Multiple awards to the same user are allowed. Requires group Maintainer/Owner. GitLab notifies the recipient, who may need to accept before it appears on their profile.
| Parameter | Type | Description |
|---|---|---|
achievementId * | string | Numeric achievement ID or gid://gitlab/Achievements::Achievement/<id>. |
username * | string | |
awardMessage | string | Optional award message, supported on instances exposing this mutation field. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
revoke_achievement Revoke Achievement
Revoke one awarded achievement. Provide either userAchievementId, or group + achievementId + username. Username lookup scans recipient pages and rejects ambiguous repeated awards; use a specific userAchievementId in that case. Requires group Maintainer/Owner.
| Parameter | Type | Description |
|---|---|---|
achievementId | string | Numeric achievement ID or gid://gitlab/Achievements::Achievement/<id>. |
group | string | Group full path, for example my-group/sub-group. |
userAchievementId | string | Numeric award ID or gid://gitlab/Achievements::UserAchievement/<id>. This identifies one award, not the achievement definition. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) | |
username | string |
execute_rest_write Custom REST Write
Execute an arbitrary POST/PUT/PATCH/DELETE request against the GitLab REST API at /api/v4. Open-ended escape hatch for write endpoints not covered by a dedicated tool. Destructive — DELETE is permitted, so check the path before invoking. For reads, use execute_rest_read.
| Parameter | Type | Description |
|---|---|---|
method * | string | HTTP method. DELETE is destructive and not reversible. |
path * | string | Path under /api/v4, beginning with "/" (e.g. "/projects/42/issues" or "/projects/foo%2Fbar/merge_requests/3/merge"). Must not include host, "/api/v4" prefix, or "?" query string. |
body | Request body as a JSON value or JSON-encoded string. Sent as application/json; nested objects are preserved. Omit for endpoints that don't take a body (most DELETE / some PUT). | |
query | object | Query string parameters. Most write endpoints take their args in the body, but a few mix. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
create_issue Create Issue
Create a new issue in a GitLab project (requires user authentication with write permissions)
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Full path of the project (e.g., "group/project-name") |
title * | string | Title of the issue |
description | string | Description of the issue |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
create_merge_request Create Merge Request
Create a new merge request in a GitLab project (requires user authentication with write permissions)
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Full path of the project (e.g., "group/project-name") |
sourceBranch * | string | Source branch name |
targetBranch * | string | Target branch name |
title * | string | Title of the merge request |
description | string | Description of the merge request |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
create_note Create Note
Add a comment/note to an issue or merge request (requires user authentication)
| Parameter | Type | Description |
|---|---|---|
body * | string | Note body (supports Markdown) |
iid * | string | Issue or merge request IID |
noteableType * | string | Type of item to add a note to |
projectPath * | string | Full path of the project (e.g., "group/project-name") |
internal | boolean | Whether the note is internal/confidential (only visible to project members) |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
delete_note Delete Note
Delete a comment (note) on a GitLab issue or merge request. Requires a user token belonging to the note author or a maintainer.
| Parameter | Type | Description |
|---|---|---|
noteId * | string | Note ID — either the bare numeric ID or the full GraphQL gid (gid://gitlab/Note/123) |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
update_note Update Note
Edit the body of an existing comment (note) on a GitLab issue or merge request. Requires a user token belonging to the note author.
| Parameter | Type | Description |
|---|---|---|
body * | string | New note body (Markdown supported) |
noteId * | string | Note ID — either the bare numeric ID or the full GraphQL gid (gid://gitlab/Note/123) |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
manage_pipeline Manage Pipeline
Retry or cancel a CI/CD pipeline (requires user authentication with write permissions)
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform on the pipeline |
pipelineIid * | string | Pipeline IID |
projectPath * | string | Full path of the project (e.g., "group/project-name") |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
create_broadcast_message Create Broadcast Message
Create a GitLab broadcast message. Requires administrator privileges on the GitLab instance.
| Parameter | Type | Description |
|---|---|---|
message * | string | Message text to display |
broadcast_type | string | Broadcast type: "banner" or "notification" |
color | string | Background color in hex format, e.g. "#E75E40" |
dismissable | boolean | Whether users can dismiss the broadcast message |
ends_at | string | ISO 8601 timestamp when the message ends |
font | string | Foreground (font) color in hex format |
starts_at | string | ISO 8601 timestamp when the message starts |
target_access_levels | array | Access levels to target: 10=Guest, 20=Reporter, 30=Developer, 40=Maintainer, 50=Owner |
target_path | string | Path glob for pages where the message should appear |
theme | string | Theme name (GitLab 16.9+), e.g. "indigo", "red" |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
update_broadcast_message Update Broadcast Message
Update an existing GitLab broadcast message. Requires administrator privileges.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Broadcast message ID |
broadcast_type | string | Broadcast type: "banner" or "notification" |
color | string | Background color in hex format, e.g. "#E75E40" |
dismissable | boolean | Whether users can dismiss the broadcast message |
ends_at | string | ISO 8601 timestamp when the message ends |
font | string | Foreground (font) color in hex format |
message | string | Message text to display |
starts_at | string | ISO 8601 timestamp when the message starts |
target_access_levels | array | Access levels to target: 10=Guest, 20=Reporter, 30=Developer, 40=Maintainer, 50=Owner |
target_path | string | Path glob for pages where the message should appear |
theme | string | Theme name (GitLab 16.9+), e.g. "indigo", "red" |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
delete_broadcast_message Delete Broadcast Message
Delete a GitLab broadcast message by ID. Requires administrator privileges.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Broadcast message ID |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
mark_todo_done Mark Todo Done
Mark a single to-do item as done for the authenticated user. Requires the todo's ID (numeric or full gid://gitlab/Todo/N form) from list_my_todos.
| Parameter | Type | Description |
|---|---|---|
todoId * | string | Todo ID — accepts a bare numeric ID ("42") or a full gid ("gid://gitlab/Todo/42") |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
mark_all_todos_done Mark All Todos Done
Mark pending to-do items as done for the authenticated user. With no arguments, marks every pending todo. Optional scoping args (groupPath, projectPath, action, type, authorIds, targetId) narrow which todos are marked. Irreversible without per-item restore_todo calls. Returns the actual list of updated todos.
| Parameter | Type | Description |
|---|---|---|
action | string | Limit to todos with this action (e.g. assigned, mentioned, review_requested). |
authorIds | array | Limit to todos authored by these users. Numeric IDs or gid://gitlab/User/N strings. |
groupPath | string | Limit to a group by full path. Resolved to a node GID server-side. |
projectPath | string | Limit to a project by full path. Resolved to a node GID server-side. |
targetId | string | Limit to todos for a single target (e.g. a specific issue/MR GID). |
type | string | Limit to todos targeting this type (e.g. Issue, MergeRequest, Epic). |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
restore_todo Restore Todo
Restore a previously-marked-done to-do item back to pending state. Accepts the todo's ID (numeric or full gid://gitlab/Todo/N form).
| Parameter | Type | Description |
|---|---|---|
todoId * | string | Todo ID — accepts a bare numeric ID ("42") or a full gid ("gid://gitlab/Todo/42") |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
update_issue Update Issue
Update an issue (title, description, assignees, labels, due date) with schema-aware mutations
| Parameter | Type | Description |
|---|---|---|
iid * | string | Issue IID (internal ID shown in the URL) |
projectPath * | string | Full path of the project (e.g., "group/project-name") |
assigneeUsernames | array | |
description | string | |
dueDate | string | YYYY-MM-DD |
labelNames | array | |
title | string | |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
delete_issue Delete Issue
Delete a GitLab issue. Requires a user token with permission to delete issues in the project (typically the issue author or a maintainer).
| Parameter | Type | Description |
|---|---|---|
iid * | string | Issue IID (the number shown in the GitLab UI, e.g. "42") |
projectPath * | string | Full path of the project (e.g., "group/project-name") |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
update_merge_request Update Merge Request
Update a merge request (title, description, assignees, reviewers, labels) with schema-aware mutations
| Parameter | Type | Description |
|---|---|---|
iid * | string | Merge Request IID (internal ID shown in the URL) |
projectPath * | string | Full path of the project (e.g., "group/project-name") |
assigneeUsernames | array | |
description | string | |
labelNames | array | |
reviewerUsernames | array | |
title | string | |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
resolve_path Resolve Path
Resolve a GitLab path to either a project or group and list group projects when applicable
| Parameter | Type | Description |
|---|---|---|
fullPath * | string | Project or group full path (e.g., "group/subgroup/project") |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
first | number | Number of items to retrieve when listing group projects |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_group_projects Group Projects
List projects inside a GitLab group (optionally filter by search term)
| Parameter | Type | Description |
|---|---|---|
fullPath * | string | Group full path (e.g., "group/subgroup") |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
first | number | Number of projects to retrieve |
searchTerm | string | Optional search term to filter group projects |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_type_fields GraphQL Type Fields
List available fields on a GraphQL type using introspected schema (requires schema to be introspected)
| Parameter | Type | Description |
|---|---|---|
typeName * | string | GraphQL type name (e.g., "Project") |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
search_gitlab Search GitLab
Text search across GitLab projects and issues (Note: Does not support filtering by assignee/labels - use search_issues for that. MRs cannot be searched globally - use search_merge_requests with username)
| Parameter | Type | Description |
|---|---|---|
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages per category up to first items each (default 20, max 100), starting at after — NOT exhaustive. Each category returns its own pageInfo. Use search_projects and search_issues to c… |
first | number | Number of results to retrieve per category |
searchTerm | string | Search term (leave empty for recent activity) |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
search_projects Search Projects
Search for GitLab projects by name or description
| Parameter | Type | Description |
|---|---|---|
searchTerm * | string | Search term to find projects by name or description |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of projects to retrieve |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
search_issues Search Issues
Search for issues with text search and/or structured filtering (assignee, author, labels, state). For filtering by assignee/author/labels without text search, leave searchTerm empty.
| Parameter | Type | Description |
|---|---|---|
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
assigneeUsernames | array | Filter by assignee usernames (e.g., ["cdhanlon", "jsmith"]) |
authorUsername | string | Filter by author username (e.g., "cdhanlon") |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of issues to retrieve |
labelNames | array | Filter by label names (e.g., ["Priority::High", "bug"]) |
projectPath | string | Optional project path (e.g., "group/project"). Omit for global search. |
searchTerm | string | Text search term (optional - leave empty to filter by assignee/author/labels only) |
sort | string | Sort order (e.g., UPDATED_DESC, CREATED_DESC, CREATED_ASC). Defaults to UPDATED_DESC for recency. |
state | string | Filter by issue state (opened, closed, all) |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
search_merge_requests Search Merge Requests
Search merge requests by username (supports "username", "author:username", "assignee:username") or search within a specific project. Note: GitLab does not support global text search for MRs - use projectPath for text searches.
| Parameter | Type | Description |
|---|---|---|
searchTerm * | string | Username (e.g., "cdhanlon", "author:username", "assignee:username") or text when projectPath provided |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of merge requests to retrieve |
projectPath | string | Project path (e.g., "group/project"). Required for text searches, optional for username searches. |
sort | string | Sort order (e.g., UPDATED_DESC, CREATED_DESC, CREATED_ASC). Defaults to UPDATED_DESC for recency. |
state | string | Filter by merge request state (opened, closed, merged, all) |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_user_issues User Issues
Get all issues assigned to a specific user - uses proper GraphQL filtering for reliable results
| Parameter | Type | Description |
|---|---|---|
username * | string | Username to find issues for (e.g., "cdhanlon") |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of issues to retrieve |
projectPath | string | Optional: limit search to a specific project |
state | string | Filter by issue state (opened, closed, all) |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_user_merge_requests User Merge Requests
Get merge requests for a specific user (as author or assignee) - uses proper GraphQL filtering
| Parameter | Type | Description |
|---|---|---|
username * | string | Username to find merge requests for (e.g., "cdhanlon") |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of merge requests to retrieve |
projectPath | string | Optional: limit search to a specific project |
role | string | Whether to find MRs authored by or assigned to the user |
state | string | Filter by MR state (opened, closed, merged, all) |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
list_my_todos My Todos
List the authenticated user's GitLab to-do items (notifications about issues, MRs, mentions, reviews requested, etc.). Filter by state, action, target type, or group/project. Requires user authentication.
| Parameter | Type | Description |
|---|---|---|
action | string | Filter by todo action — e.g. assigned, mentioned, build_failed, marked, approval_required, unmergeable, directly_addressed, review_requested |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
authorIds | array | Filter by todo authors. Accepts numeric user IDs or full gid://gitlab/User/N strings. |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of todos to retrieve |
groupPath | string | Limit to a group by full path (e.g. "my-org/platform"). Resolved to a node GID server-side before filtering. |
isSnoozed | boolean | Filter by snooze state: true → only snoozed, false → only non-snoozed. |
projectPath | string | Limit to a project by full path (e.g. "my-org/my-repo"). Resolved to a node GID server-side before filtering. |
sort | string | Sort order — e.g. CREATED_DESC (default on server), CREATED_ASC, UPDATED_DESC, UPDATED_ASC. |
state | string | Filter by todo state: pending (default), done, or all |
type | string | Filter by target type — e.g. Issue, MergeRequest, Epic, Commit, DesignManagement::Design, AlertManagement::Alert |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
search_users Search Users
Search for GitLab users by username or name - useful for finding team members or contributors
| Parameter | Type | Description |
|---|---|---|
searchTerm * | string | Search term to find users by username or name |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of users to retrieve |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
search_groups Search Groups
Search for GitLab groups and organizations
| Parameter | Type | Description |
|---|---|---|
searchTerm * | string | Search term to find groups by name or path |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of groups to retrieve |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
search_labels Search Labels
Search for labels in a project or group, with optional text filtering
| Parameter | Type | Description |
|---|---|---|
fullPath * | string | Full path of the project or group (e.g., "group/project-name" or "group") |
isProject * | boolean | Whether the path is a project (true) or group (false) |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of labels to retrieve |
search | string | Optional search term to filter labels |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
search_notes Search Notes (Comments)
Full-text search across issue and merge request comments. Scope can be global, a project, or a group. NOTE: on self-hosted GitLab, the "notes" search scope requires Advanced Search (Elasticsearch) to be enabled — without it, this endpoint returns an error. search_gitlab does NOT search note bodies; this tool does.
| Parameter | Type | Description |
|---|---|---|
search * | string | Search term. Trimmed; empty rejected. |
groupPath | string | Required when scope=group. Full group path. |
page | integer | Page number. Default 1. |
perPage | integer | Results per page. Default 20. |
projectPath | string | Required when scope=project. Full project path. |
scope | string | Search scope. Default global. |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
browse_repository Browse Repository
Browse repository files and folders - essential for exploring codebase structure
| Parameter | Type | Description |
|---|---|---|
projectPath * | string | Full path of the project (e.g., "group/project-name") |
path | string | Directory path to browse (empty for root) |
ref | string | Git reference (branch, tag, or commit SHA) |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
get_file_content File Content
Get the content of a specific file from a GitLab repository - crucial for code analysis
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Path to the file within the repository (e.g., "src/main.js") |
projectPath * | string | Full path of the project (e.g., "group/project-name") |
ref | string | Git reference (branch, tag, or commit SHA) |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |
list_group_members Group Members
List group members with access levels, optionally filtered by search term
| Parameter | Type | Description |
|---|---|---|
groupPath * | string | Full path of the group (e.g., "my-group" or "parent/child-group") |
after | string | Pagination cursor. To fetch the next page, pass the previous response pageInfo.endCursor here and repeat until pageInfo.hasNextPage is false. Paginating this way is the reliable path to complete resul… |
fetchAll | boolean | Fetch multiple pages in one call, up to "first" items total (max 100) — NOT exhaustive. For complete results or accurate counts, leave this false and paginate via after (pageInfo.endCursor). |
first | number | Number of members to retrieve |
search | string | Optional search term to filter members by name or username |
userCredentials | Your GitLab credentials (optional — falls back to the configured env token if not provided) |