Skip to main content
Glama

BMAD MCP Server

by Dali1789
BMAD_WORKFLOW_SYSTEM.mdโ€ข12.4 kB
# BMAD-METHOD Workflow System ๐Ÿš€ ## Overview Das **BMAD-METHOD Workflow System** ist eine vollstรคndige Implementierung der BMAD-Methodik mit intelligenter Agent-Orchestrierung, Quality Gates und automatischer Workflow-Steuerung. Das System kombiniert bewรคhrte Software-Entwicklungspraktiken mit KI-gestรผtzter Automation und semantischer Code-Analyse. ## ๐Ÿ—๏ธ System-Architektur ### Core Components ``` โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ BMAD Workflow Engine โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ โ”‚ Orchestrator โ”‚ โ”‚ Quality Gates โ”‚ โ”‚ Agent Manager โ”‚ โ”‚ โ”‚ โ”‚ Agent โ”‚ โ”‚ Manager โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Coder โ”‚ โ”‚ BMAD โ”‚ โ”‚ Quality โ”‚ โ”‚ Agent โ”‚ โ”‚ Agents โ”‚ โ”‚ Gates โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ System โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ ``` ## ๐Ÿ”„ BMAD-METHOD Workflows ### 1. Planning Workflow ``` Idea Generation โ†’ Analyst Research โ†’ Project Brief โ†’ PRD Creation โ†’ Architecture โ†’ Development Ready ``` **States & Transitions:** - **idea_generation**: Initial project concept - **analyst_research**: Market & technical analysis - **project_brief**: Executive summary & scope - **prd_creation**: Product requirements document - **architecture**: Technical design & architecture - **development_ready**: Ready for implementation ### 2. Core Development Cycle ``` Draft โ†’ Risk Profiling โ†’ Validation โ†’ Development โ†’ QA Check โ†’ Ready for Review โ†’ QA Review โ†’ Quality Gate โ†’ Completed ``` **Story Lifecycle:** - **draft**: Initial story creation - **risk_profiling**: Risk assessment (@qa *risk) - **validation**: Requirements validation - **development**: Implementation phase - **qa_check**: Quality assurance testing - **ready_for_review**: Pre-review checklist - **qa_review**: Comprehensive review (@qa *review) - **quality_gate**: Final quality gate (@qa *gate) - **completed**: Story done & approved ## ๐Ÿค– Agent Ecosystem ### Core BMAD Agents 1. **Analyst Agent** (`analyst`) - Market research & analysis - Requirements gathering - Competitive analysis - Commands: `*research`, `*analyze`, `*investigate` 2. **Architect Agent** (`architect`) - System design & architecture - Technical decision making - Design patterns & standards - Commands: `*create-architecture`, `*design`, `*review-architecture` 3. **Project Manager** (`pm`) - Project coordination & planning - Stakeholder management - Resource allocation - Commands: `*create-prd`, `*plan`, `*coordinate` 4. **Developer Agent** (`dev`) - Code implementation - Technical development - Code review & optimization - Commands: `*implement`, `*code`, `*optimize` 5. **QA Agent** (`qa`) - Quality assurance & testing - Quality gate management - Comprehensive reviews - Commands: `*risk`, `*design`, `*trace`, `*nfr`, `*review`, `*gate` ### ๐Ÿ” Coder Agent (`coder`) **Advanced Semantic Code Analysis and Editing** Der Coder Agent erweitert das BMAD-System um professionelle Code-Analyse und -Editierung: #### Core Capabilities: - **Symbol Analysis**: Finde & analysiere Code-Symbole semantisch - **Reference Tracking**: Verfolge Symbol-Referenzen durch gesamte Codebase - **Intelligent Editing**: Prรคzise Code-Modifikationen mit Kontext - **Project Analysis**: Automatische Codebase-Analyse und -Struktur - **Pattern Search**: Erweiterte Code-Pattern-Suche - **Memory Management**: Persistent projekt-spezifisches Wissen #### Available Tools (via MCP): ``` bmad_coder_activate_project - Projekt fรผr semantische Analyse aktivieren bmad_coder_find_symbol - Symbole semantisch finden bmad_coder_get_symbols_overview - Symbol-รœbersicht einer Datei bmad_coder_find_referencing_symbols - Symbol-Referenzen finden bmad_coder_insert_after_symbol - Code nach Symbol einfรผgen bmad_coder_replace_symbol_body - Symbol-Inhalt ersetzen bmad_coder_execute_shell_command - Shell-Kommandos ausfรผhren bmad_coder_search_for_pattern - Erweiterte Pattern-Suche bmad_coder_write_memory - Projekt-Wissen speichern bmad_coder_read_memory - Gespeichertes Wissen laden bmad_coder_list_memories - Verfรผgbare Memories listen ``` #### Workflow Integration: Der Coder Agent wird automatisch in kritische Workflow-Phasen eingebunden: - **Architecture Phase**: Bestehende Code-Struktur analysieren - **Development Phase**: Semantic Code Insertion & Modification - **QA Phase**: Code-Quality & Pattern-Validation - **Review Phase**: Comprehensive Code Analysis ## ๐Ÿ›ก๏ธ Quality Gates System ### @qa Command Suite Implementiert alle 6 Quality Gate Commands der BMAD-METHOD: #### 1. `@qa *risk {story}` **Risk Assessment & Profiling** - Technical complexity analysis - Dependency risk evaluation - Time estimation validation - Mitigation strategy generation #### 2. `@qa *design {story}` **Test Strategy Design** - Test type determination (unit, integration, e2e) - Test scenario generation from acceptance criteria - Automation plan creation - Quality criteria definition #### 3. `@qa *trace {story}` **Requirements Tracing** - Acceptance criteria โ†’ Implementation mapping - Test coverage validation - Gap identification & reporting - Traceability matrix generation #### 4. `@qa *nfr {story}` **Non-Functional Requirements Check** - Performance criteria validation - Security requirements check - Usability standards compliance - Scalability & reliability assessment #### 5. `@qa *review {story}` **Comprehensive Story Review** - Requirements quality assessment - Implementation review - Testing completeness check - Documentation validation - Overall quality scoring (A+ to F) #### 6. `@qa *gate {story}` **Quality Gate Assessment** - Final quality certification - Approval status determination - Quality certificate generation - Release readiness validation ## ๐Ÿš€ Workflow Engine Features ### Automation & Intelligence - **Event-Driven Automation**: Automatic state transitions based on conditions - **Smart Agent Routing**: Context-aware agent assignment - **Quality Gate Enforcement**: Mandatory quality checks at key stages - **Workflow Monitoring**: Real-time progress tracking - **Performance Metrics**: Comprehensive analytics & reporting ### Session Management - **Persistent Contexts**: Project & story state preservation - **Session Tracking**: Multi-agent collaboration history - **Context Loading**: Automatic state restoration - **Workflow Recovery**: Resume interrupted workflows ### Integration Capabilities - **MCP Server Integration**: All tools accessible via Model Context Protocol - **Agent Registration**: Dynamic agent discovery & registration - **Event Handlers**: Custom workflow event processing - **Extensible Architecture**: Plugin-based agent system ## ๐Ÿ“Š Workflow Monitoring & Reporting ### Real-Time Monitoring - **Project Status**: Current state, progress percentage, active agents - **Story Tracking**: Development phase, quality gate status, time tracking - **Agent Activity**: Command execution, interaction history, performance metrics - **Quality Metrics**: Gate pass/fail rates, issue tracking, trend analysis ### Comprehensive Reports - **Workflow Summary**: Duration, completion rate, bottlenecks - **Agent Interactions**: Command usage, collaboration patterns - **Quality Gate Analysis**: Success rates, common issues, recommendations - **Automation Events**: Rule triggers, performance optimization ## ๐Ÿ”ง Configuration & Setup ### Workflow Types 1. **Full Workflow**: Complete BMAD-METHOD implementation (4-8 weeks) 2. **Planning Only**: Requirements & architecture phase (1-2 weeks) 3. **Development Only**: Implementation & quality phase (2-6 weeks) ### Agent Configuration ```python # Register agents with workflow engine workflow_engine.register_agent("serena", serena_bridge_agent) workflow_engine.register_agent("analyst", analyst_agent) workflow_engine.register_agent("architect", architect_agent) workflow_engine.register_agent("pm", project_manager_agent) workflow_engine.register_agent("dev", developer_agent) workflow_engine.register_agent("qa", quality_agent) ``` ### Automation Rules ```python # Example automation rule automation_rule = { "name": "auto_advance_after_qa", "conditions": {"current_state": "qa_review"}, "action": {"type": "advance_workflow", "target_state": "quality_gate"} } workflow_engine.add_automation_rule(automation_rule) ``` ## ๐Ÿ“ˆ Performance & Metrics ### Test Results (Latest Integration Test) ``` โœ… 7/7 Tests Passed (100% Success Rate) โœ… Workflow Engine Initialization โœ… Complete Project Workflow โœ… Story Development Cycle โœ… Quality Gates System (6/6 commands) โœ… Agent Coordination (6 agent types) โœ… Workflow Monitoring & Reporting โœ… Workflow Automation ``` ### Production Readiness - **Fully Tested**: Comprehensive integration testing - **Error Handling**: Robust error recovery & logging - **Performance Optimized**: Efficient state management - **Scalable Architecture**: Multi-project & multi-agent support ## ๐Ÿš€ Getting Started ### 1. Start New Project Workflow ```python result = await workflow_engine.start_project_workflow( project_name="My BMAD Project", initial_idea="Intelligent system for...", workflow_type="full" ) ``` ### 2. Create Story in Development Cycle ```python story_result = await workflow_engine.start_story_cycle( workflow_id=workflow_id, story_title="User Authentication", story_description="Implement secure user auth system" ) ``` ### 3. Execute Quality Gates ```python # Risk assessment risk_result = await workflow_engine.run_quality_gate( workflow_id=workflow_id, story_id=story_id, gate_type="risk" ) # Comprehensive review review_result = await workflow_engine.run_quality_gate( workflow_id=workflow_id, story_id=story_id, gate_type="review" ) ``` ### 4. Monitor Workflow Progress ```python status = await workflow_engine.get_workflow_status(workflow_id) report = await workflow_engine.generate_workflow_report(workflow_id) ``` ## ๐Ÿ”ฎ Future Enhancements ### Planned Features - **AI-Powered Recommendations**: Machine learning for workflow optimization - **Advanced Analytics**: Predictive project success metrics - **Integration Hub**: Connect external tools (Jira, GitHub, Slack) - **Custom Agent Plugins**: Extensible agent marketplace - **Workflow Templates**: Pre-defined industry-specific workflows ### Coder Agent Enhancements - **Multi-Language Support**: Expand semantic analysis capabilities - **Code Generation**: AI-assisted code generation via semantic analysis - **Refactoring Assistant**: Intelligent code restructuring - **Architecture Visualization**: Dynamic system architecture mapping --- **BMAD-METHOD Workflow System** - *Transforming software development through intelligent automation and quality-first methodology* ๐Ÿ† *Developed with โค๏ธ for the BMAD Community*

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/Dali1789/bmad-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server