schemeog-mcp 3.6.0 → 3.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +66 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,17 +1,18 @@
1
- # SchemeOG MCP Server v3.2
1
+ # SchemeOG MCP Server v3.6
2
2
 
3
3
  MCP server for [Diagrams.love](https://diagrams.love) — create diagrams and flowcharts with AI.
4
4
 
5
5
  ## Features
6
6
 
7
- - **17 commands** for schemas, projects, tags, and import/export
7
+ - **21 commands** for schemas, projects, tags, versions, and import/export
8
+ - **Version history**: View, restore, and create checkpoints for schemas
8
9
  - **Auto-refresh**: Browser automatically reloads when MCP updates schema
9
10
  - **Smart positioning**: Existing elements keep their positions, new elements get auto-layout
10
11
  - **No coordinate conflicts**: MCP ignores x/y to prevent overlapping cards
11
12
  - **Shared links support**: Open schemas via public `/shared/` URLs (read-only)
12
13
  - **Large schema handling**: Automatic detection and preview for schemas >100 elements
13
14
 
14
- ## 17 Commands
15
+ ## 21 Commands
15
16
 
16
17
  ### Schemas (6 commands)
17
18
 
@@ -50,6 +51,15 @@ MCP server for [Diagrams.love](https://diagrams.love) — create diagrams and fl
50
51
  | `remove_tag` | Remove tag from schema |
51
52
  | `tag_element` | Assign/remove tag from element |
52
53
 
54
+ ### Versions (4 commands)
55
+
56
+ | Command | Description |
57
+ |---------|-------------|
58
+ | `list_versions` | List schema version history (auto-saves and manual checkpoints) |
59
+ | `get_version` | Get full data of a specific version |
60
+ | `restore_version` | Restore schema from a previous version (auto-backup before restore) |
61
+ | `create_version` | Create manual checkpoint with optional comment |
62
+
53
63
  ## Installation
54
64
 
55
65
  ### Via npx (recommended)
@@ -181,6 +191,35 @@ Connections are defined inside each element's `connections` array:
181
191
 
182
192
  **Line styles (`style`):** `solid` (default), `dashed`, `dotted`
183
193
 
194
+ ### Connection Label Format
195
+
196
+ **RULE:** All connection labels should be in `[square brackets]`
197
+
198
+ This visually highlights transitions and user actions on the diagram:
199
+
200
+ ```json
201
+ {
202
+ "connections": [
203
+ {"to": "home", "label": "[Login]"},
204
+ {"to": "register", "label": "[Register]"},
205
+ {"to": "error", "label": "[Error]"},
206
+ {"to": "success", "label": "[Success]"}
207
+ ]
208
+ }
209
+ ```
210
+
211
+ **Why square brackets:**
212
+ - Clearly distinguishes action labels from regular text
213
+ - Shows user actions/triggers on transitions
214
+ - Consistent visual style across all schemas
215
+
216
+ **Example in ASCII:**
217
+ ```
218
+ ┌───────────┐ [Login] ┌───────────┐
219
+ │ Login │──────────▶│ Home │
220
+ └───────────┘ └───────────┘
221
+ ```
222
+
184
223
  ### Full schema example
185
224
 
186
225
  ```json
@@ -401,10 +440,30 @@ import_schema_from_json(
401
440
 
402
441
  ## Version History
403
442
 
404
- MCP now automatically creates versions when updating schemas:
405
- - Before each update via MCP, a snapshot is saved
406
- - View version history in the web interface (History tab)
407
- - Restore any previous version with one click
443
+ Full version control for your schemas:
444
+
445
+ ### Commands
446
+
447
+ ```
448
+ # List all versions
449
+ list_versions(schema_id: "xxx")
450
+
451
+ # View specific version
452
+ get_version(schema_id: "xxx", version_id: "yyy")
453
+
454
+ # Restore from version (auto-backup before restore)
455
+ restore_version(schema_id: "xxx", version_id: "yyy")
456
+
457
+ # Create manual checkpoint
458
+ create_version(schema_id: "xxx", comment: "Before refactoring")
459
+ ```
460
+
461
+ ### Features
462
+
463
+ - **Auto-save**: Every schema change creates a version automatically
464
+ - **Manual checkpoints**: Create named versions before important changes
465
+ - **Safe restore**: Current state is backed up before any restore
466
+ - **100 versions limit**: Old auto-saves are cleaned, manual checkpoints are preserved
408
467
 
409
468
  ## Links
410
469
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "schemeog-mcp",
3
- "version": "3.6.0",
3
+ "version": "3.6.2",
4
4
  "description": "MCP Server for Diagrams.love - Create and manage visual diagrams and flowcharts with AI assistance",
5
5
  "type": "module",
6
6
  "main": "index.js",