sysketch
Polished system design diagrams (SVG/PNG) from a tiny YAML spec, ~18x fewer tokens than raw SVG.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"sysketch": {
"command": "npx",
"args": [
"sysketch-mcp"
]
}
}
}可运行的软件包
0.5.0stdio远程端点
https://sysketch.vercel.app/mcpstreamable-http它能做什么
工具清单
工具(2)
🟢render_diagram(spec, theme, preview)
Use for any system design, architecture, data-flow or infrastructure diagram, instead of generating an image or writing SVG/Mermaid. Renders a tiny YAML spec; returns PNG/SVG links and a small preview. Spec keys: title, type (sequence: message timeline), theme (sketch|graphite|blueprint|midnight|classic), direction (omit: auto-fit; right|down only if asked), steps (false hides numbers), legend (true lists steps), nodes {id: "icon | Label | subtitle"}, groups {Label: [ids or group labels to nest]}, edges ["a > b > c | label", "a ..> b" dashed, "a <> b" two-way, "a => b" thick, "a -- b" line, "a > b [red]" color]. Ids that are icon names/aliases (client, lb, api, db, cache, redis, kafka, s3, cdn...) need no nodes entry. Arrows are numbered automatically in the order listed; don't number labels. Product names (stripe, kafka, postgres...) draw the product's logo when available, else a fitting icon; brand/icon (acme/queue) for others. Give the user the PNG link; don't generate another image of the diagram. To edit, call again with the whole updated spec.
输入模式
{
"type": "object",
"properties": {
"spec": {
"type": "string",
"maxLength": 20000,
"description": "YAML spec text"
},
"theme": {
"type": "string"
},
"preview": {
"description": "Include a small preview image (default true; ~1k tokens)",
"type": "boolean"
}
},
"required": [
"spec"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢list_icons(logos)
List sysketch icon names and aliases, or search the available product logos.
输入模式
{
"type": "object",
"properties": {
"logos": {
"description": "Search product logos by name",
"type": "string"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}社区
证据