
Vaults Diagram Tools
io.github.Malnati由 GitHub 账号 Malnati 发布v0.1.4更新于 Oct 24, 2026
Mermaid to assets. Source code to maps. MCP for agents.
发布方自己的服务:Diagram
概览
一个本地 stdio MCP 服务器,让助手把 Mermaid 图表渲染为 SVG/JPEG 资源,并从源代码生成 Mermaid 图表。
- 可以做什么
- 将 Mermaid 文本渲染为 SVG 和 JPEG 文件,主题与渲染选项会传递给渲染器,并把生成的文件和清单数据返回给客户端。
- 适用场景
- 当助手需要在文档编写或源码结构审查中,把 Mermaid 源文件或代码库转成图表资源、又不想单独执行命令行时使用。
- 运行要求
- 作为本地 Node.js 进程运行,从 npm 包 vaults-diagram-tools 安装,并用 vaults-diagram-mcp 命令启动;未声明认证、环境变量或请求头。默认渲染器使用内置的 Node/JS/WASM 路径,不需要 Chromium、Puppeteer 或 ImageMagick。
安装
在 SourceWeft 中
- 打开 控制台中的 Vaults Diagram Tools,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
vaults-diagram-tools
[vaults-diagram-tools repository banner]
[CI] [Release] [License: MIT] [Node.js >=20.11] [Docs] [Container] [Quay.io]
Mermaid to assets. Source code to maps. MCP for agents.
vaults-diagram-tools is a standalone toolkit for teams that need reproducible Mermaid SVG/JPEG assets, source-code diagrams, and agent-friendly diagram workflows without carrying Vault-specific content.
- GitHub Pages documentation
- npm package
[email protected] - GitHub Actions Marketplace Action
Vaults Diagram Tools(repo) - MCP Registry
io.github.Malnati/vaults-diagram-tools - Smithery server
- GitHub release v0.1.4
- Quay.io Podman image
quay.io/ricardomalnati/vaults-diagram-tools:v0.1.0 - GitHub App
- Brand assets
- Homebrewery package page
What is included
- Mermaid renderer extracted from the Vaults toolchain.
- Source-code to Mermaid diagram generator.
- MCP stdio server with three explicit tools, published in MCP Registry as
io.github.Malnati/vaults-diagram-tools. - Offline-capable release assets for zip and container distribution.
- Dedicated GitHub Actions Marketplace wrapper repository for render/source/policy automation.
- Packaging templates for Homebrew, deb/rpm, CDN, Docker, and Podman, plus a publishable VS Code extension package.
Content-management workflows outside diagram generation are not part of this package.
Quick start
Install in a project:
Render one Mermaid source to durable assets:
Generate Mermaid diagrams from source code:
Run the MCP stdio server:
Use one-shot npx when the project should not keep a dependency:
Core tools
Additional package binaries are compatibility entrypoints for older Vaults paths, optional text renderers, and Podman workflows.
Workflows
- Markdown docs: keep the Mermaid source as a linked
.mmd, render.svgand.jpg, and show source inline with a fencedmermaidblock. - Source graph reviews: generate diagrams from real source paths and inspect manifest selection data for requested files, omitted connectors, and rendered outputs.
- Agent automation: use the MCP server when clients need diagram rendering through a narrow, explicit tool surface. Current registry entry is active at version
0.1.4, and the Smithery server page is already published. - Release packaging: ship npm, zip, container, and offline vendor artifacts while preserving license and notice files.
Download and distribution
npm registry
Use the published npm package when you want the normal Node.js toolchain installation. Current npm latest is [email protected]:
One-shot with npx
Use --package when the project should not keep the dependency:
GitHub Actions Marketplace
Use the dedicated Marketplace action when the diagram workflow should run inside GitHub Actions without adding project-local scripts:
- GitHub Actions Marketplace listing
- Action repository
- Initial action release:
v0.1.4; moving compatibility tag:v0.
npm package from GitHub
Use the GitHub package source when testing a commit before a registry release:
GitHub release assets
The latest GitHub Release, GHCR image, npm package, MCP Registry metadata, and VS Code VSIX are published at v0.1.4; the Quay.io Podman image remains at v0.1.0:
- vaults-diagram-tools-0.1.4.tgz
- vaults-diagram-tools-0.1.4.zip
- vaults-diagram-tools-vscode-0.1.4.vsix
ghcr.io/malnati/vaults-diagram-tools:v0.1.4quay.io/ricardomalnati/vaults-diagram-tools:v0.1.0
Local checkout
Use the checkout for development, validation, or release preparation:
Container, Docker, and Podman
Build locally:
Run a render from the GHCR image:
Run the published Podman image from Quay.io:
Quay.io also exposes 0.1.0 and latest tags for the same published package line.
Podman helper scripts are available through vaults-mermaid-podman-build, vaults-mermaid-podman-render, and vaults-mermaid-podman-test.
CDN facade
The package is CLI-first. CDN endpoints expose browser-safe metadata/helpers only; SVG/JPEG rendering still runs through Node.js, MCP, or the container runtime.
VS Code extension
The desktop VS Code extension is published as malnati.vaults-diagram-tools and can also be installed directly from the GitHub Release VSIX. It uses a hybrid runtime: a bundled offline fallback plus a managed cache that can follow vaults-diagram-tools@latest without republishing the extension. It contributes:
- Command Palette actions for Mermaid SVG/JPEG rendering, source-diagram generation, and Markdown diagram-policy validation.
- Runtime commands: update managed runtime now, show runtime status, and force the bundled runtime.
- A native VS Code MCP server definition provider for the resolved
vaults-diagram-toolsstdio server. - Marketplace/Open VSX publish scripts for manual publication from an authenticated local shell. Keep npm, VS Code Marketplace, and Open VSX credentials in the local terminal; GitHub Actions does not use those secrets.
Install options after v0.1.4 is released:
Local package validation:
Sequential local publication:
make publish-all runs local-terminal authentication first, validates guard-only release metadata, packages artifacts, creates the GitHub tag/release, publishes npm, VS Code Marketplace, Open VSX, GHCR, Quay.io, and MCP Registry, then verifies public availability. It fails when the current version/tag/npm package already exists; bump and commit release metadata before running.
Command line usage
After installing from npm, run public CLIs directly from node_modules/.bin, npm exec, or npx:
One-shot examples:
Local checkout equivalents:
MCP tools
vaults-diagram-mcp exposes exactly three tools:
render_mermaid_textrender_mermaid_filegenerate_source_diagrams
Example client command:
The MCP adapter passes theme and rendering options through to the same renderer used by the CLI, so a client can request theme: "dracula" and receive .svg + .jpg artifacts.
Dracula diagram examples
The diagrams below were generated by this repository with vaults-mermaid-render --theme dracula; Markdown links the generated assets instead of embedding SVG/JPEG.
Install and usage flow
- Links: Mermaid source / SVG / JPEG
Tooling architecture
- Links: Mermaid source / SVG / JPEG
MCP package source graph
- Links: Generated index / Mermaid source / SVG / JPEG
Brand assets
The repository, GitHub Pages landing, Actions summaries, release notes, GitHub App badge, and social preview use one deterministic brand kit generated from the current landing visual language.
- Brand manifest
- Logo SVG / Logo PNG
- Repository banner
- Social preview PNG / Social preview JPEG
- GitHub App badge
- Actions banner
- Release banner
Regenerate and verify the kit with:
Compliance and artifact policy
Markdown diagram policy
Generated Markdown should link artifacts and show source in a mermaid fenced block:
SVG and JPEG files are delivery artifacts. Markdown should link them instead of embedding them as images by default.
Credits and license compliance
- Project license: MIT.
- Project notices: NOTICE.md.
- Third-party credits and license index: THIRD_PARTY_NOTICES.md.
- License verification:
npm run license:check; refresh generated notices withnpm run license:generate. - Dracula-colored documentation diagrams credit the MIT-licensed Dracula Theme palette through
beautiful-mermaid. - Icon data credits include Font Awesome 4, SVG Logos by Gil Barbara, and Lucide Icons via Iconify JSON packages.
- Release artifacts must preserve
LICENSE,NOTICE.md,THIRD_PARTY_NOTICES.md, and upstream license files bundled by packaged dependencies or the offline vendor runtime.
Offline vendor runtime
The source tree does not commit node_modules. Build and release jobs create offline vendor assets with:
The renderer can run from normal npm dependencies during development, or from packages/renderer/vendor/node when MMDC_VENDOR_ONLY=1.
The default renderer is the Node/JS/WASM vendor path and does not require Chromium, Puppeteer, mmdc, ImageMagick, or npx. The legacy shell wrapper only uses mmdc when explicitly requested with MMDC_RENDER_ENGINE=mmdc; automatic fallback to Puppeteer is disabled.
GitHub App
The public vaults-diagram-tools GitHub App is the installable read-only app surface for this package.
- Install URL: https://github.com/apps/vaults-diagram-tools/installations/new
- Purpose: read-only installs for validating tags, release assets, and package metadata around this repository.
- Permissions: repository contents read-only, plus GitHub metadata access.
- Webhooks: disabled; this release does not run a webhook backend.
- GitHub Actions Marketplace:
Vaults Diagram Toolsis the Marketplace target for the dedicatedMalnati/vaults-diagram-tools-actionwrapper repository. - Secrets: no private key, client secret, or webhook secret is stored in this repository.
Distribution status
Working in v1:
- npm package publication and GitHub install flow
- Docker/Podman images through GHCR and Quay.io
- MCP server
- MCP Registry entry
io.github.Malnati/vaults-diagram-toolsactive at version0.1.4 - Smithery server page for
ricardomalnati/vaults-diagram-tools - zip release
- GitHub Actions CI, release, CodeQL, and Pages workflows
- GitHub Actions Marketplace Action
Vaults Diagram Toolsfor render/source/policy automation - Public read-only GitHub App install surface
- Homebrewery package page with searchable tags
- Publishable VS Code extension package with VS Code Marketplace and Open VSX workflow targets
Templates in v1:
- Homebrew formula
- deb/rpm through nfpm
- CDN facade through npm/jsDelivr/unpkg
Current release
vaults-diagram-tools is published as npm 0.1.4 and MCP Registry server io.github.Malnati/vaults-diagram-tools version 0.1.4. The latest GitHub Release, GHCR image, and VS Code VSIX are v0.1.4; Quay.io carries the Podman image line at v0.1.0.
Documentation
- GitHub Pages documentation
- Markdown source for the landing page
- Vaults compatibility notes
- Homebrewery package page
- npm package
[email protected] - GitHub Actions Marketplace Action
Vaults Diagram Tools(repo) - MCP Registry entry
- Smithery server
- GitHub release v0.1.4
- Quay.io Podman image
- GitHub App
- Contributing guide
- Security policy
来源:README.md,提交 b63769c
工具
0版本历史
1- v0.1.4最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Diagram 集成

Diagram
la.diagram官方发布者
保存助手绘制的图,并返回一个可分享的链接,图被编辑后该链接保持有效。
NativeDiagram
由 GitHub 账号 ChanMo 发布
一个远程 MCP 服务器,让助手为 Microsoft Word 和 PowerPoint 创建原生、可编辑的 SmartArt 图表。

AI Diagram Maker
由 GitHub 账号 erajasekar 发布
借助 AI Diagram Maker 服务,把自然语言、JSON、ASCII、图片或 Mermaid 转成软件图(流程图、时序图、ERD、架构图、UML)。

Network Diagram Mcp
由 GitHub 账号 den-indance 发布
本地桥接服务,让 AI 助手在 NetMap 浏览器应用中创建和编辑网络拓扑图,并支持 nmap 与 CSV 导入。
VoltPlan Wiring Diagrams
由 GitHub 账号 YUZU-Hub 发布
为房车、船只和离网系统计算 12V/24V/48V 电气系统选型,并生成可在编辑器中打开的接线图。