Ir al contenido

Revisión de merge requests

Lo que hace una revisión con un merge request: leer sus cambios, sus versiones del diff y sus diffs en bruto; leer y escribir sus notas; abrir, responder y resolver discusiones en hilo, en línea sobre una línea del diff o generales; y encolar notas en borrador que siguen siendo privadas hasta que se publican, una a una o todas juntas como una sola revisión.

Aprobar, fusionar y el resto del ciclo de vida del merge request están en Merge requests, igual que los emoji de reacción en sus notas.

  • “¿Qué ha cambiado en el merge request !15?”
  • “Comenta la línea 42 de src/app.go en el merge request !15”
  • “Resuelve los hilos abiertos que inicié en el merge request !15”
  • “Publica mi revisión en borrador”
  • Dinámica, la superficie predeterminada: llama a gitlab_execute_action con action igual al ID de la acción, como mr_review.changes_get, y sus parámetros en params. gitlab_find_action encuentra un ID a partir de una descripción de la tarea.
  • Meta (GITLAB_MCP_TOOL_SURFACE=meta): llama a gitlab_mr_review con action igual al nombre de la acción, como changes_get, y sus parámetros en params.
  • Individual (GITLAB_MCP_TOOL_SURFACE=individual): llama a la herramienta propia de la acción, como gitlab_mr_changes_get, pasándole directamente sus parámetros.

Todos los niveles sirven el grupo completo, tanto en instancias autogestionadas como en GitLab.com.

Acciones de solo lectura: 10 de 23, las que conserva un despliegue en modo de solo lectura. A un token con read_api y sin api se le sirven 10 de las 23.

La descripción de cada acción, y la de cada uno de sus parámetros, es el texto que sirve el servidor para ella en la superficie predeterminada, citado tal cual; por eso está en inglés. Las líneas de token dicen lo que exige GitLab 19.6.1 a un token para las peticiones que envía cada acción; en una instancia con Admin Mode activado, una acción que solo puede ejecutar un administrador necesita además admin_mode. Una acción destructiva solo se ejecuta una vez confirmada, salvo que GITLAB_MCP_YOLO_MODE (o AUTOPILOT) se salte ese paso: la superficie dinámica necesita confirm: true en gitlab_execute_action, y las otras dos aceptan un parámetro confirm o la pregunta del cliente (Acciones destructivas).

Acción Individual
mr_review.changes_get gitlab_mr_changes_get
mr_review.diff_version_get gitlab_mr_diff_version_get
mr_review.diff_versions_list gitlab_mr_diff_versions_list
mr_review.discussion_create gitlab_mr_discussion_create
mr_review.discussion_get gitlab_mr_discussion_get
mr_review.discussion_list gitlab_mr_discussion_list
mr_review.discussion_note_delete gitlab_mr_discussion_note_delete
mr_review.discussion_note_update gitlab_mr_discussion_note_update
mr_review.discussion_reply gitlab_mr_discussion_reply
mr_review.discussion_resolve gitlab_mr_discussion_resolve
mr_review.draft_note_create gitlab_mr_draft_note_create
mr_review.draft_note_delete gitlab_mr_draft_note_delete
mr_review.draft_note_get gitlab_mr_draft_note_get
mr_review.draft_note_list gitlab_mr_draft_note_list
mr_review.draft_note_publish gitlab_mr_draft_note_publish
mr_review.draft_note_publish_all gitlab_mr_draft_note_publish_all
mr_review.draft_note_update gitlab_mr_draft_note_update
mr_review.note_create gitlab_mr_note_create
mr_review.note_delete gitlab_mr_note_delete
mr_review.note_get gitlab_mr_note_get
mr_review.note_list gitlab_mr_notes_list
mr_review.note_update gitlab_mr_note_update
mr_review.raw_diffs gitlab_mr_raw_diffs

Get the current file diffs (changes) for a merge request. Returns: per-file diffs with old_path, new_path, diff content, file status (added/deleted/renamed), file modes, pagination metadata, and truncated_files when GitLab collapses large diffs. See also: mr_review.diff_versions_list, mr_review.raw_diffs, merge_request.get.

  • Meta-herramienta: gitlab_mr_review, acción changes_get
  • Herramienta individual: gitlab_mr_changes_get
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Merge Request: Read en proyecto (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request internal ID
project_id string/integer sí Project ID or URL-encoded path
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
unidiff boolean no Return diffs in unified diff format (default: false)

Get a single merge request diff version with its commits and file diffs. Returns: the diff version with id, SHAs, state, real_size, the full commit list, and per-file diffs (optionally in unified-diff format). See also: mr_review.diff_versions_list, mr_review.changes_get.

  • Meta-herramienta: gitlab_mr_review, acción diff_version_get
  • Herramienta individual: gitlab_mr_diff_version_get
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Merge Request: Read en proyecto (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request internal ID
project_id string/integer sí Project ID or URL-encoded path
version_id integer sí Diff version ID
unidiff boolean no Return diffs in unified diff format (default: false)

List all diff versions (historical snapshots) of a merge request. Returns: an array of diff versions with id, head/base/start SHAs, state, real_size, and created_at, plus pagination metadata. See also: mr_review.diff_version_get, mr_review.changes_get.

  • Meta-herramienta: gitlab_mr_review, acción diff_versions_list
  • Herramienta individual: gitlab_mr_diff_versions_list
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Merge Request: Read en proyecto (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request internal ID
project_id string/integer sí Project ID or URL-encoded path
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.

Create a new discussion thread on a merge request, optionally as an inline diff comment. Returns: the created thread with its first note (author, body, resolvable state, diff position). See also: mr_review.discussion_reply, mr_review.discussion_list, mr_review.changes_get.

  • Meta-herramienta: gitlab_mr_review, acción discussion_create
  • Herramienta individual: gitlab_mr_discussion_create
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Merge Request: Create en proyecto. Algunas llamadas también necesitan: Merge Request: Read en proyecto (página de permisos)
  • Comportamiento: escribe, no idempotente
Parámetro Tipo Requerido Descripción
body string sí Discussion body
merge_request_iid integer sí Merge request IID (project-scoped, not ‘merge_request_id’)
project_id string/integer sí Project ID or URL-encoded path
commit_id string no SHA of the commit to anchor the discussion to (optional).
confirm boolean no Confirms running the quick actions the text carries. Pass true only after the user approves that. Only required when a line of the text begins with /move, /merge, /promote, /convert_to_ticket, /add_email, /publish, /unapprove, /unlink, /remove_epic, /remove_parent, /remove_parent_epic, /remove_child, /remove_child_epic, /remove_contacts, /unassign or a /reassign that names nobody, which GitLab runs when it saves the text. Without it, a client that supports elicitation is asked. With it, or when the server runs in YOLO mode, nobody is asked
created_at string no Backdate the discussion creation time (ISO 8601, e.g. 2025-01-01T00:00:00Z). Requires admin or owner rights
position object no Diff position for inline comments. Omit for general MR discussions.

Get a single merge request discussion thread by its discussion id. Returns: the thread with every note (author, body, system flag, resolvable/resolved state, diff position). See also: mr_review.discussion_list, mr_review.discussion_reply, mr_review.discussion_resolve.

  • Meta-herramienta: gitlab_mr_review, acción discussion_get
  • Herramienta individual: gitlab_mr_discussion_get
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Merge Request: Read en proyecto (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
discussion_id string sí ID of the discussion
merge_request_iid integer sí Merge request IID (project-scoped, not ‘merge_request_id’)
project_id string/integer sí Project ID or URL-encoded path

List discussion threads on a merge request with ordering and offset pagination. Returns: discussion threads with their notes (author, body, system flag, resolvable state, diff position) and pagination metadata. See also: mr_review.discussion_get, mr_review.discussion_create, merge_request.get, mr_review.note_list.

  • Meta-herramienta: gitlab_mr_review, acción discussion_list
  • Herramienta individual: gitlab_mr_discussion_list
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Merge Request: Read en proyecto (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request IID (project-scoped, not ‘merge_request_id’)
project_id string/integer sí Project ID or URL-encoded path
order_by string no Column to order results by (e.g. created_at, updated_at)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort direction (asc or desc)

Delete a note from a merge request discussion thread (destructive). Returns: a deletion confirmation message. See also: mr_review.discussion_note_update, mr_review.discussion_get, mr_review.discussion_list.

  • Meta-herramienta: gitlab_mr_review, acción discussion_note_delete
  • Herramienta individual: gitlab_mr_discussion_note_delete
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Merge Request: Delete en proyecto (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
discussion_id string sí ID of the discussion containing the note
merge_request_iid integer sí Merge request IID (project-scoped, not ‘merge_request_id’)
note_id integer sí ID of the note to delete
project_id string/integer sí Project ID or URL-encoded path

Update the body or resolved state of a note in a merge request discussion thread. Returns: the updated note. See also: mr_review.discussion_reply, mr_review.discussion_note_delete, mr_review.discussion_get.

  • Meta-herramienta: gitlab_mr_review, acción discussion_note_update
  • Herramienta individual: gitlab_mr_discussion_note_update
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Merge Request: Update en proyecto (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
discussion_id string sí ID of the discussion containing the note
merge_request_iid integer sí Merge request IID (project-scoped, not ‘merge_request_id’)
note_id integer sí ID of the note to update
project_id string/integer sí Project ID or URL-encoded path
body string no New body text (Markdown). Leave empty to keep current body.
confirm boolean no Confirms running the quick actions the text carries. Pass true only after the user approves that. Only required when a line of the text begins with /move, /merge, /promote, /convert_to_ticket, /add_email, /publish, /unapprove, /unlink, /remove_epic, /remove_parent, /remove_parent_epic, /remove_child, /remove_child_epic, /remove_contacts, /unassign or a /reassign that names nobody, which GitLab runs when it saves the text. Without it, a client that supports elicitation is asked. With it, or when the server runs in YOLO mode, nobody is asked
created_at string no Override the note creation time (ISO 8601, e.g. 2025-01-01T00:00:00Z). Requires admin or owner rights
resolved boolean no Set to true to resolve, false to unresolve. Omit to leave unchanged.

Add a reply note to an existing merge request discussion thread. Returns: the created note (author, body, timestamps, resolvable state). See also: mr_review.discussion_create, mr_review.discussion_get, mr_review.discussion_note_update.

  • Meta-herramienta: gitlab_mr_review, acción discussion_reply
  • Herramienta individual: gitlab_mr_discussion_reply
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Merge Request: Create en proyecto (página de permisos)
  • Comportamiento: escribe, no idempotente
Parámetro Tipo Requerido Descripción
body string sí Reply body
discussion_id string sí ID of the discussion to reply to
merge_request_iid integer sí Merge request IID (project-scoped, not ‘merge_request_id’)
project_id string/integer sí Project ID or URL-encoded path
confirm boolean no Confirms running the quick actions the text carries. Pass true only after the user approves that. Only required when a line of the text begins with /move, /merge, /promote, /convert_to_ticket, /add_email, /publish, /unapprove, /unlink, /remove_epic, /remove_parent, /remove_parent_epic, /remove_child, /remove_child_epic, /remove_contacts, /unassign or a /reassign that names nobody, which GitLab runs when it saves the text. Without it, a client that supports elicitation is asked. With it, or when the server runs in YOLO mode, nobody is asked
created_at string no Backdate the note creation time (ISO 8601, e.g. 2025-01-01T00:00:00Z). Requires admin or owner rights

Resolve or unresolve a merge request discussion thread. Returns: the thread with its updated resolved state and notes. See also: mr_review.discussion_get, mr_review.discussion_list, mr_review.discussion_reply.

  • Meta-herramienta: gitlab_mr_review, acción discussion_resolve
  • Herramienta individual: gitlab_mr_discussion_resolve
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Merge Request: Update en proyecto (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
discussion_id string sí ID of the discussion to resolve
merge_request_iid integer sí Merge request IID (project-scoped, not ‘merge_request_id’)
project_id string/integer sí Project ID or URL-encoded path
resolved boolean sí True to resolve, false to unresolve

Create a pending draft note on a merge request. Returns: the created draft note with ID, author, body, and inline position. See also: mr_review.draft_note_list, mr_review.draft_note_publish, mr_review.draft_note_publish_all.

  • Meta-herramienta: gitlab_mr_review, acción draft_note_create
  • Herramienta individual: gitlab_mr_draft_note_create
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Merge Request: Update en proyecto. Algunas llamadas también necesitan: Merge Request: Read en proyecto (página de permisos)
  • Comportamiento: escribe, no idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request internal ID
note string sí Note body text (Markdown)
project_id string/integer sí Project ID or URL-encoded path
commit_id string no SHA of the commit to comment on
confirm boolean no Confirms running the quick actions the text carries. Pass true only after the user approves that. Only required when a line of the text begins with /move, /merge, /promote, /convert_to_ticket, /add_email, /publish, /unapprove, /unlink, /remove_epic, /remove_parent, /remove_parent_epic, /remove_child, /remove_child_epic, /remove_contacts, /unassign or a /reassign that names nobody, which GitLab runs when the draft is published. Without it, a client that supports elicitation is asked. With it, or when the server runs in YOLO mode, nobody is asked
in_reply_to_discussion_id string no Discussion ID to reply to
position object no Diff position for an inline comment on a line of the diff, a point of an image or a whole file. Omit for general MR comments.
resolve_discussion boolean no Resolve the discussion when published

Delete a pending draft note permanently. Returns: a success confirmation naming the note, merge request, and project. See also: mr_review.draft_note_list, mr_review.draft_note_get.

  • Meta-herramienta: gitlab_mr_review, acción draft_note_delete
  • Herramienta individual: gitlab_mr_draft_note_delete
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Merge Request: Update en proyecto (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request internal ID
note_id integer sí Draft note ID
project_id string/integer sí Project ID or URL-encoded path

Get a single draft note from a merge request. Returns: the draft note with author, body, resolve flag, line code, and inline diff position. See also: mr_review.draft_note_list, mr_review.draft_note_update, mr_review.draft_note_publish.

  • Meta-herramienta: gitlab_mr_review, acción draft_note_get
  • Herramienta individual: gitlab_mr_draft_note_get
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Merge Request: Read en proyecto (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request internal ID
note_id integer sí Draft note ID
project_id string/integer sí Project ID or URL-encoded path

List pending draft notes on a merge request. Returns: each draft note with author, body, optional inline position, line code, and pagination metadata. See also: mr_review.draft_note_get, mr_review.draft_note_create, mr_review.draft_note_publish_all.

  • Meta-herramienta: gitlab_mr_review, acción draft_note_list
  • Herramienta individual: gitlab_mr_draft_note_list
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Merge Request: Read en proyecto (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request internal ID
project_id string/integer sí Project ID or URL-encoded path
order_by string no Order by: id (default)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort: asc or desc (default)

Publish a single draft note as a regular merge request note. Returns: a success confirmation naming the note, merge request, and project. See also: mr_review.draft_note_publish_all, mr_review.draft_note_list.

  • Meta-herramienta: gitlab_mr_review, acción draft_note_publish
  • Herramienta individual: gitlab_mr_draft_note_publish
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Merge Request: Update en proyecto (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request internal ID
note_id integer sí Draft note ID
project_id string/integer sí Project ID or URL-encoded path

Publish all of the user’s pending draft notes on a merge request, optionally with a summary note and a reviewer state. Returns: a success confirmation naming the merge request and project. See also: mr_review.draft_note_list, mr_review.draft_note_publish.

  • Meta-herramienta: gitlab_mr_review, acción draft_note_publish_all
  • Herramienta individual: gitlab_mr_draft_note_publish_all
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Merge Request: Update en proyecto (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request internal ID
project_id string/integer sí Project ID or URL-encoded path
confirm boolean no Confirms running the quick actions the summary note carries. Pass true only after the user approves that. Only required when a line of note begins with /move, /merge, /promote, /convert_to_ticket, /add_email, /publish, /unapprove, /unlink, /remove_epic, /remove_parent, /remove_parent_epic, /remove_child, /remove_child_epic, /remove_contacts, /unassign or a /reassign that names nobody, which GitLab runs when it saves the note. Without it, a client that supports elicitation is asked. With it, or when the server runs in YOLO mode, nobody is asked
internal boolean no Whether the summary note is internal, visible only to members who can see internal notes. Defaults to false and applies only together with note
note string no Summary comment GitLab posts on the merge request after publishing the drafts. Markdown is supported
reviewer_state string (requested_changes, reviewed) no Review state to record for the caller as a reviewer after publishing: requested_changes or reviewed. It does not record a formal approval

Update a pending draft note’s body, position or both, keeping the one left out. Returns: the updated draft note. See also: mr_review.draft_note_get, mr_review.draft_note_publish.

  • Meta-herramienta: gitlab_mr_review, acción draft_note_update
  • Herramienta individual: gitlab_mr_draft_note_update
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Merge Request: Update en proyecto. Algunas llamadas también necesitan: Metadata: Read en instancia; Merge Request: Read en proyecto (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request internal ID
note_id integer sí Draft note ID
project_id string/integer sí Project ID or URL-encoded path
confirm boolean no Confirms running the quick actions the text carries. Pass true only after the user approves that. Only required when a line of the text begins with /move, /merge, /promote, /convert_to_ticket, /add_email, /publish, /unapprove, /unlink, /remove_epic, /remove_parent, /remove_parent_epic, /remove_child, /remove_child_epic, /remove_contacts, /unassign or a /reassign that names nobody, which GitLab runs when the draft is published. Without it, a client that supports elicitation is asked. With it, or when the server runs in YOLO mode, nobody is asked
note string no Updated note body text (Markdown). Omit it to keep the current body. Give note, position or both
position object no Updated diff position for inline comments, replacing the current one whole. It needs base_sha, start_sha and head_sha from the merge request’s diff_refs and the file’s path, and by position_type a line of the diff (text, the default: new_line for an added line, old_line for a removed one, both for an unchanged one), width, height, x and y in whole pixels (image) or both old_path and new_path (file). Send old_path and new_path. A text position on a renamed file needs both too, and a text or image position on a file that was not renamed is taken with one. Omit it to keep the current position. Give note, position or both

Además necesita al menos uno de estos: note; position.

Add a general comment (note) to a merge request. Returns: the created note with id, author, body, timestamps, and resolvable/internal flags. See also: mr_review.note_list, merge_request.get, mr_review.discussion_create.

  • Meta-herramienta: gitlab_mr_review, acción note_create
  • Herramienta individual: gitlab_mr_note_create
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Work Item: Create en proyecto (página de permisos)
  • Comportamiento: escribe, no idempotente
Parámetro Tipo Requerido Descripción
body string sí Comment body (Markdown supported)
merge_request_iid integer sí Merge request IID (project-scoped, not ‘merge_request_id’)
project_id string/integer sí Project ID or URL-encoded path
confirm boolean no Confirms running the quick actions the text carries. Pass true only after the user approves that. Only required when a line of the text begins with /move, /merge, /promote, /convert_to_ticket, /add_email, /publish, /unapprove, /unlink, /remove_epic, /remove_parent, /remove_parent_epic, /remove_child, /remove_child_epic, /remove_contacts, /unassign or a /reassign that names nobody, which GitLab runs when it saves the text. Without it, a client that supports elicitation is asked. With it, or when the server runs in YOLO mode, nobody is asked
created_at string no Backdate the note to this RFC 3339 timestamp (e.g. 2026-01-15T10:00:00Z). Requires administrator or project/group owner permissions. Ignored otherwise.
internal boolean no Mark note as internal (visible only to project members)
merge_request_diff_head_sha string no Required for the deduplication of system notes: SHA referencing the most recent diff version of the merge request.

Delete a merge request note permanently. Returns: a success confirmation naming the note, MR, and project. See also: mr_review.note_get, mr_review.note_list.

  • Meta-herramienta: gitlab_mr_review, acción note_delete
  • Herramienta individual: gitlab_mr_note_delete
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Work Item: Delete en proyecto (página de permisos)
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request IID (project-scoped, not ‘merge_request_id’)
note_id integer sí ID of the note to delete
project_id string/integer sí Project ID or URL-encoded path

Get a single merge request note by its ID. Returns: the note with author, body, timestamps, position, and resolvable/internal flags. See also: mr_review.note_list, mr_review.note_update, mr_review.note_delete.

  • Meta-herramienta: gitlab_mr_review, acción note_get
  • Herramienta individual: gitlab_mr_note_get
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Work Item: Read en proyecto (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request IID (project-scoped, not ‘merge_request_id’)
note_id integer sí ID of the note to retrieve
project_id string/integer sí Project ID or URL-encoded path

List all notes (comments) on a merge request. Returns: notes with author, body, system/internal flags, and pagination metadata. See also: mr_review.note_get, mr_review.note_create, mr_review.discussion_list.

  • Meta-herramienta: gitlab_mr_review, acción note_list
  • Herramienta individual: gitlab_mr_notes_list
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Work Item: Read en proyecto (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request IID (project-scoped, not ‘merge_request_id’)
project_id string/integer sí Project ID or URL-encoded path
order_by string (created_at, updated_at) no Order by field (created_at, updated_at)
page integer no Page number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
per_page integer no Items per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sort string (asc, desc) no Sort direction (asc, desc)

Update a merge request note’s body. Returns: the updated note with new body and updated_at timestamp. See also: mr_review.note_get, mr_review.note_list, mr_review.note_delete.

  • Meta-herramienta: gitlab_mr_review, acción note_update
  • Herramienta individual: gitlab_mr_note_update
  • Nivel: Free
  • Token clásico u OAuth: api
  • Token de grano fino: Work Item: Update en proyecto (página de permisos)
  • Comportamiento: escribe, idempotente
Parámetro Tipo Requerido Descripción
body string sí Updated comment body
merge_request_iid integer sí Merge request IID (project-scoped, not ‘merge_request_id’)
note_id integer sí ID of the note to update
project_id string/integer sí Project ID or URL-encoded path
confirm boolean no Confirms running the quick actions the text carries. Pass true only after the user approves that. Only required when a line of the text begins with /move, /merge, /promote, /convert_to_ticket, /add_email, /publish, /unapprove, /unlink, /remove_epic, /remove_parent, /remove_parent_epic, /remove_child, /remove_child_epic, /remove_contacts, /unassign or a /reassign that names nobody, which GitLab runs when it saves the text. Without it, a client that supports elicitation is asked. With it, or when the server runs in YOLO mode, nobody is asked

Get the raw unified-diff output for a merge request in plain-text git-apply format. Returns: raw_diff, a single plain-text unified diff for the MR head suitable for patch application or programmatic analysis. See also: mr_review.changes_get, mr_review.diff_versions_list.

  • Meta-herramienta: gitlab_mr_review, acción raw_diffs
  • Herramienta individual: gitlab_mr_raw_diffs
  • Nivel: Free
  • Token clásico u OAuth: read_api (o api)
  • Token de grano fino: Merge Request: Read en proyecto (página de permisos)
  • Comportamiento: solo lectura, idempotente
Parámetro Tipo Requerido Descripción
merge_request_iid integer sí Merge request internal ID
project_id string/integer sí Project ID or URL-encoded path