devflow-mcp

devflow-mcp

A production-ready MCP server that provides AI assistants with comprehensive GitHub developer tooling including PR analysis, code review, changelog generation, dependency auditing, commit summarization, and refactoring suggestions.

Category
Visit Server

README

devflow-mcp

A production-ready Model Context Protocol server that gives AI assistants deep GitHub developer tooling — PR analysis, code review, changelog generation, dependency auditing, commit summarization, and refactoring suggestions.

Features

  • 6 MCP tools covering the full developer workflow
  • Heuristic analysis — no external LLM calls, fast and deterministic
  • OSV.dev integration for real vulnerability data (npm and PyPI)
  • LRU cache with TTL to minimize GitHub API calls
  • Token-bucket rate limiter to stay within GitHub's limits
  • Zero any — strict TypeScript throughout
  • ≥80% test coverage with MSW-mocked HTTP

Requirements

  • Node.js 18+
  • A GitHub Personal Access Token with repo scope

Installation

npm install -g devflow-mcp

Or run directly with npx:

npx devflow-mcp

Or clone and build:

git clone https://github.com/yourorg/devflow-mcp
cd devflow-mcp
npm install
npm run build

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "devflow": {
      "command": "npx",
      "args": ["devflow-mcp"],
      "env": {
        "GITHUB_TOKEN": "ghp_your_token_here"
      }
    }
  }
}

Config file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Tools

analyze_pr

Analyzes a GitHub pull request for risk, security findings, and merge readiness.

Parameters:

Name Type Required Description
owner string yes Repository owner
repo string yes Repository name
pr_number number yes Pull request number
focus string[] no Limit analysis to: security, performance, logic, style

Returns: risk_score (0-100), risk_level, findings[], change_summary, merge_recommendation


review_code

Reviews a code snippet for quality, security issues, and improvement opportunities.

Parameters:

Name Type Required Description
code string yes Source code to review
language string yes Programming language
context string no Optional context about what the code does

Returns: overall_score (1-10), issues[] with severity + fix suggestions, positive_observations[], refactor_priority


generate_changelog

Generates a changelog between two Git refs from commit history.

Parameters:

Name Type Required Description
owner string yes Repository owner
repo string yes Repository name
from_ref string yes Base ref (tag, SHA, branch)
to_ref string yes Target ref
format string no markdown (default), json, plain
group_by string no type (default), author, date
include_authors boolean no Include author names (default: true)

Returns: changelog string, commit_count, stats per category, breaking_changes[]


audit_dependencies

Audits project dependencies against the OSV vulnerability database.

Parameters:

Name Type Required Description
owner string yes Repository owner
repo string yes Repository name
ecosystem string yes npm, pypi, or auto
severity_threshold string no Minimum severity to report: low (default), moderate, high, critical

Returns: vulnerabilities[] with CVE IDs, fix versions, and fix commands; audit_passed, stats per severity level, osv_query_timestamp


summarize_commits

Summarizes recent commits on a branch into a human-readable digest.

Parameters:

Name Type Required Description
owner string yes Repository owner
repo string yes Repository name
branch string no Branch name (default: repo default)
since string no ISO date or relative (7d, 24h, 2w, 1m)
limit number no Max commits (default: 50)
output_style string no digest (default), standup, detailed

Returns: summary string, categories (features/fixes/docs/refactors/chores/other), authors[], commit_count


suggest_refactor

Analyzes code for refactoring opportunities ranked by impact-to-effort ratio.

Parameters:

Name Type Required Description
code string yes Source code to analyze
language string yes Programming language
goals string[] no Focus areas: readability, performance, testability, maintainability

Returns: suggestions[] with rationale and effort estimates, priority_order[], original_complexity_score


Development

# Install dependencies
npm install

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Type-check and build
npm run build

# Lint
npm run lint

# Format
npm run format

# Start the server (after build)
npm start

Project Structure

src/
  index.ts              # Entry point
  server.ts             # MCP server registration
  tools/                # Tool handlers (one per tool)
  github/               # GitHub API clients
  lib/                  # Shared utilities
    cache.ts            # LRU cache with TTL
    rate-limiter.ts     # Token-bucket rate limiter
    commit-parser.ts    # Conventional commit parser
    diff-parser.ts      # Git diff parser
    risk-scorer.ts      # PR risk scoring heuristics
    errors.ts           # Typed MCP errors
  providers/
    osv.ts              # OSV.dev vulnerability API
tests/
  integration/          # Full MCP server tests via InMemoryTransport
  tools/                # Unit tests per tool handler
  lib/                  # Unit tests for utilities

Test Strategy

  • Unit tests: each tool handler and library mocked with vi.mock
  • Integration tests: full MCP client↔server round-trip via InMemoryTransport, HTTP intercepted with MSW
  • HTTP mocking: MSW v2 (msw/node) — no real network calls in tests
  • Coverage: ≥80% branches required (npm run test:coverage)

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new behavior
  4. Ensure npm run build && npm run test:coverage && npm run lint all pass
  5. Open a pull request

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured