Skip to content

Native GitLab MR review integration — fetch diff and post review comments #618

Description

@FrankTub

When using /review with a GitLab merge request URL, it would be great if altimate-code could:

  1. Fetch the MR diff directly from GitLab (via API), so the user doesn't need to have the branch checked out locally.
  2. Post the review results as MR comments/notes back to the GitLab merge request, so the feedback is visible to the whole team — not just in the terminal.

This would enable a workflow like:

/review https://gitlab.com/org/repo/-/merge_requests/123

→ altimate-code fetches the diff, runs the review, and posts structured comments (bugs, style issues, suggestions) directly on the MR.

The current GitLab MCP server (@modelcontextprotocol/server-gitlab) lacks the necessary tools (no MR diff fetching, no MR commenting). This would need either an enhanced MCP server or native GitLab API integration in altimate-code.

Key GitLab API endpoints needed:

  • GET /projects/:id/merge_requests/:mr_iid/changes (fetch diff)
  • POST /projects/:id/merge_requests/:mr_iid/notes (post general comment)
  • POST /projects/:id/merge_requests/:mr_iid/discussions (post inline/line-level comments)

Metadata

Field Value
CLI Version 0.5.13
Platform darwin
Architecture arm64
OS Release 25.3.0
Category feature
Working Directory data-warehouse-etl-dbt
Session ID ses_2b15fbc16ffeWAMkfAC5PSUC8r

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions