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

pr-genie-test

v0.2.1

Published

AI-powered MCP server that converts Azure DevOps work items into complete pull requests. Works with Claude Code, GitHub Copilot, Cursor, and any MCP client.

Readme

pr-genie-mcp

An AI-powered MCP server that converts Azure DevOps work items into complete pull requests. Point it at a work item, and it handles the rest -- branch creation, code changes, build validation, PR submission, and work item updates.

Works with any MCP client: Claude Code, GitHub Copilot, Cursor, Windsurf, and more.

Quick start

1. Install

npm install -g pr-genie-mcp

Or run directly with npx (no install needed):

npx pr-genie-mcp

2. Set environment variables

Create a .env file in your project root, or export these variables:

# Azure DevOps organization URL (both formats supported)
ADO_ORG_URL=https://dev.azure.com/your-org
# ADO_ORG_URL=https://your-org.visualstudio.com

# Default project name
ADO_PROJECT=YourProject

# Personal Access Token (scopes: Work Items R/W, Code R/W, Pull Requests R/W)
ADO_PAT=your-pat-here

3. Connect to your MCP client

See MCP client configuration below.


MCP client configuration

Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "pr-genie": {
      "command": "npx",
      "args": ["-y", "pr-genie-mcp"],
      "env": {
        "ADO_ORG_URL": "https://dev.azure.com/your-org",
        "ADO_PROJECT": "YourProject",
        "ADO_PAT": "your-pat-here"
      }
    }
  }
}

GitHub Copilot (VS Code)

Add to .vscode/mcp.json in your workspace:

{
  "servers": {
    "pr-genie": {
      "command": "npx",
      "args": ["-y", "pr-genie-mcp"],
      "env": {
        "ADO_ORG_URL": "https://dev.azure.com/your-org",
        "ADO_PROJECT": "YourProject",
        "ADO_PAT": "your-pat-here"
      }
    }
  }
}

Cursor

Add to your Cursor MCP settings (Settings > MCP Servers > Add):

{
  "mcpServers": {
    "pr-genie": {
      "command": "npx",
      "args": ["-y", "pr-genie-mcp"],
      "env": {
        "ADO_ORG_URL": "https://dev.azure.com/your-org",
        "ADO_PROJECT": "YourProject",
        "ADO_PAT": "your-pat-here"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "pr-genie": {
      "command": "npx",
      "args": ["-y", "pr-genie-mcp"],
      "env": {
        "ADO_ORG_URL": "https://dev.azure.com/your-org",
        "ADO_PROJECT": "YourProject",
        "ADO_PAT": "your-pat-here"
      }
    }
  }
}

Tip: Instead of putting secrets in config files, set ADO_PAT as a system environment variable and omit it from the env block.


Repository-level configuration (optional)

Create a .pr-genierc.json in your target repository root to customize build, test, and lint commands:

{
  "build": "dotnet build MyApp.sln",
  "test": "dotnet test Tests/Tests.csproj --no-build",
  "lint": "dotnet format --verify-no-changes",
  "testTimeout": 120000,

  "branch": {
    "base": "develop/v4",
    "naming": "users/{user}/wi{id}-{slug}"
  },

  "pr": {
    "draft": true,
    "targetBranch": "develop/v4",
    "mergeStrategy": "squash"
  },

  "safety": {
    "sensitivePatterns": [".env*", "*.key", "*.pem"],
    "maxFilesChanged": 20,
    "maxLinesChanged": 500
  }
}

If no .pr-genierc.json is found, pr-genie auto-detects your project type (Node.js, .NET, Python, Go, Java, Rust) and uses sensible defaults.


Available tools

Discovery

| Tool | Description | |------|-------------| | fetch_work_item | Fetch complete work item with fields, relations, comments, and images | | fetch_work_item_attachments | Download all attachments (images as visual content, text as text) |

Repository setup

| Tool | Description | |------|-------------| | clone_repo | Clone an ADO Git repository with PAT auth | | create_feature_branch | Create a feature branch from the default branch | | push_branch | Push current branch to remote |

Code intelligence

| Tool | Description | |------|-------------| | detect_project_type | Identify language, framework, build system, test runner, linter | | search_code | Full-text git grep search with context lines | | get_coding_standards | Read .editorconfig, linter configs, CONTRIBUTING.md, CODEOWNERS |

Build and validation

| Tool | Description | |------|-------------| | run_build | Execute build command (from config or auto-detect) | | run_tests | Run test suite with configurable targeting | | run_linter | Run linter with optional auto-fix | | validate_no_secrets | Scan staged changes for hardcoded secrets |

Pull request lifecycle

| Tool | Description | |------|-------------| | create_pull_request | Create a PR in Azure DevOps | | link_pr_to_work_item | Create bidirectional PR/work item link | | get_pr_details | Fetch PR metadata, reviewer votes, threads, build status | | reply_to_pr_comment | Post reply to a PR comment thread | | update_pr_thread_status | Mark thread as fixed, resolved, won't fix, etc. |

Work item management

| Tool | Description | |------|-------------| | add_work_item_comment | Post comment to work item discussion | | update_work_item_state | Change work item state, assignee, or tags | | ping | Health check -- verifies the server is running |

Browser tools (optional)

Requires playwright to be installed separately.

| Tool | Description | |------|-------------| | browser_launch | Launch browser and navigate to URL | | browser_click | Click elements by selector | | browser_type | Type into input fields | | browser_close | Close browser session |

# Install playwright for browser tools
npm install playwright
npx playwright install chromium

Guided prompts

pr-genie includes three guided workflows that orchestrate multiple tools:

| Prompt | Description | |--------|-------------| | generate-pr | End-to-end: work item -> clone -> branch -> implement -> validate -> PR | | resolve-pr-comments | Address reviewer feedback: analyze threads -> fix code -> reply -> push | | repro-bug | Visual bug reproduction with browser screenshots |


How it works

  1. You point your AI assistant at a work item: "Implement work item #12345"
  2. pr-genie fetches the work item, clones the repo, creates a branch
  3. Your AI reads the code, understands the codebase, implements changes
  4. pr-genie runs builds, tests, linters, scans for secrets
  5. pr-genie creates the PR, links it to the work item, updates the state

The AI stays in the loop at every step. You review and approve before anything ships.


Prerequisites

  • Node.js 20 or later
  • Git installed and in PATH
  • Azure DevOps PAT with Work Items, Code, and Pull Requests read/write scopes

Development

git clone https://github.com/AirWalk-Digital/Camp-AIR.git
cd Camp-AIR/pr-genie
npm install
npm run build
npm start

Watch mode for development:

npm run dev

License

MIT