Chiro ERP - Issue Pipeline Orchestrator
Automates GitHub issue-to-PR workflows through a multi-stage pipeline with AI agents that analyze requirements, design solutions, implement code, generate tests, and perform code reviews, creating pull requests from labeled issues.
Enables automated pipeline execution triggered by issue labels, processing issues through the complete development workflow via GitHub Actions integration.
Powers role-based AI agents (Analyst, Architect, Developer, Tester, Reviewer) that drive the automated software development pipeline stages using OpenAI's API.
Click on "Deploy 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., "@Chiro ERP - Issue Pipeline Orchestrator process issue #42 automatically"
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.
Chiro ERP - Issue Pipeline Orchestrator
MCP Server for automated issue-to-PR pipeline with role-based AI agents.
Overview
This MCP server automates the software development workflow by processing GitHub issues through a multi-stage pipeline with specialized AI agents:
Analyst Agent: Analyzes requirements and creates user stories
Architect Agent: Designs technical solutions following DDD/CQRS patterns
Developer Agent: Implements features in C#
Tester Agent: Creates comprehensive tests
Reviewer Agent: Reviews code for quality and compliance
Related MCP server: GitPilot MCP
Features
π€ Automated issue-to-PR workflow
π― Role-based AI agents with domain expertise
ποΈ Architecture-aware (follows your ADRs and patterns)
π HIPAA compliance checks
π§ͺ Automatic test generation
π Code review automation
ποΈ Human approval gates for complex changes
π Complexity analysis
π Retry and approval mechanisms
Setup
1. Install Dependencies
cd mcp-servers/issue-pipeline-orchestrator
npm install2. Configure Environment
Copy .env.example to .env and fill in your credentials:
cp .env.example .envRequired environment variables:
GITHUB_TOKEN: GitHub Personal Access Token with repo accessGITHUB_OWNER: Your GitHub username or organizationGITHUB_REPO: Repository nameOPENAI_API_KEY: OpenAI API key
3. Build
npm run build4. Configure MCP in VS Code
Add to your VS Code settings (.vscode/settings.json):
{
"mcpServers": {
"chiro-erp-pipeline": {
"command": "node",
"args": [
"c:/Users/PC/coding/mvp/mcp-servers/issue-pipeline-orchestrator/dist/index.js"
],
"env": {
"GITHUB_TOKEN": "your_token",
"GITHUB_OWNER": "your_username",
"GITHUB_REPO": "mvp",
"OPENAI_API_KEY": "your_key"
}
}
}
}Usage
Process an Issue Automatically
// In GitHub Copilot Chat
@workspace /tools process_issue --issueNumber 42Check Pipeline Status
@workspace /tools get_pipeline_status --issueNumber 42Analyze Issue Complexity
@workspace /tools analyze_issue_complexity --issueNumber 42Approve a Stage
@workspace /tools approve_pipeline_stage --issueNumber 42 --stage "architecture" --approved trueRetry a Failed Stage
@workspace /tools retry_pipeline_stage --issueNumber 42 --stage "implementation"GitHub Actions Integration
Create .github/workflows/auto-pipeline.yml:
name: Automated Issue Pipeline
on:
issues:
types: [labeled]
jobs:
auto-implement:
if: contains(github.event.issue.labels.*.name, 'auto-implement')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install MCP Server
run: |
cd mcp-servers/issue-pipeline-orchestrator
npm install
npm run build
- name: Process Issue
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_OWNER: ${{ github.repository_owner }}
GITHUB_REPO: ${{ github.event.repository.name }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
node mcp-servers/issue-pipeline-orchestrator/dist/index.js << EOF
{
"method": "tools/call",
"params": {
"name": "process_issue",
"arguments": {
"issueNumber": ${{ github.event.issue.number }}
}
}
}
EOFPipeline Stages
1. Analysis (Analyst Agent)
Extracts requirements from issue
Creates user stories
Defines acceptance criteria
Identifies dependencies
2. Architecture (Architect Agent)
Designs technical solution
Follows DDD/CQRS patterns
Updates ADRs if needed
Defines integration points
3. Implementation (Developer Agent)
Generates C# code
Follows project structure
Implements CQRS handlers
Creates domain events
4. Testing (Tester Agent)
Generates unit tests
Creates integration tests
Ensures test coverage
Tests edge cases
5. Code Review (Reviewer Agent)
Reviews code quality
Checks security issues
Validates HIPAA compliance
Provides feedback
Complexity Scoring
The system automatically analyzes issues and assigns complexity scores:
Low (0-4): Simple bugs, minor enhancements - auto-implement
Medium (5-9): Standard features - auto-implement with review
High (10+): Complex changes - requires human oversight
Human Approval Gates
Approval is automatically required for:
Breaking changes
Architectural decisions
Security-sensitive code
HIPAA compliance implications
High complexity scores
Customization
Adding New Agent Roles
Edit src/agents/roles.ts:
export const AGENT_ROLES: Record<string, AgentRole> = {
// ... existing roles
myCustomAgent: {
name: "My Custom Agent",
description: "Does something specific",
systemPrompt: "You are...",
tools: ["tool1", "tool2"],
maxTokens: 2000,
temperature: 0.3
}
};Modifying Pipeline Stages
Edit src/orchestrator.ts in the initializePipeline method.
Troubleshooting
Pipeline Stuck
Check the pipeline status and use retry:
@workspace /tools retry_pipeline_stage --issueNumber 42 --stage "implementation"Rate Limits
The system respects GitHub and OpenAI rate limits. If you hit limits:
Reduce parallel processing
Add delays between stages
Use a higher-tier OpenAI plan
Agent Errors
Check agent outputs in GitHub issue comments. Common issues:
Insufficient context
Ambiguous requirements
Missing dependencies
Best Practices
Label Issues Appropriately: Use labels like
auto-implement,bug,enhancementto help complexity analysisClear Issue Descriptions: Provide detailed requirements and acceptance criteria
Review Generated PRs: Even with automation, human review is valuable
Start Small: Begin with simple issues to calibrate the system
Monitor Costs: Track OpenAI API usage as complex issues can use significant tokens
Security
Never commit
.envfileUse GitHub Secrets for CI/CD
Rotate tokens regularly
Review security-sensitive changes manually
License
MIT
Available Tools
7 toolsanalyze_issue_complexityC
Analyze an issue and determine its complexity score and recommended approach
Inputs: issueNumber (required).
approve_pipeline_stageC
Approve a pipeline stage that requires human review
Inputs: issueNumber (required), stage (required), approved (required), comments.
get_cost_reportC
Get a detailed cost report of OpenAI API usage for the current month
Inputs: detailed.
get_pipeline_statusC
Get the current status of an issue in the pipeline
Inputs: issueNumber (required).
list_github_mcp_toolsB
List available tools from GitHub MCP server (if enabled)
Inputs: no named parameters.
process_issueC
Automatically process a GitHub issue through the full development pipeline with role-based AI agents
Inputs: issueNumber (required), skipAnalyst, skipArchitect, dryRun.
retry_pipeline_stageC
Retry a failed pipeline stage with optional modifications
Inputs: issueNumber (required), stage (required), instructions.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 7 tools
Most tools have distinct purposes, but 'process_issue' and 'analyze_issue_complexity' could potentially overlap in scope since both involve analyzing issues. The other tools target specific pipeline operations, approvals, reporting, and external tool listing, making them clearly differentiated.
The naming is mixed with some tools using verb_noun patterns like 'analyze_issue_complexity' and 'get_pipeline_status', while others like 'list_github_mcp_tools' and 'retry_pipeline_stage' follow similar conventions. However, 'process_issue' is a bit vague compared to the others, and there's no consistent prefix or style across all tools, leading to a moderate score.
With 7 tools, this server is well-scoped for orchestrating an issue pipeline. The count is appropriate for handling pipeline stages, approvals, retries, status checks, complexity analysis, and reporting, without being overwhelming or too sparse for the domain.
The tool set covers core pipeline operations like processing, status checking, approvals, and retries, along with reporting and external tool integration. A minor gap might be the lack of tools for configuring or managing the pipeline itself, but the existing tools support the main workflows effectively.
Maintenance
Related MCP Connectors
Assign Linear, Jira or GitHub issues to an AI coding agent team that plans, builds, reviews, tests.
Software factory for AI agents: issue and PR reviews, auto-fixes, stacked PRs and a merge queue.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Autonomous AI developers on your own infrastructure: assign a task, get a pull request.
Related MCP Servers
- -licenseBqualityNot gradedmaintenanceEnables AI-driven orchestration of GitHub development workflows including automated issue analysis, code generation, code review, and PR creation through multiple specialized agents. Integrates with GitHub Actions to automate the complete development process from issue to pull request.7-
- AlicenseCqualityDmaintenanceAn autonomous agent that automates GitHub contributions end-to-end, from issue analysis and code changes to pull requests, conflict resolution, and review updates.172Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI coding agents to orchestrate the full software development lifecycle on GitHub, including planning, issue creation, code review, security triage, and release readiness checks.1377 npm1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to automate GitHub repository management, issue tracking, and commits using natural language.-