Skip to main content
Glama
askuma

workflow-generator

workflow-generator

Scan any project and generate WORKFLOW.html — a dark-mode visual system diagram showing every component, how they talk to each other, and where your throughput ceiling actually is.

Works with Python, Node.js, Go, Java, Rust, Ruby, and mixed projects. No external dependencies for the core scanner. Vendored and generated directories (node_modules, venv, site-packages, dist, …) are never scanned, and capacity figures are clearly labeled as static-analysis estimates.

Live demo → — generated from fastapi/full-stack-fastapi-template, unmodified.

Running workflow-generator against fastapi/full-stack-fastapi-template, from pip install to the generated diagram

(real CLI output, unscripted — static screenshot if you'd rather not autoplay)

What it produces

Every generated page contains:

Section

What you get

Stat row

Workers · Concurrent I/O ceiling · Semaphore limit · Rate limit · Practical throughput

Architecture diagram

Layered flow: external sources → gateway → API → queues → AI → storage

Data flow cards

Write path, read/query path, background jobs — inferred from what's detected

Concurrency table

Every layer: model · ceiling · limiting factor

Bottleneck analysis

Ranked CRITICAL → LOW with mitigation notes

Codebase dependency graph

Force-directed module/import graph — click a node to isolate its neighbors, hover for file details. Import-direction edges are clearly distinguished from real observed traffic (see below)

Guided tour

Spotlight walkthrough of every section, shown automatically the first time a report is opened; replay anytime with the ? button

Codebase dependency graph

Every source file (Python, JS/TS, Go, Java, Rust, Ruby) becomes a node; every real import becomes an edge — resolved with a language-appropriate parser (Python's ast module, regex for JS/TS/Go/ Java/Rust/Ruby), not guessed. Files that match an already-detected component (an LLM call, a database client, a queue) get an edge to that component too, so you can see exactly which files talk to Redis, OpenAI, etc. Large repos (350+ files) are automatically aggregated into directory-level nodes so the graph stays readable; override with --graph-detail files or --graph-detail dirs.

By default the graph only shows what the code says (import direction, static "this file calls Redis"), which is honest but not the same as real traffic. Pass --access-log /path/to/access.log (any combined/common log format) to overlay real observed request counts onto the HTTP-entry edges — and the generated report includes a ready-to-run k6 load-test script covering up to 5 detected routes, so the "Practical throughput" number can be checked against a real measurement instead of only a static-analysis estimate.

Related MCP server: composer-mcp

What it detects

Category

Examples

API frameworks

FastAPI, Flask, Django, Express, Nest.js, Gin

Gateways

nginx, Caddy, Traefik (with rate limits + worker_connections)

LLM providers

OpenAI, Anthropic Claude, Cohere, AWS Bedrock

Vector stores

Qdrant, Pinecone, Weaviate, ChromaDB, pgvector, FAISS, Milvus

Databases

PostgreSQL, MySQL, MongoDB, SQLite, Redis

Queues

Celery, BullMQ, Kafka, RabbitMQ, RQ, AWS SQS

Async primitives

asyncio.Semaphore, run_in_executor, asyncio.gather, asyncio.Lock

Workers

--workers N (uvicorn/gunicorn), replicas: (docker-compose), PM2 instances

External sources

Jira, Azure DevOps, Slack, GitHub, Stripe, Salesforce, Twilio

Evaluation

TruLens, RAGAS, LangSmith


Install

pip (CLI + MCP server)

pip install workflow-generator-mcp

workflow-generator . WORKFLOW.html       # CLI: scan and write the report
workflow-generator-mcp                    # stdio MCP server

With pip installed, any MCP host config reduces to:

{
  "mcpServers": {
    "workflow-generator": { "command": "workflow-generator-mcp" }
  }
}

Claude Code (skill)

mkdir -p ~/.claude/skills
git clone https://github.com/askuma/workflow-generator.git ~/.claude/skills/workflow-generator

Then in any Claude Code session:

/workflow-generator
/workflow-generator /path/to/project

MCP server (Claude Desktop, VS Code, Cursor, Zed, Windsurf, Continue)

1. Install the dependency:

pip install mcp

2. Add to your MCP host config (replace ~ with your actual home path):

~/Library/Application Support/Claude/claude_desktop_config.json (Mac)
%APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "workflow-generator": {
      "command": "python3",
      "args": ["~/.claude/skills/workflow-generator/mcp/server.py"]
    }
  }
}

.vscode/mcp.json

{
  "servers": {
    "workflow-generator": {
      "type": "stdio",
      "command": "python3",
      "args": ["~/.claude/skills/workflow-generator/mcp/server.py"]
    }
  }
}

~/.cursor/mcp.json

{
  "mcpServers": {
    "workflow-generator": {
      "command": "python3",
      "args": ["~/.claude/skills/workflow-generator/mcp/server.py"]
    }
  }
}

.zed/settings.json

{
  "context_servers": {
    "workflow-generator": {
      "command": {
        "path": "python3",
        "args": ["~/.claude/skills/workflow-generator/mcp/server.py"]
      }
    }
  }
}

~/.windsurf/mcp_config.json

{
  "mcpServers": {
    "workflow-generator": {
      "command": "python3",
      "args": ["~/.claude/skills/workflow-generator/mcp/server.py"]
    }
  }
}

3. Restart your tool, then ask:

generate a workflow diagram for this project
how many concurrent requests can this handle?
show me the system architecture

MCP tools exposed:

  • generate_workflow — scans project, writes WORKFLOW.html, optionally opens in browser

  • analyze_workflow — returns structured JSON summary (no file written)

Command line (standalone)

No install needed beyond Python 3.8+:

python3 ~/.claude/skills/workflow-generator/scripts/analyze.py . ~/WORKFLOW.html
# then open ~/WORKFLOW.html

Optional flags:

--access-log /path/to/access.log   # overlay real request counts onto the dependency graph
--graph-detail auto|files|dirs     # force file-level or directory-level graph nodes (default: auto)

Example output (terminal)

Written: /your/project/WORKFLOW.html
Framework: FastAPI · Workers: 8 · Concurrent I/O: ~800
Practical throughput: ~50–200 req/min
Bottleneck: OpenAI (LLM latency 3–30s per call)
Gateway: nginx · 2 rate limit zone(s)
LLM: OpenAI · eval: TruLens RAG Triad
Storage: Qdrant, Redis
External sources: Jira, Azure DevOps, Slack

Repo layout

workflow-generator/
├── SKILL.md                        ← Claude Code skill definition
├── INSTALL.md                      ← detailed per-platform install guide
├── workflow_generator_mcp/
│   ├── analyze.py                  ← core scanner + HTML renderer (stdlib only)
│   └── server.py                   ← MCP stdio server (package form)
├── scripts/
│   └── analyze.py                  ← thin compatibility shim -> workflow_generator_mcp/analyze.py
├── tests/                          ← pytest suite for the scanner
├── mcp/
│   ├── server.py                   ← MCP stdio server
│   └── requirements.txt            ← pip install mcp
└── copilot/
    ├── index.js                    ← GitHub Copilot Extension (Express)
    ├── package.json
    └── openai_function.json

License

MIT

Available Tools

2 tools
analyze_workflowA

Scan a project and return the workflow analysis as structured JSON (no file written). Returns: framework, workers, capacity estimates, detected components (LLM, storage, queues, external sources), concurrency primitives (semaphores, rate limits), and bottleneck ranking.

ParametersJSON Schema
NameRequiredDescriptionDefault
project_dirNoAbsolute path to the project root.

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided. The description indicates read-only behavior ('no file written') and lists return fields, but lacks details on permissions, side effects, or other behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence covering the main action and a bulleted list of returns. Front-loaded, efficient, no wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with one simple parameter and no output schema, the description is fairly complete: it explains the return value exactly. Could be enhanced by more explicit guidance on sibling tool differentiation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% (the only parameter 'project_dir' is described in the schema as 'Absolute path to the project root.'). The description adds no additional meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Scan' and resource 'project', specifies output format 'structured JSON', and distinguishes from sibling 'generate_workflow' by noting no file is written.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implicitly suggests use for analysis vs. generation via 'no file written' and listing of analysis fields, but does not explicitly contrast with 'generate_workflow' or provide when-to-use/alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

generate_workflowA

Scan a project directory and generate WORKFLOW.html — a visual system workflow showing all components, their communication paths, concurrency model, concurrent request capacity, and bottleneck analysis. Works with Python (FastAPI, Flask, Django), Node.js (Express, Nest.js), Go, and mixed projects. Detects: API frameworks, gateways, LLM providers, vector stores, databases, queues, rate limits, async primitives, and worker counts.

ParametersJSON Schema
NameRequiredDescriptionDefault
output_fileNoOutput path for WORKFLOW.html. Defaults to <project_dir>/WORKFLOW.html.
project_dirNoAbsolute path to the project root. Defaults to current working directory.
open_browserNoOpen the generated file in the default browser.

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It discloses the tool scans directories, reads project files, and produces an HTML file. Could mention nondestructive nature or that it doesn't modify files, but current detail is sufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is a single paragraph that efficiently conveys purpose, supported projects, and detection capabilities. Every sentence adds value, though slightly lengthy; could be more structured but not wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, description thoroughly explains what the generated HTML contains and lists many detectable components. Provides complete understanding of tool's capabilities and output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and parameters are well-described in schema. Description adds context that output file is a visual workflow, but doesn't enhance meaning beyond schema definitions for the three parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool scans a project directory and generates a visual workflow HTML file. Verb 'generate' with specific resource 'WORKFLOW.html' and explicit detection capabilities distinguish it from sibling 'analyze_workflow'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Description specifies supported project types (Python, Node.js, Go, mixed) and frameworks, giving clear context for when to use. However, lacks explicit 'when not to use' or comparison to alternatives like analyze_workflow.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 2 tool updates
    • First observedanalyze_workflow
    • First observedgenerate_workflow

TDQS

A3.9/5.0
Disambiguation4/5

Both tools deal with workflow analysis, but they produce different outputs: analyze_workflow returns JSON, generate_workflow creates an HTML file. The descriptions make the distinction clear, though some conceptual overlap remains.

Naming Consistency5/5

Both tool names follow a consistent verb_noun pattern with snake_case, making them predictable and easy to understand.

Tool Count2/5

Only two tools for a 'workflow generator' server feels thin. The domain likely requires more operations (e.g., update, delete, validate) to be useful.

Completeness2/5

The server provides analysis and generation but lacks update, delete, or customization tools. Basic lifecycle coverage is missing, limiting agent workflows.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Analyzes codebases to generate dependency graphs and architectural insights across multiple programming languages, helping developers understand code structure and validate against architectural rules.
    6
    60
    20
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Visual architecture canvas that updates in real-time. Agents can build, read, and modify system design diagrams — services, databases, queues, APIs, entities — all linked to actual code paths in your repo.
    94
    4
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Extracts deterministic architecture maps from codebases for AI agents, enabling queries about blast radius, routes, security findings, and production readiness without sending code anywhere.
    6
    MIT

Latest Blog Posts

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/askuma/workflow-generator'

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