Add drawio MCP usage sample - #18
Draft
pollenjp wants to merge 2 commits into
Draft
Conversation
Sample setup and example inputs (XML/CSV/Mermaid) for using the official @drawio/mcp tool server from Claude Code / Claude Desktop, so the workflow of feeding diagram source to AI and opening it in draw.io can be tried quickly.
@drawio/mcp's open_drawio_* tools only return an editor URL — they do not export. Add a small Node script that renders mxfile XML to a `.drawio.svg` (SVG with the original mxfile embedded in the `content` attribute), which is the format draw.io recognizes as an editable diagram. Commit the generated architecture.drawio.svg as a worked example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
drawio-mcp-sample-2026-05-09/配下に、公式jgraph/drawio-mcpの MCP Tool Server (@drawio/mcp) を Claude Code / Claude Desktop から使うためのサンプル一式を追加。README.md: drawio MCP の概要、提供される 3 ツール (open_drawio_xml/open_drawio_csv/open_drawio_mermaid)、セットアップ手順config/: Claude Code / Claude Desktop それぞれのmcpServers設定 JSONexamples/: XML / CSV / Mermaid (sequence, flowchart) の入力サンプルprompts.md: 各ツールを呼ばせるためのプロンプト例Test plan
npx -y @drawio/mcpが起動することを確認config/claude-code.mcp.jsonの設定でサーバ登録 (claude mcp add drawio -- npx -y @drawio/mcp)prompts.mdの各プロンプトを投げてexamples/*がブラウザで draw.io 上に開くことを確認Generated by Claude Code