feat(mcp): add diagram version history

- Add history.ts module with circular buffer (max 50 entries)
- Add history UI with floating button and modal
- Add HTTP endpoints: /api/history, /api/restore
- Add MCP tools: list_history, restore_version, get_version
- Save history before and after AI changes
- Track source (ai/human) for each entry
This commit is contained in:
dayuan.jiang
2025-12-21 16:09:14 +09:00
parent 74b9e38114
commit c215d80688
4 changed files with 1055 additions and 11 deletions

10
.mcp.json Normal file
View File

@@ -0,0 +1,10 @@
{
"mcpServers": {
"drawio": {
"command": "node",
"args": [
"/Users/jiangdy/Documents/programming/next-ai-draw-io/packages/mcp-server/dist/index.js"
]
}
}
}