Skip to content

Getting Started: Workflow & Development Guidance โ€‹

This guide shows you how to use the new workflow guidance and development guidance tools to get intelligent recommendations for your specific project goals.

๐ŸŽฏ Overview โ€‹

The MCP ADR Analysis Server now includes two powerful meta-tools that act as intelligent assistants:

  • get_workflow_guidance - Recommends optimal tool sequences based on your goals
  • get_development_guidance - Translates architectural decisions into specific coding tasks

These tools solve the "tool discovery" problem and ensure you follow best practices to achieve your goals efficiently.

๐Ÿš€ Quick Start โ€‹

Step 1: Get Workflow Guidance โ€‹

Start by describing what you want to accomplish:

Tool Call:

get_workflow_guidance

Parameters:

json
{
  "goal": "analyze new project and set up architectural documentation",
  "projectContext": "new_project",
  "availableAssets": ["codebase"],
  "timeframe": "thorough_review",
  "primaryConcerns": ["maintainability", "scalability"]
}

What You Get:

  • ๐Ÿ“‹ Recommended Tool Sequence - Step-by-step workflow
  • ๐Ÿ”„ Alternative Approaches - Different paths based on constraints
  • โฑ๏ธ Timeline Estimates - Realistic time expectations
  • ๐Ÿ“Š Success Metrics - How to measure progress
  • ๐Ÿ’ก Pro Tips - Best practices and common pitfalls

Step 2: Get Development Guidance โ€‹

Once you have architectural decisions, get specific implementation guidance:

Tool Call:

get_development_guidance

Parameters:

json
{
  "developmentPhase": "implementation",
  "adrsToImplement": ["ADR-001: REST API Design", "ADR-002: Database Schema"],
  "technologyStack": ["TypeScript", "Node.js", "PostgreSQL"],
  "teamContext": {
    "size": "small_team",
    "experienceLevel": "mixed"
  },
  "focusAreas": ["API design", "testing strategy"]
}

What You Get:

  • ๐Ÿ—๏ธ Implementation Roadmap - Phase-by-phase development plan
  • ๐Ÿ“‹ Specific Coding Tasks - ADRs translated to actionable tasks
  • ๐Ÿงช Testing Strategy - Comprehensive testing approach
  • ๐Ÿ“Š Quality Gates - Success criteria and checkpoints
  • ๐Ÿš€ Deployment Guidance - Environment and deployment strategy

๐Ÿ“‹ Common Scenarios โ€‹

Scenario 1: New Project Analysis โ€‹

Goal: Analyze a new React TypeScript project and set up architectural documentation.

json
{
  "goal": "analyze new project and set up architectural documentation",
  "projectContext": "new_project",
  "availableAssets": ["codebase"],
  "timeframe": "thorough_review"
}

Expected Workflow:

  1. analyze_project_ecosystem โ†’ Discover technology stack
  2. get_architectural_context โ†’ Generate architectural insights + ADR setup
  3. suggest_adrs โ†’ Get ADR recommendations
  4. generate_adr_from_decision โ†’ Create specific ADRs
  5. get_development_guidance โ†’ Get implementation roadmap

Scenario 2: Legacy System Modernization โ€‹

Goal: Modernize a legacy codebase with proper architectural documentation.

json
{
  "goal": "modernize legacy system with architectural documentation",
  "projectContext": "legacy_codebase",
  "availableAssets": ["codebase", "documentation"],
  "timeframe": "comprehensive_audit",
  "primaryConcerns": ["technical_debt", "maintainability", "security"]
}

Expected Workflow:

  1. analyze_project_ecosystem โ†’ Understand current state
  2. get_architectural_context โ†’ Assess architectural maturity
  3. suggest_adrs โ†’ Identify modernization decisions
  4. generate_rules โ†’ Extract current patterns
  5. get_development_guidance โ†’ Create modernization roadmap

Scenario 3: Security Audit & Compliance โ€‹

Goal: Perform security audit and implement data protection measures.

json
{
  "goal": "security audit and data protection implementation",
  "projectContext": "existing_without_adrs",
  "primaryConcerns": ["security", "compliance"],
  "timeframe": "comprehensive_audit"
}

Expected Workflow:

  1. analyze_content_security โ†’ Identify sensitive data
  2. generate_content_masking โ†’ Create masking strategy
  3. configure_custom_patterns โ†’ Set up security patterns
  4. validate_content_masking โ†’ Verify protection
  5. get_development_guidance โ†’ Implement security measures

Scenario 4: PRD to Implementation โ€‹

Goal: Convert a Product Requirements Document to a working implementation.

json
{
  "goal": "convert PRD to implementation plan",
  "projectContext": "greenfield",
  "availableAssets": ["PRD.md"],
  "timeframe": "thorough_review"
}

Expected Workflow:

  1. generate_adrs_from_prd โ†’ Convert PRD to ADRs
  2. generate_adr_todo (phase: "both", linkAdrs: true) โ†’ Create TDD implementation tasks
  3. get_development_guidance โ†’ Get detailed development plan
  4. compare_adr_progress โ†’ Validate implementation quality and detect mock patterns
  5. analyze_deployment_progress โ†’ Track implementation

๐Ÿ”ง Development Guidance Deep Dive โ€‹

The get_development_guidance tool provides phase-specific guidance:

Planning Phase โ€‹

json
{
  "developmentPhase": "planning",
  "technologyStack": ["TypeScript", "React", "Node.js"],
  "teamContext": {"size": "small_team", "experienceLevel": "mixed"}
}

Focus: Project structure, tooling setup, development workflow

Implementation Phase โ€‹

json
{
  "developmentPhase": "implementation",
  "adrsToImplement": ["ADR-001: API Design"],
  "focusAreas": ["API design", "database schema"]
}

Focus: Specific coding tasks, design patterns, implementation strategies

Testing Phase โ€‹

json
{
  "developmentPhase": "testing",
  "focusAreas": ["unit testing", "integration testing", "e2e testing"]
}

Focus: Testing strategies, quality gates, automation setup

Deployment Phase โ€‹

json
{
  "developmentPhase": "deployment",
  "focusAreas": ["CI/CD pipeline", "environment setup", "monitoring"]
}

Focus: Deployment strategies, environment configuration, monitoring setup

Validation & Quality Assurance Phase โ€‹

json
{
  "developmentPhase": "validation",
  "focusAreas": ["mock detection", "ADR compliance", "production readiness"]
}

Focus: Implementation validation, mock vs production detection, ADR goal compliance

๐Ÿงช Enhanced TDD and Validation Workflow โ€‹

The MCP server now includes sophisticated validation capabilities to ensure high-quality implementations:

New Validation-Focused Scenarios โ€‹

Scenario 5: TDD Implementation with Validation โ€‹

Goal: Implement ADRs using test-driven development with comprehensive validation.

json
{
  "goal": "implement ADRs using TDD with quality validation",
  "projectContext": "existing_with_adrs",
  "availableAssets": ["codebase", "ADRs"],
  "timeframe": "thorough_review",
  "primaryConcerns": ["code_quality", "test_coverage", "production_readiness"]
}

Expected Workflow:

  1. generate_adr_todo (phase: "test") โ†’ Generate test specifications
  2. Implement mock tests based on specifications
  3. generate_adr_todo (phase: "production") โ†’ Generate implementation tasks
  4. Implement production code to pass tests
  5. compare_adr_progress (strictMode: true) โ†’ Validate against ADR goals and detect mock patterns
  6. get_development_guidance โ†’ Refine implementation based on validation results

Scenario 6: Quality Assurance and Mock Detection โ€‹

Goal: Validate existing implementations and detect mock code masquerading as production.

json
{
  "goal": "validate implementation quality and detect mock patterns",
  "projectContext": "existing_with_adrs",
  "availableAssets": ["codebase", "ADRs", "todo.md"],
  "primaryConcerns": ["production_readiness", "ADR_compliance"]
}

Expected Workflow:

  1. compare_adr_progress (deepCodeAnalysis: true) โ†’ Comprehensive validation
  2. generate_rules โ†’ Extract architectural rules
  3. validate_rules โ†’ Check rule compliance
  4. get_development_guidance โ†’ Create remediation plan for issues found

Key Validation Parameters โ€‹

When using workflow guidance, consider these validation-specific parameters:

json
{
  "validationRequirements": {
    "mockDetection": true,
    "adrCompliance": true,
    "functionalValidation": true,
    "strictMode": true
  },
  "qualityGates": ["test_coverage", "error_handling", "integration_tests"],
  "productionCriteria": ["real_database_connections", "proper_error_handling", "input_validation"]
}

๐Ÿ’ก Pro Tips โ€‹

1. Start with Workflow Guidance โ€‹

Always begin with get_workflow_guidance to get the optimal tool sequence for your specific situation.

2. Be Specific with Goals โ€‹

The more specific your goal description, the better the recommendations:

  • โŒ "analyze project"
  • โœ… "analyze React TypeScript project for security vulnerabilities and performance optimization"

3. Provide Context โ€‹

Include your team context and constraints for tailored recommendations:

json
{
  "teamContext": {
    "size": "solo",
    "experienceLevel": "junior"
  },
  "timeline": "2 weeks to MVP"
}

4. Use Focus Areas โ€‹

Specify focus areas to get targeted guidance:

json
{
  "focusAreas": ["API design", "testing strategy", "deployment pipeline"]
}

5. Iterate and Refine โ€‹

Use the guidance as a starting point and refine based on your specific findings and constraints.

6. Always Validate Implementation Quality โ€‹

Include validation steps in every workflow:

json
{
  "includeValidation": true,
  "validationLevel": "strict",
  "mockDetection": true,
  "adrCompliance": true
}

7. Use TDD Approach for New Implementations โ€‹

For new ADR implementations, always use the two-phase TDD approach:

  • Phase 1: Generate test specifications with generate_adr_todo (phase: "test")
  • Phase 2: Generate implementation tasks with generate_adr_todo (phase: "production")
  • Validation: Use compare_adr_progress to ensure production readiness

8. Prevent Mock Code in Production โ€‹

Always run compare_adr_progress with strictMode: true to prevent common issues:

  • Mock implementations being considered production-ready
  • Missing error handling and input validation
  • Inadequate integration testing
  • Configuration issues that prevent real deployment

๐ŸŽฏ Success Metrics โ€‹

Track your progress using the success metrics provided by the tools:

  • Immediate Indicators: Quick wins and early signals
  • Progress Milestones: Key checkpoints in your workflow
  • Final Outcomes: Ultimate success criteria for your goals

๐Ÿ”„ Integration with Other Tools โ€‹

The workflow and development guidance tools work seamlessly with all other MCP tools:

  • Analysis Tools: analyze_project_ecosystem, get_architectural_context
  • ADR Tools: suggest_adrs, generate_adr_from_decision, discover_existing_adrs
  • TDD Tools: generate_adr_todo (enhanced with phase-based approach)
  • Validation Tools: compare_adr_progress, generate_rules, validate_rules
  • Quality Tools: analyze_content_security, generate_content_masking
  • Utility Tools: check_ai_execution_status, manage_cache

๐Ÿš€ Next Steps โ€‹

  1. Try the workflow guidance with your current project
  2. Follow the recommended tool sequence
  3. Use development guidance to implement architectural decisions
  4. Track progress using the provided success metrics
  5. Iterate and improve based on your results

The workflow and development guidance tools transform the MCP server into a complete development lifecycle assistant that guides you from architectural planning all the way through to working code!

Released under the MIT License.