devflow-mcp
Provides tools for GitHub repository analysis and management, including pull request analysis, code review, changelog generation, dependency auditing, commit summarization, and refactoring suggestions.
Integrates with OSV.dev to audit JavaScript/TypeScript dependencies from npm against vulnerability databases, identifying security issues and providing fix recommendations.
Integrates with OSV.dev to audit Python dependencies from PyPI against vulnerability databases, identifying security issues and providing fix recommendations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@devflow-mcpanalyze PR #42 in octocat/Hello-World for security risks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
reposcope
Installation
npm install -g devflow-mcpOr run directly with npx:
npx devflow-mcpOr clone and build:
git clone https://github.com/yourorg/devflow-mcp
cd devflow-mcp
npm install
npm run buildClaude 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.jsonWindows:
%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 |
| string | yes | Repository owner |
| string | yes | Repository name |
| number | yes | Pull request number |
| string[] | no | Limit analysis to: |
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 |
| string | yes | Source code to review |
| string | yes | Programming language |
| 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 |
| string | yes | Repository owner |
| string | yes | Repository name |
| string | yes | Base ref (tag, SHA, branch) |
| string | yes | Target ref |
| string | no |
|
| string | no |
|
| 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 |
| string | yes | Repository owner |
| string | yes | Repository name |
| string | yes |
|
| string | no | Minimum severity to report: |
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 |
| string | yes | Repository owner |
| string | yes | Repository name |
| string | no | Branch name (default: repo default) |
| string | no | ISO date or relative ( |
| number | no | Max commits (default: 50) |
| string | no |
|
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 |
| string | yes | Source code to analyze |
| string | yes | Programming language |
| string[] | no | Focus areas: |
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 startProject 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 utilitiesTest Strategy
Unit tests: each tool handler and library mocked with
vi.mockIntegration tests: full MCP client↔server round-trip via
InMemoryTransport, HTTP intercepted with MSWHTTP mocking: MSW v2 (
msw/node) — no real network calls in testsCoverage: ≥80% branches required (
npm run test:coverage)
Contributing
Fork the repository
Create a feature branch
Add tests for new behavior
Ensure
npm run build && npm run test:coverage && npm run lintall passOpen a pull request
License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/boranesn/devflow-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server