MCP PR Workflow Server
This MCP server provides tools and resources to streamline GitHub PR workflows, monitor CI/CD, and notify teams via Slack.
Features
- PR Analysis: Automatically analyze file changes and suggest templates.
- CI Monitoring: Summarize GitHub Actions runs and update PR status.
- Slack Notifications: Send deployment status and custom alerts.
- Follow-up Tasks: Create GitHub issues directly from the PR context.
Setup
- Install dependencies:
npm install
- Configure environment variables:
Create a .env file based on .env.example: ``bash GITHUB_TOKEN=your_github_token SLACK_BOT_TOKEN=xoxb-your-token SLACK_CHANNEL_ID=C12345678 ``
- Build the project:
npm run build
- Run the server:
npm start
Usage in Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"pr-workflow": {
"command": "node",
"args": ["/path/to/mcp-pr-workflow-server/dist/index.js"],
"env": {
"GITHUB_TOKEN": "your_github_token",
"SLACK_BOT_TOKEN": "xoxb-your-token",
"SLACK_CHANNEL_ID": "C12345678"
}
}
}
}
Tools
analyze_file_changes: Analyze PR diffs.suggest_template: Suggest PR templates.analyze_ci_results: Formats CI status.update_pr_status: Adds comments to PRs.send_slack_notification: Generic Slack alerts.notify_deployment_status: Success/failure alerts.create_follow_up_issue: Create GitHub issues.
Resources
team://config/guidelines: PR guidelines.team://config/notifications: Slack preferences.team://config/escalation: CI failure policy.











