Repository MCP tools
## Summary
GitLab's MCP Server now includes a comprehensive, consolidated set of repository tools — covering reading files, browsing repository trees, inspecting commits, and listing commit history — so your AI agents can navigate and understand your codebase without losing context or hitting token limits. You can also give agents the ability to take action by creating branches and committing file changes directly, enabling full end-to-end agentic edit loops right from your MCP-connected tools.
## Desired Outcome
A comprehensive, consolidated set of MCP tools for the repository domain (files, tree, commits, branches).
- `get_repository_file` — read a single file's contents (line pagination via `offset`/`limit`)
- `list_repository_tree` — list a repository tree (collection reader)
- `get_commit` — read a single commit; facet reader with `include` (a single facet value: `diff` or `comments`) and a `detail` knob (`none`/`stats`/`full_patch`) on the diff facet
- `list_commits` — list commits (collection reader)
- `add_commit` — commit one or more file actions to a branch (discrete; append-only semantics; renamed from `create_commit`)
- `create_branch` — create a branch (discrete; create-only semantics, loop completer for `add_commit`)
- `list_branches` — list branches (collection reader)
epic