Code Review MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GITLAB_URL | No | GitLab instance URL (default: https://gitlab.com). Required for GitLab (Self-Managed). | https://gitlab.com |
| GITHUB_TOKEN | No | Your GitHub Personal Access Token. Required for GitHub functionality. | |
| GITLAB_TOKEN | No | Your GitLab Personal Access Token. Required for GitLab functionality. | |
| CODE_REVIEW_GUIDELINES | No | Inline custom code review guidelines text. Optional (Custom Rules). | |
| CODE_REVIEW_GUIDELINES_FILE | No | Path to a file containing custom code review guidelines. Optional (Custom Rules). If set, it takes precedence over CODE_REVIEW_GUIDELINES. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| gitlab_list_mrsC | List merge requests for a given GitLab project |
| gitlab_get_mr_detailsC | Get details of a specific merge request |
| gitlab_get_mr_diffC | Get the diff of a specific merge request |
| gitlab_read_fileC | Read the content of a file at a specific ref |
| gitlab_get_project_metadataC | Fetch project metadata (README and manifests) |
| github_list_prsC | List pull requests for a given GitHub repository |
| github_get_pr_detailsC | Get details of a specific pull request |
| github_get_pr_diffC | Get the diff of a specific pull request |
| github_read_fileC | Read the content of a file at a specific ref |
| github_get_project_metadataC | Fetch project metadata (README and manifests) |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| review_merge_request | Guided code review for a GitLab Merge Request |
| review_pull_request | Guided code review for a GitHub Pull Request |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielefavi/mcp-server-code-review'
If you have feedback or need assistance with the MCP directory API, please join our Discord server