Generate and read XMind .xmind files using the published MCP server xmind-generator-mcp (npm).
This skill is chat-first:
.xmind and sends it back..xmind file that opens in XMind.The MCP tool generate-mind-map accepts Schema A JSON:
{
"title": "Root topic",
"filename": "mindmap-name-no-date",
"topics": [
{
"title": "Topic title (keep core info in the title)",
"note": "Optional: use sparingly; only when the title would be too long",
"labels": ["optional"],
"markers": ["Arrow.refresh"],
"children": [{"title": "Child topic"}]
}
]
}
Use npx xmind-generator-mcp@0.1.2 as the MCP server command:
mcporter call --stdio "npx -y xmind-generator-mcp@0.1.2" generate-mind-map --args '{...}'
mcporter call --stdio "npx -y xmind-generator-mcp@0.1.2" read-mind-map --args '{"inputPath":"/path/to/file.xmind","style":"A"}'
When a user sends an .xmind file and asks to “read/understand” it:
1) First, explain in detail what the mind map is about (summary + structure + key points + actionable items + gaps).
2) Only after that, ask whether the user wants an export.
3) If the user wants an export, default to Markdown.
generate --output can be a directory (recommended) or a full .xmind path.outputPath environment variable (see below).Trigger phrases:
Language rule (important):
Filename rule (important):
one-day-trip-detailed in Chinese characters, but keep it short).hong-kong-1-day-itinerary).\\ / : * ? \" < > | → replace with -.Steps:
1) Parse whether the user specified a save location/path.
~/Desktop.2) Determine output language:
3) Convert the user’s content into Schema A JSON (in the chosen language).
note: use sparingly. Only put content in note when it would make the topic title too long or noisy. If the content is core to the plan, keep it in the title instead of hiding it in note.labels: add lightweight categorization (e.g. must-do/optional/rainy-day/budget/family-friendly).relationships: sparingly (mode A) — only for truly cross-branch links that add clarity.4) Write the JSON to a temp file, e.g. /tmp/xmind-.
5) Call the MCP tool generate-mind-map via mcporter stdio (npx xmind-generator-mcp@0.1.2).
Capture/compute the output file path.
6) Send the generated .xmind back in chat as an attachment.
7) Optionally also tell the user where it was saved on disk.
共 1 个版本