MCP 服务器

uml.singsk.com PlantUML

com.singsk/uml-plantuml
设计与创意 开发者工具 不可用 MCP 2026-07-28

此 MCP 可以做什么

Validates, encodes, decodes, and renders PlantUML diagram source across supported diagram types.

decode_token
Recover the PlantUML source from a token or from any PlantUML render URL (the token is extracted automatically). Tokens use PlantUML's own 64-character alphabet ("0-9 A-Z a-z - _") over raw DEFLATE. This is NOT base64 - never encode or decode tokens with a base64 codec; use encode_source / decode_token.
输入模式
{'type': 'object', 'required': ['encoded'], 'properties': {'encoded': {'type': 'string', 'description': 'Token or full render URL'}}}
encode_source
Encode PlantUML source into a URL token and ready-to-use share/render URLs (svg + png). The result carries url_ok: GET URLs only work while the token is at most 16000 characters; when url_ok is false do not share the URLs - render with render_diagram instead (it uses the POST API, no size limit up to 5 MB). Tokens use PlantUML's own 64-character alphabet ("0-9 A-Z a-z - _") over raw DEFLATE. This is NOT base64 - never encode or decode tokens with a base64 codec; use encode_source / decode_token.
输入模式
{'type': 'object', 'required': ['text'], 'properties': {'text': {'type': 'string'}}}
get_syntax_reference
Get the syntax reference entry for one diagram type: description, a render-verified example, and the help page URL. Use it to ground diagram generation.
输入模式
{'type': 'object', 'required': ['type'], 'properties': {'type': {'type': 'string', 'description': 'Type id or label, e.g. "sequence", "class", "mindmap", "gantt", "json"'}}}
list_diagram_types
List the 22 supported diagram/reference types with a one-line description and the local syntax reference URL for each. Use it to pick the right @start directive.
输入模式
{'type': 'object', 'properties': {}}
render_diagram
Render PlantUML source text to a diagram image. Returns a PNG image block (format "png") or the SVG markup as text (format "svg", default), plus the shareable render URL. The source is validated first: on a syntax error the result is an error object with line, column, hint and a help link so you can fix the diagram and retry.
输入模式
{'type': 'object', 'required': ['text'], 'properties': {'text': {'type': 'string', 'description': 'PlantUML source including @startuml ... @enduml (or the matching @start/@end pair)'}, 'format': {'enum': ['svg', 'png'], 'type': 'string', 'default': 'svg'}}}
validate_diagram
Check PlantUML source without rendering. Returns {ok:true, diagram_type} or {ok:false, error:{code, message, line, column, source_line, hint, diagram_type_detected, help}}. Cheap - call it in a generate -> validate -> fix loop before rendering.
输入模式
{'type': 'object', 'required': ['text'], 'properties': {'text': {'type': 'string'}}}
已添加
get_syntax_reference
2026年9月17日 12:37
已添加
list_diagram_types
2026年9月17日 12:37
已添加
decode_token
2026年9月17日 12:37
已添加
encode_source
2026年9月17日 12:37
已添加
validate_diagram
2026年9月17日 12:37
已添加
render_diagram
2026年9月17日 12:37