npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

auto-reviewers-mcp-server

v1.0.1

Published

MCP server for auto-reviewer suggestions on GitLab merge requests based on CODEOWNERS and contribution history

Downloads

7

Readme

Auto Reviewers MCP Server

A Model Context Protocol (MCP) server that exposes auto-reviewer functionality for GitLab merge requests.

Installation

Install the package from npm:

npm install auto-reviewers-mcp-server

Quick Start

After installation, you can run the server directly:

node node_modules/auto-reviewers-mcp-server/dist/index.js

Or add it to your MCP configuration (see Integration section below).

Features

  • suggest_reviewers: Automatically suggest reviewers based on contributors, team members, and code owners
  • get_contributor_analysis: Analyze file contributors using git blame data
  • get_reviewer_workload: Get current workload analysis for potential reviewers

Development Setup

For development or building from source:

  1. Install dependencies:
npm install
  1. Build the server:
npm run build
  1. Configure environment (optional):
cp .env.example .env
# Edit .env with your GitLab URL and token
  1. Run the server:
npm start

Configuration

The server requires a GitLab API token. You can provide it in two ways:

  1. Environment variable: Set GITLAB_TOKEN in your environment or .env file
  2. Tool parameter: Pass gitlabToken when calling the tool

Optionally set GITLAB_URL (defaults to https://gitlab.com).

Tools

suggest_reviewers

Suggests reviewers for a GitLab merge request based on:

  • Git blame analysis of changed files to find previous contributors
  • Team member availability with FTE-aware load balancing
  • Code ownership rules from CODEOWNERS file
  • Current reviewer workload across open merge requests

Parameters:

  • projectId (number): GitLab project ID
  • mergeRequestIid (number): Merge request internal ID
  • authorUsername (string): Username of the MR author
  • gitlabToken (string, optional): GitLab API token
  • gitlabUrl (string, optional): GitLab instance URL

Returns:

  • List of contributor reviewers with change details
  • Team member suggestions with load balancing scores
  • Code owner assignments by section
  • Formatted comment for GitLab MR

get_contributor_analysis

Provides detailed analysis of who contributed to the changed files using git blame.

Parameters:

  • projectId (number): GitLab project ID
  • mergeRequestIid (number): Merge request internal ID
  • gitlabToken (string, optional): GitLab API token
  • gitlabUrl (string, optional): GitLab instance URL

Returns:

  • List of changed files
  • Contributors per file with line counts

get_reviewer_workload

Analyzes current workload of potential reviewers across open merge requests.

Parameters:

  • projectId (number): GitLab project ID
  • gitlabToken (string, optional): GitLab API token
  • gitlabUrl (string, optional): GitLab instance URL

Returns:

  • List of reviewers with open MR counts

Integration

To use this MCP server with an AI assistant, add it to your MCP configuration:

{
  "mcpServers": {
    "auto-reviewers": {
      "command": "node",
      "args": ["node_modules/auto-reviewers-mcp-server/dist/index.js"],
      "env": {
        "GITLAB_TOKEN": "your_token_here",
        "GITLAB_URL": "https://gitlab.com"
      }
    }
  }
}

If you installed the package globally, you can reference it directly:

{
  "mcpServers": {
    "auto-reviewers": {
      "command": "auto-reviewers-mcp-server",
      "env": {
        "GITLAB_TOKEN": "your_token_here",
        "GITLAB_URL": "https://gitlab.com"
      }
    }
  }
}

Team Configuration

Create a CONTRIBUTORS file in your repository root with team and FTE data:

{
  "contributors": [
    {
      "username": "developer1",
      "email": "[email protected]",
      "teams": [
        { "name": "Backend", "fte": 1.0 },
        { "name": "API", "fte": 0.5 }
      ]
    }
  ]
}

Code Owners

Create a CODEOWNERS file in your repository root (or docs/CODEOWNERS or .gitlab/CODEOWNERS):

# Backend team owns all backend code
/backend/ @backend-team

# API section requires 2 approvals
[API][2] @api-lead
/api/ @developer1 @developer2

Contributing

Contributions are welcome! Please visit the GitHub repository to:

  • Report issues or bugs
  • Request new features
  • Submit pull requests
  • View the source code

License

MIT

Support

For issues, questions, or contributions, please visit: