
Workflow Generator
io.github.askuma由 GitHub 账号 askuma 发布v0.5.0更新于 Oct 26, 2026
Architecture diagram with concurrency capacity and bottleneck estimates from any codebase.
概览
扫描本地代码库并生成深色主题的 WORKFLOW.html 架构图,包含并发上限与瓶颈排序。
- 可以做什么
- 扫描项目并写出 WORKFLOW.html 报告,或仅返回结构化 JSON 摘要而不写文件
- 识别框架、网关、LLM 提供商、向量库、数据库、队列、异步原语、worker 与外部数据源
- 按层估算并发上限、限流与实用吞吐量,并给出排序后的瓶颈说明
- 依据真实 import 构建代码依赖图,另含独立测试图,支持流程视图与力导向视图
- 可选叠加访问日志中的真实请求量,并为检测到的路由生成 k6 压测脚本
- 适用场景
- 适合在接手陌生或既有项目时快速获得可视化结构图,或静态估算整套技术栈能承受多少并发请求、瓶颈在哪里。可用于容量规划、架构评审或新人上手前的准备。
- 运行要求
- 以本地 stdio 进程在桌面端运行。需安装 PyPI 包 workflow-generator-mcp(Python 3.8+);核心扫描器仅用标准库,MCP 服务器形式还需 mcp 包。未声明任何账号、API 密钥或环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 Workflow Generator,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
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.
(real CLI output, unscripted — static screenshot if you'd rather not autoplay)
What it produces
Every generated page contains:
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.
Test files (tests/, test_*.py, conftest.py, *.spec.ts, *_test.go, …) get their own
Test Graph section below the main one, showing which modules and services each test reaches.
Fixtures and test doubles name every service they exercise, so keeping them in the main graph
buries the real dependency structure under service edges.
Both sections have a Flow | Graph toggle over the same nodes and edges. Flow (the default up to 80 nodes) is a left-to-right layered diagram: columns are dependency depth from the sources (HTTP entry and files nothing imports), every detected service is its own node in the last column, and import cycles are drawn dashed. Graph is the force-directed view. Moving dots show data going both ways: a filled dot is the call/request, a hollow dot the return/response. On graphs with more than 60 edges, only the paths of the clicked or hovered node animate. Search, "hide isolated" and the selected node are shared between the two views.
The older layered Full System Architecture diagram is collapsed by default, since the Architecture Map covers the same ground.
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.
What it detects
Install
pip (CLI + MCP server)
With pip installed, any MCP host config reduces to:
Claude Code (skill)
Then in any Claude Code session:
MCP server (Claude Desktop, VS Code, Cursor, Zed, Windsurf, Continue)
1. Install the dependency:
2. Add to your MCP host config (replace ~ with your actual home path):
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (Mac)
%APPDATA%\Claude\claude_desktop_config.json (Windows)
VS Code
.vscode/mcp.json
Cursor
~/.cursor/mcp.json
Zed
.zed/settings.json
Windsurf
~/.windsurf/mcp_config.json
3. Restart your tool, then ask:
MCP tools exposed:
generate_workflow— scans project, writesWORKFLOW.html, optionally opens in browseranalyze_workflow— returns structured JSON summary (no file written)
Command line (standalone)
No install needed beyond Python 3.8+:
Optional flags:
Example output (terminal)
Repo layout
License
MIT
来源:README.md,提交 034270e
工具
0版本历史
2- v0.5.0最新Oct 26, 2026
- v0.3.1Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分