An MCP server that provides a declarative way to define, run, and monitor multi-agent workflows using YAML. Integrates with Claude Code for agent skills and supports embedding agentic execution layers like Copilot SDK for extensibility.
Quick Start • Features • Examples • Contributing
WorkflowMCP is an MCP server that lets you declare multi‑agent workflows in YAML, execute them via Claude Code agent skills, and monitor runs in real time. It targets solo AI developers who want to prototype agent‑based systems without writing procedural glue.
Example:
$ workflow-mcp parse --file example.yaml
{
"name": "example",
"steps": [
{"id":0,"agent":"researcher","tool":null,"depends_on":[]},
{"id":1,"agent":"summarizer","tool":null,"depends_on":[0]},
{"id":2,"agent":"translator","tool":null,"depends_on":[1]}
]
}
Solo developers struggle to orchestrate multi-agent agents because they must write procedural code for each step, making workflows hard to visualize, modify, and share. Current methods involve ad-hoc scripts or complex orchestration tools that are overkill for solo use.
| Feature | Description |
|---|---|
| Declarative YAML Workflow Definition | Define agents, tools, and step dependencies in YAML; the engine builds a directed acyclic graph (DAG) for execution. |
| Real‑time Execution Monitoring | Subscribe to Claude Code execution streams, record timestamps/token usage, and export metrics in Prometheus format or JSON lines. |
| Extensible SDK Integration | Load custom agent skills through the Copilot SDK entrypoint; supports dynamic loading from local files or git repositories. |
| Workflow Validation & Visualization | Validate YAML against the workflow DSL and generate Mermaid diagrams for quick inspection. |
| CLI‑driven Orchestration | Simple commands to parse, validate, run, and monitor workflows without writing any procedural code. |
- Clone the repository:
git clone https://github.com/your-org/workflow-mcp.git - Change directory:
cd workflow-mcp - Install in development mode:
pip install -e . - Run a basic parse command:
workflow-mcp parse --file example.yaml - (Optional) Start a Prometheus metrics endpoint:
workflow-mcp monitor --workflow example --format prometheus
Example 1: Parsing a workflow
Command:
workflow-mcp parse --file example.yaml
Output:
{
"name": "example",
"steps": [
{"id":0,"agent":"researcher","tool":null,"depends_on":[]},
{"id":1,"agent":"summarizer","tool":null,"depends_on":[0]},
{"id":2,"agent":"translator","tool":null,"depends_on":[1]}
]
}
Example 2: Monitoring with Prometheus format
Command:
workflow-mcp monitor --workflow example --format prometheus
Output:
# HELP workflow_steps_total Total number of workflow steps executed
# TYPE workflow_steps_total counter
workflow_steps_total{workflow="example",status="success"} 3
Example 3: Running a Copilot skill
Command:
copilot_sdk run_skill --handle summarizer --input '{"text":"The quick brown fox jumps over the lazy dog."}'
Output:
{"summary":"Fox jumps over dog."}
WorkflowMCP: Declarative Agent Orchestration/
workflow_mcp/ # Core source package
cli.py # CLI entry point (workflow-mcp)
core.py # Workflow engine and DAG builder
models/ # Pydantic models for workflow and agent
__init__.py
workflow.py
agent.py
monitoring/ # Real‑time observer and metrics exporter
__init__.py
observer.py
sdk/ # Copilot SDK integration
__init__.py
loader.py
skills/ # Example agent skills
__init__.py
summarizer.py
translator.py
planner.py
tests/ # Unit test suite
__init__.py
test_workflow.py
test_agent.py
test_monitoring.py
test_sdk.py
assets/ # Diagram assets
infographic.png
screenshots/ # Demo screenshots (selected)
example.yaml # Sample workflow definition
bad.yaml # Invalid workflow for validation tests
pyproject.toml # Project metadata and dependencies
README.md
LICENSE
| Technology | Purpose |
|---|---|
| Python 3.11+ | Core language |
| click | Building the command‑line interface |
| pytest | Running unit tests |
Fork the repository, create a feature branch.
Make your changes, add tests, and ensure the test suite passes.
Submit a pull request with a clear description of your work.
MIT
Matthew Snow -- M2AI | @m2ai-portfolio
