# Structured Workflow Server

Enforce disciplined AI-assisted programming workflows by requiring systematic auditing, analysis, and verified outputs at each development phase. Guide AI through structured phases like refactoring, …

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add kingdomseed/structured-workflow-mcp

# Browse available tools
npx -y @smithery/cli@latest tool list kingdomseed/structured-workflow-mcp

# Get full schema for a tool
npx -y @smithery/cli@latest tool get kingdomseed/structured-workflow-mcp refactor_workflow

# Call a tool
npx -y @smithery/cli@latest tool call kingdomseed/structured-workflow-mcp refactor_workflow '{}'
```

## Tools (20)

- `refactor_workflow` — Start a structured refactoring workflow to improve existing code without changing functionality
- `create_feature_workflow` — Start a structured workflow for adding new functionality with integrated testing
- `test_workflow` — Start a focused workflow for writing or improving test coverage
- `tdd_workflow` — Start a Test-Driven Development workflow with Red-Green-Refactor cycles
- `build_custom_workflow` — Build a custom workflow with full control over phases and configuration. Use specific workflow tools (refactor_workflow…
- `setup_guidance` — Get guidance for the SETUP phase - initialize workflow and establish patterns
- `audit_inventory_guidance` — Get guidance for the AUDIT_INVENTORY phase - analyze code and catalog changes
- `compare_analyze_guidance` — Get guidance for the COMPARE/ANALYZE phase - evaluating approaches
- `question_determine_guidance` — Get guidance for the QUESTION_DETERMINE phase - clarify and finalize plan
- `refactor_guidance` — Get guidance for the WRITE/REFACTOR phase - implementing changes
- `lint_guidance` — Get guidance for the LINT phase - verifying code quality
- `iterate_guidance` — Get guidance for the ITERATE phase - fixing issues
- `present_guidance` — Get guidance for the PRESENT phase - summarizing work
- `test_guidance` — Get MANDATORY guidance for the TEST phase - execute tests and validate functionality after refactoring
- `validate_action` — Check if an action follows critical safety rules
- `validate_phase_completion` — Validate that current phase meets all completion requirements before allowing progression
- `user_input_required_guidance` — Handle escalation to user input when iteration limits reached or checkpoints triggered
- `workflow_status` — Check current workflow progress and session state
- `phase_output` — Record the output/results when completing a workflow phase - REQUIRES ACTUAL OUTPUT ARTIFACTS with numbered file naming
- `discover_workflow_tools` — List the workflow guidance tools provided by this MCP server

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get kingdomseed/structured-workflow-mcp <tool-name>
```

---

Source: https://github.com/kingdomseed/structured-workflow-mcp
