gitlab-mcp-server

v4.0.0
@ttpears/gitlab-mcp-server Checked 4 hours ago Published 1 month ago

GitLab 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.

ParameterTypeDescription
group *stringGroup full path, for example my-group/sub-group.
afterstringPrevious pageInfo.endCursor; repeat until hasNextPage is false.
fetchAllbooleanFetch multiple pages up to first items, not an exhaustive scan.
firstinteger
idsarrayOptional achievement IDs to filter.
includeRecipientsbooleanInclude a page of active awards and recipient usernames for each achievement.
userCredentialsYour 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)

ParameterTypeDescription
fullPath *stringFull path of the project (e.g., "group/project-name")
userCredentialsYour 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)

ParameterTypeDescription
projectPath *stringFull path of the project (e.g., "group/project-name")
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of issues to retrieve
sortstringSort order (e.g., UPDATED_DESC, CREATED_DESC, CREATED_ASC). Defaults to UPDATED_DESC for recency.
userCredentialsYour 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)

ParameterTypeDescription
projectPath *stringFull path of the project (e.g., "group/project-name")
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of merge requests to retrieve
sortstringSort order (e.g., UPDATED_DESC, CREATED_DESC, CREATED_ASC). Defaults to UPDATED_DESC for recency.
userCredentialsYour 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.

ParameterTypeDescription
query *stringGraphQL query string. Example: query { issues(assigneeUsernames: ["cdhanlon"], state: opened, first: 50) { nodes { iid title webUrl } } }
requiresWritebooleanHint that this needs write access. Mutations are auto-detected and always write-gated regardless of this flag.
userCredentialsYour GitLab credentials (optional — falls back to the configured env token if not provided)
variablesobjectVariables 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.

ParameterTypeDescription
path *stringPath 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.
queryobjectQuery string parameters (e.g. { state: "opened", per_page: 20 }). Values are coerced to strings.
userCredentialsYour 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

ParameterTypeDescription
userCredentialsYour 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

ParameterTypeDescription
iid *stringMerge request IID
projectPath *stringFull path of the project (e.g., "group/project-name")
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of pipelines to retrieve
userCredentialsYour 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

ParameterTypeDescription
pipelineIid *stringPipeline IID
projectPath *stringFull path of the project (e.g., "group/project-name")
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of jobs to retrieve
userCredentialsYour 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

ParameterTypeDescription
iid *stringMerge request IID
projectPath *stringFull path of the project (e.g., "group/project-name")
userCredentialsYour 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

ParameterTypeDescription
iid *stringMerge request IID
projectPath *stringFull path of the project (e.g., "group/project-name")
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of commits to retrieve
userCredentialsYour 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

ParameterTypeDescription
iid *stringIssue or merge request IID
noteableType *stringType of item to get notes for
projectPath *stringFull path of the project (e.g., "group/project-name")
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of notes to retrieve
userCredentialsYour 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.

ParameterTypeDescription
iid *stringIssue IID (the number shown in the GitLab UI)
projectPath *stringFull project path (e.g. "my-group/my-project")
includeSystemNotesbooleanInclude system-generated notes (label changes, assignment events). Default false.
maxNotesintegerCap on notes fetched. Default 100.
userCredentialsYour 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.

ParameterTypeDescription
iid *stringMerge request IID
projectPath *stringFull project path (e.g. "my-group/my-project")
includeSystemNotesbooleanInclude system-generated notes. Default false.
maxCommitsintegerCap on commits fetched. Default 50.
maxNotesintegerCap on notes fetched. Default 100.
userCredentialsYour 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)

ParameterTypeDescription
fullPath *stringFull path of the project or group (e.g., "group/project-name" or "group")
isProject *booleanWhether the path is a project (true) or group (false)
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of milestones to retrieve
includeAncestorsbooleanInclude milestones from ancestor groups
searchstringSearch milestones by title
statestringFilter by state: active, closed (omit for all)
userCredentialsYour 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.

ParameterTypeDescription
groupPath *stringFull path of the group (e.g., "my-group" or "parent/child-group")
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of iterations to retrieve
statestringFilter by state: upcoming, current, opened, closed (omit for all)
userCredentialsYour 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

ParameterTypeDescription
iid *stringIssue or merge request IID
projectPath *stringFull path of the project (e.g., "group/project-name")
resourceType *stringType of resource to get time tracking for
afterstringPagination 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…
firstnumberNumber of timelog entries to retrieve
includeTimelogsbooleanWhether to include individual timelog entries
userCredentialsYour 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

ParameterTypeDescription
iid *stringMerge request IID
projectPath *stringFull path of the project (e.g., "group/project-name")
userCredentialsYour 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

ParameterTypeDescription
projectPath *stringFull path of the project (e.g., "group/project-name")
userCredentialsYour 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.

ParameterTypeDescription
pageintegerPage number (1-based)
perPageintegerResults per page
userCredentialsYour 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.

ParameterTypeDescription
id *integerBroadcast message ID
userCredentialsYour 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).

ParameterTypeDescription
id *stringWork item ID — numeric (e.g. "123") or full gid (e.g. "gid://gitlab/WorkItem/123")
userCredentialsYour 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.

ParameterTypeDescription
fullPath *stringNamespace full path — group (e.g. "my-group") or project (e.g. "my-group/my-project")
afterstringCursor for next page
fetchAllbooleanAuto-paginate up to first items
firstintegerPage size (default 20, capped by server maxPageSize)
sortstringSort enum, e.g. UPDATED_DESC (default), CREATED_DESC, TITLE_ASC
statestringFilter by state. "all" returns every state.
typesarrayFilter by work item types. Omit for all types.
userCredentialsYour 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.

ParameterTypeDescription
user *stringUsername (e.g. "alice") or numeric user ID
actionstringFilter by action type
afterstringOnly events after this date (YYYY-MM-DD)
beforestringOnly events before this date (YYYY-MM-DD)
pageintegerPage number (1-based)
per_pageintegerResults per page
sortstringSort order (default desc — newest first)
target_typestringFilter by target resource type
userCredentialsYour 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.

ParameterTypeDescription
project *stringProject full path (e.g. "group/my-project") or numeric project ID
actionstringFilter by action type
afterstringOnly events after this date (YYYY-MM-DD)
beforestringOnly events before this date (YYYY-MM-DD)
pageintegerPage number (1-based)
per_pageintegerResults per page
sortstringSort order (default desc — newest first)
target_typestringFilter by target resource type
userCredentialsYour 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.

ParameterTypeDescription
actionstringFilter by action type
afterstringOnly events after this date (YYYY-MM-DD)
beforestringOnly events before this date (YYYY-MM-DD)
pageintegerPage number (1-based)
per_pageintegerResults per page
scopestringSet to "all" to include events from any project you have access to, not just your own authored events
sortstringSort order (default desc — newest first)
target_typestringFilter by target resource type
userCredentialsYour 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.

ParameterTypeDescription
since *stringISO date/datetime, inclusive lower bound (e.g. "2026-03-01" or "2026-03-01T00:00:00Z")
user *stringUsername (e.g. "alice") or numeric user ID
maxEventsintegerCap on events fetched. Defaults to 2000; returned envelope has truncated:true if reached.
untilstringISO date/datetime, inclusive upper bound. Defaults to now.
userCredentialsYour 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.

ParameterTypeDescription
group *stringGroup full path (e.g. "my-group" or "my-group/sub-group")
since *stringISO date/datetime, inclusive lower bound (e.g. "2026-04-01" or "2026-04-01T00:00:00Z")
includeSubgroupsbooleanRecurse into subgroup projects. Defaults to true.
maxEventsintegerGlobal cap on events fetched across all projects. Defaults to 2000; envelope flags truncated:true if reached.
maxProjectsintegerCap on projects scanned. Defaults to 500.
topContributorsintegerCap on the byUser[] list (sorted by event count desc). Default 10.
untilstringISO date/datetime, inclusive upper bound. Defaults to now.
userCredentialsYour 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)".

ParameterTypeDescription
groupstringGroup full path (e.g. "my-group"). Mutually exclusive with `project`.
maxMRsintegerHard cap on MRs scanned. Envelope flags `truncated:true` if reached.
projectstringProject full path (e.g. "my-group/my-project"). Mutually exclusive with `group`.
staleAfterDaysintegerAn MR counts as "stale" if its updatedAt is older than this many days. Default 3.
topStalestintegerCap on the stalest[] list. Default 20.
userCredentialsYour 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

ParameterTypeDescription
userCredentialsYour 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)

ParameterTypeDescription
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of projects to retrieve
sortstringGitLab project sort string (e.g., latest_activity_desc, created_desc, name_asc, stars_desc). Defaults to latest_activity_desc for recency.
userCredentialsYour 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.

ParameterTypeDescription
group *stringGroup full path, for example my-group/sub-group.
name *string
descriptionstring
userCredentialsYour 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.

ParameterTypeDescription
achievementId *stringNumeric achievement ID or gid://gitlab/Achievements::Achievement/<id>.
descriptionstring
namestring
userCredentialsYour 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.

ParameterTypeDescription
achievementId *stringNumeric achievement ID or gid://gitlab/Achievements::Achievement/<id>.
userCredentialsYour 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.

ParameterTypeDescription
achievementId *stringNumeric achievement ID or gid://gitlab/Achievements::Achievement/<id>.
username *string
awardMessagestringOptional award message, supported on instances exposing this mutation field.
userCredentialsYour 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.

ParameterTypeDescription
achievementIdstringNumeric achievement ID or gid://gitlab/Achievements::Achievement/<id>.
groupstringGroup full path, for example my-group/sub-group.
userAchievementIdstringNumeric award ID or gid://gitlab/Achievements::UserAchievement/<id>. This identifies one award, not the achievement definition.
userCredentialsYour GitLab credentials (optional — falls back to the configured env token if not provided)
usernamestring

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.

ParameterTypeDescription
method *stringHTTP method. DELETE is destructive and not reversible.
path *stringPath 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.
bodyRequest 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).
queryobjectQuery string parameters. Most write endpoints take their args in the body, but a few mix.
userCredentialsYour 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)

ParameterTypeDescription
projectPath *stringFull path of the project (e.g., "group/project-name")
title *stringTitle of the issue
descriptionstringDescription of the issue
userCredentialsYour 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)

ParameterTypeDescription
projectPath *stringFull path of the project (e.g., "group/project-name")
sourceBranch *stringSource branch name
targetBranch *stringTarget branch name
title *stringTitle of the merge request
descriptionstringDescription of the merge request
userCredentialsYour 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)

ParameterTypeDescription
body *stringNote body (supports Markdown)
iid *stringIssue or merge request IID
noteableType *stringType of item to add a note to
projectPath *stringFull path of the project (e.g., "group/project-name")
internalbooleanWhether the note is internal/confidential (only visible to project members)
userCredentialsYour 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.

ParameterTypeDescription
noteId *stringNote ID — either the bare numeric ID or the full GraphQL gid (gid://gitlab/Note/123)
userCredentialsYour 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.

ParameterTypeDescription
body *stringNew note body (Markdown supported)
noteId *stringNote ID — either the bare numeric ID or the full GraphQL gid (gid://gitlab/Note/123)
userCredentialsYour 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)

ParameterTypeDescription
action *stringAction to perform on the pipeline
pipelineIid *stringPipeline IID
projectPath *stringFull path of the project (e.g., "group/project-name")
userCredentialsYour 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.

ParameterTypeDescription
message *stringMessage text to display
broadcast_typestringBroadcast type: "banner" or "notification"
colorstringBackground color in hex format, e.g. "#E75E40"
dismissablebooleanWhether users can dismiss the broadcast message
ends_atstringISO 8601 timestamp when the message ends
fontstringForeground (font) color in hex format
starts_atstringISO 8601 timestamp when the message starts
target_access_levelsarrayAccess levels to target: 10=Guest, 20=Reporter, 30=Developer, 40=Maintainer, 50=Owner
target_pathstringPath glob for pages where the message should appear
themestringTheme name (GitLab 16.9+), e.g. "indigo", "red"
userCredentialsYour 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.

ParameterTypeDescription
id *integerBroadcast message ID
broadcast_typestringBroadcast type: "banner" or "notification"
colorstringBackground color in hex format, e.g. "#E75E40"
dismissablebooleanWhether users can dismiss the broadcast message
ends_atstringISO 8601 timestamp when the message ends
fontstringForeground (font) color in hex format
messagestringMessage text to display
starts_atstringISO 8601 timestamp when the message starts
target_access_levelsarrayAccess levels to target: 10=Guest, 20=Reporter, 30=Developer, 40=Maintainer, 50=Owner
target_pathstringPath glob for pages where the message should appear
themestringTheme name (GitLab 16.9+), e.g. "indigo", "red"
userCredentialsYour 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.

ParameterTypeDescription
id *integerBroadcast message ID
userCredentialsYour 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.

ParameterTypeDescription
todoId *stringTodo ID — accepts a bare numeric ID ("42") or a full gid ("gid://gitlab/Todo/42")
userCredentialsYour 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.

ParameterTypeDescription
actionstringLimit to todos with this action (e.g. assigned, mentioned, review_requested).
authorIdsarrayLimit to todos authored by these users. Numeric IDs or gid://gitlab/User/N strings.
groupPathstringLimit to a group by full path. Resolved to a node GID server-side.
projectPathstringLimit to a project by full path. Resolved to a node GID server-side.
targetIdstringLimit to todos for a single target (e.g. a specific issue/MR GID).
typestringLimit to todos targeting this type (e.g. Issue, MergeRequest, Epic).
userCredentialsYour 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).

ParameterTypeDescription
todoId *stringTodo ID — accepts a bare numeric ID ("42") or a full gid ("gid://gitlab/Todo/42")
userCredentialsYour 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

ParameterTypeDescription
iid *stringIssue IID (internal ID shown in the URL)
projectPath *stringFull path of the project (e.g., "group/project-name")
assigneeUsernamesarray
descriptionstring
dueDatestringYYYY-MM-DD
labelNamesarray
titlestring
userCredentialsYour 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).

ParameterTypeDescription
iid *stringIssue IID (the number shown in the GitLab UI, e.g. "42")
projectPath *stringFull path of the project (e.g., "group/project-name")
userCredentialsYour 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

ParameterTypeDescription
iid *stringMerge Request IID (internal ID shown in the URL)
projectPath *stringFull path of the project (e.g., "group/project-name")
assigneeUsernamesarray
descriptionstring
labelNamesarray
reviewerUsernamesarray
titlestring
userCredentialsYour 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

ParameterTypeDescription
fullPath *stringProject or group full path (e.g., "group/subgroup/project")
afterstringPagination 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…
firstnumberNumber of items to retrieve when listing group projects
userCredentialsYour 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)

ParameterTypeDescription
fullPath *stringGroup full path (e.g., "group/subgroup")
afterstringPagination 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…
firstnumberNumber of projects to retrieve
searchTermstringOptional search term to filter group projects
userCredentialsYour 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)

ParameterTypeDescription
typeName *stringGraphQL type name (e.g., "Project")
userCredentialsYour 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)

ParameterTypeDescription
afterstringPagination 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…
fetchAllbooleanFetch 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…
firstnumberNumber of results to retrieve per category
searchTermstringSearch term (leave empty for recent activity)
userCredentialsYour 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

ParameterTypeDescription
searchTerm *stringSearch term to find projects by name or description
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of projects to retrieve
userCredentialsYour 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.

ParameterTypeDescription
afterstringPagination 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…
assigneeUsernamesarrayFilter by assignee usernames (e.g., ["cdhanlon", "jsmith"])
authorUsernamestringFilter by author username (e.g., "cdhanlon")
fetchAllbooleanFetch 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).
firstnumberNumber of issues to retrieve
labelNamesarrayFilter by label names (e.g., ["Priority::High", "bug"])
projectPathstringOptional project path (e.g., "group/project"). Omit for global search.
searchTermstringText search term (optional - leave empty to filter by assignee/author/labels only)
sortstringSort order (e.g., UPDATED_DESC, CREATED_DESC, CREATED_ASC). Defaults to UPDATED_DESC for recency.
statestringFilter by issue state (opened, closed, all)
userCredentialsYour 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.

ParameterTypeDescription
searchTerm *stringUsername (e.g., "cdhanlon", "author:username", "assignee:username") or text when projectPath provided
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of merge requests to retrieve
projectPathstringProject path (e.g., "group/project"). Required for text searches, optional for username searches.
sortstringSort order (e.g., UPDATED_DESC, CREATED_DESC, CREATED_ASC). Defaults to UPDATED_DESC for recency.
statestringFilter by merge request state (opened, closed, merged, all)
userCredentialsYour 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

ParameterTypeDescription
username *stringUsername to find issues for (e.g., "cdhanlon")
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of issues to retrieve
projectPathstringOptional: limit search to a specific project
statestringFilter by issue state (opened, closed, all)
userCredentialsYour 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

ParameterTypeDescription
username *stringUsername to find merge requests for (e.g., "cdhanlon")
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of merge requests to retrieve
projectPathstringOptional: limit search to a specific project
rolestringWhether to find MRs authored by or assigned to the user
statestringFilter by MR state (opened, closed, merged, all)
userCredentialsYour 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.

ParameterTypeDescription
actionstringFilter by todo action — e.g. assigned, mentioned, build_failed, marked, approval_required, unmergeable, directly_addressed, review_requested
afterstringPagination 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…
authorIdsarrayFilter by todo authors. Accepts numeric user IDs or full gid://gitlab/User/N strings.
fetchAllbooleanFetch 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).
firstnumberNumber of todos to retrieve
groupPathstringLimit to a group by full path (e.g. "my-org/platform"). Resolved to a node GID server-side before filtering.
isSnoozedbooleanFilter by snooze state: true → only snoozed, false → only non-snoozed.
projectPathstringLimit to a project by full path (e.g. "my-org/my-repo"). Resolved to a node GID server-side before filtering.
sortstringSort order — e.g. CREATED_DESC (default on server), CREATED_ASC, UPDATED_DESC, UPDATED_ASC.
statestringFilter by todo state: pending (default), done, or all
typestringFilter by target type — e.g. Issue, MergeRequest, Epic, Commit, DesignManagement::Design, AlertManagement::Alert
userCredentialsYour 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

ParameterTypeDescription
searchTerm *stringSearch term to find users by username or name
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of users to retrieve
userCredentialsYour GitLab credentials (optional — falls back to the configured env token if not provided)

search_groups Search Groups

Search for GitLab groups and organizations

ParameterTypeDescription
searchTerm *stringSearch term to find groups by name or path
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of groups to retrieve
userCredentialsYour 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

ParameterTypeDescription
fullPath *stringFull path of the project or group (e.g., "group/project-name" or "group")
isProject *booleanWhether the path is a project (true) or group (false)
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of labels to retrieve
searchstringOptional search term to filter labels
userCredentialsYour 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.

ParameterTypeDescription
search *stringSearch term. Trimmed; empty rejected.
groupPathstringRequired when scope=group. Full group path.
pageintegerPage number. Default 1.
perPageintegerResults per page. Default 20.
projectPathstringRequired when scope=project. Full project path.
scopestringSearch scope. Default global.
userCredentialsYour 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

ParameterTypeDescription
projectPath *stringFull path of the project (e.g., "group/project-name")
pathstringDirectory path to browse (empty for root)
refstringGit reference (branch, tag, or commit SHA)
userCredentialsYour 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

ParameterTypeDescription
filePath *stringPath to the file within the repository (e.g., "src/main.js")
projectPath *stringFull path of the project (e.g., "group/project-name")
refstringGit reference (branch, tag, or commit SHA)
userCredentialsYour 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

ParameterTypeDescription
groupPath *stringFull path of the group (e.g., "my-group" or "parent/child-group")
afterstringPagination 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…
fetchAllbooleanFetch 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).
firstnumberNumber of members to retrieve
searchstringOptional search term to filter members by name or username
userCredentialsYour GitLab credentials (optional — falls back to the configured env token if not provided)