GitHub Issue Priority MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
npm install -g mcp-git-issue-priority
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add git-issue-priority -- node "<FULL_PATH_TO_MCP_GIT_ISSUE_PRIORITY>/dist/index.js"

Replace <FULL_PATH_TO_MCP_GIT_ISSUE_PRIORITY>/dist/index.js with the actual folder you prepared in step 1.

README.md

Manage GitHub issues with deterministic priority scoring and safe locking.

MCP GitHub Issue Priority Server

A Model Context Protocol (MCP) server that enables AI assistants to manage GitHub issues with deterministic priority scoring and concurrency-safe selection.

Quick Start

# 1. Install from npm (recommended)
npm install -g mcp-git-issue-priority

# 2. Authenticate (if not already using GitHub CLI)
gh auth login

# 3. Add to Claude Code (~/.claude.json)
{
  "mcpServers": {
    "github-issue-priority": {
      "command": "mcp-git-issue-priority"
    }
  }
}
# 4. Restart Claude Code and verify
# The MCP tools should appear when you run /mcp

Features

  • Priority-Based Issue Selection: Deterministic scoring algorithm ensures consistent issue prioritization across sessions
  • Concurrency-Safe Locking: File-based atomic locking prevents multiple AI sessions from selecting the same issue
  • Guided Workflow: 8-phase workflow (selection → research → branch → implementation → testing → commit → pr → review) with transition validation
  • Automatic Labeling: Creates and manages priority (P0-P3), type (bug, feature, chore, docs), and status labels
  • Stale Lock Detection: Automatically detects and cleans up locks from dead processes
  • Audit Logging: JSON Lines logging for all operations with 30-day retention

Installation

Prerequisites

  • Node.js 20+ - Download
  • GitHub CLI (recommended) - Install and run gh auth login
    • Or: a GitHub personal access token with repo scope

Install from npm (recommended)

npm install -g mcp-git-issue-priority

Install specific version

npm install -g mcp-git-issue-priority@1.0.0

Install from source

git clone https://github.com/steiner385/mcp-git-issue-priority.git
cd mcp-git-issue-priority
npm install && npm link

Troubleshooting

Issue Solution
command not found: mcp-git-issue-priority Ensure npm global bin is in your PATH: npm bin -g
GitHub authentication required Run gh auth login or set GITHUB_TOKEN
Build errors during install Ensure Node.js 20+ is installed: node --version

Configuration

GitHub Authentication

The server supports two authentication methods:

Recommended: GitHub CLI (automatic)

If you have GitHub CLI installed and authenticated, the server automatically retrieves your token:

# One-time setup
gh auth login

This is the recommended approach - no manual token management required.

Alternative: Environment Variable

Set GITHUB_TOKEN with a personal access token that has repo scope:

export GITHUB_TOKEN="ghp_your_personal_access_token"

Or configure it in your MCP settings (see below).

Claude Code Configuration

Add to ~/.claude.json (global) or .claude/settings.json (project):

{
  "mcpServers": {
    "github-issue-priority": {
      "command": "mcp-git-issue-priority"
    }
  }
}

Using a personal access token instead of GitHub CLI? Add the token to the config:

{
  "mcpServers": {
    "github-issue-priority": {
      "command": "mcp-git-issue-priority",
      "env": {
        "GITHUB_TOKEN": "ghp_your_personal_access_token"
      }
    }
  }
}

Verify Installation

After restarting Claude Code:

  1. Run /mcp to see available MCP servers
  2. The github-issue-priority server should be listed with 13 tools
  3. Try list_backlog on any repository to confirm it's working

Available Tools

`create_issue`

Create a new GitHub issue with mandatory priority and type labels.

Arguments:
  - title (required): Issue title
  - body (optional): Issue description
  - priority (required): P0 (critical) | P1 (high) | P2 (medium) | P3 (low)
  - type (required): bug | feature | chore | docs
  - repository (required): "owner/repo" format

`select_next_issue`

Select and lock the highest-priority issue from the backlog. Uses deterministic scoring to ensure consistent selection.

Arguments:
  - repository (required): "owner/repo" format
  - type (optional): Filter by issue type
  - maxPriority (optional): Only consider issues at or above this priority

`list_backlog`

List all open issues in priority order without acquiring locks (read-only).

Arguments:
  - repository (required): "owner/repo" format
  - type (optional): Filter by issue type
  - limit (optional): Maximum issues to return (default: 20)

`advance_workflow`

Advance the workflow to the next phase for a locked issue.

Arguments:
  - issueNumber (required): Issue number to advance
  - targetPhase (required): research | branch | implementation | testing | commit | pr | review
  - repository (required): "owner/repo" format
  - testsPassed (optional): Required when advancing to 'commit' phase
  - prTitle (optional): Required for 'pr' phase
  - p

Tools (4)

create_issueCreate a new GitHub issue with mandatory priority and type labels.
select_next_issueSelect and lock the highest-priority issue from the backlog.
list_backlogList all open issues in priority order without acquiring locks.
advance_workflowAdvance the workflow to the next phase for a locked issue.

Environment Variables

GITHUB_TOKENGitHub personal access token with repo scope

Configuration

claude_desktop_config.json
{"mcpServers": {"github-issue-priority": {"command": "mcp-git-issue-priority"}}}

Try it

List the highest priority issues in the repository 'owner/repo' to see what I should work on next.
Select the next issue from 'owner/repo' and lock it so I can start working.
Create a new bug report in 'owner/repo' titled 'Fix login crash' with P0 priority.
Advance the workflow for issue #123 in 'owner/repo' to the 'testing' phase.

Frequently Asked Questions

What are the key features of GitHub Issue Priority?

Deterministic priority scoring for consistent issue selection. Concurrency-safe file-based atomic locking. Structured 8-phase issue workflow management. Automatic priority and status label management. Audit logging with 30-day retention.

What can I use GitHub Issue Priority for?

Automating backlog grooming for development teams. Ensuring multiple AI agents do not work on the same issue simultaneously. Standardizing issue lifecycle management from research to PR review. Maintaining consistent priority levels across large project backlogs.

How do I install GitHub Issue Priority?

Install GitHub Issue Priority by running: npm install -g mcp-git-issue-priority

What MCP clients work with GitHub Issue Priority?

GitHub Issue Priority works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep GitHub Issue Priority docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare