schemeog-mcp 2.6.0 → 2.6.1

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 +67 -25
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,15 +1,16 @@
1
- # SchemeOG MCP Server v2.2
1
+ # SchemeOG MCP Server v2.6
2
2
 
3
3
  MCP server for [SchemeOG Cloud](https://scheme.smartlaunchhub.com) — create diagrams and flowcharts with AI.
4
4
 
5
- ## 14 Commands
5
+ ## 15 Commands
6
6
 
7
- ### Schemas (5 commands)
7
+ ### Schemas (6 commands)
8
8
 
9
9
  | Command | Description |
10
10
  |---------|-------------|
11
11
  | `list_schemas` | List all schemas |
12
- | `get_schema` | Get schema with data |
12
+ | `get_schema` | Get schema by ID |
13
+ | `get_schema_by_url` | Get schema by URL (canvas or shared link) |
13
14
  | `create_schema` | Create new schema |
14
15
  | `replace_schema` | Replace schema content |
15
16
  | `delete_schema` | Delete schema |
@@ -70,7 +71,9 @@ In `~/.claude.json` (or Cline settings):
70
71
 
71
72
  ## Schema Data Format
72
73
 
73
- ### Full schema example
74
+ ### Full schema example (inline connections)
75
+
76
+ Connections are defined **inside each element** in the `connections` array:
74
77
 
75
78
  ```json
76
79
  {
@@ -82,49 +85,65 @@ In `~/.claude.json` (or Cline settings):
82
85
  "type": "card",
83
86
  "title": "Registration Form",
84
87
  "color": "light_green",
88
+ "x": 100,
89
+ "y": 100,
85
90
  "tags": ["user"],
86
- "description": "User fills in email and password"
91
+ "description": "User fills in email and password",
92
+ "connections": [
93
+ {"to": "validate", "label": "submit"}
94
+ ]
87
95
  },
88
96
  {
89
97
  "id": "validate",
90
98
  "type": "condition",
91
99
  "title": "Validate Data",
92
100
  "color": "light_yellow",
101
+ "x": 300,
102
+ "y": 100,
93
103
  "tags": ["system", "check"],
94
- "description": "Check email format and password strength"
104
+ "description": "Check email format and password strength",
105
+ "connections": [
106
+ {"to": "save", "label": "valid"},
107
+ {"to": "error", "label": "invalid", "style": "dashed"}
108
+ ]
95
109
  },
96
110
  {
97
111
  "id": "save",
98
112
  "type": "card",
99
113
  "title": "Save to Database",
100
114
  "color": "light_blue",
115
+ "x": 500,
116
+ "y": 50,
101
117
  "tags": ["system"],
102
- "description": "Create user record in database"
118
+ "description": "Create user record in database",
119
+ "connections": [
120
+ {"to": "success"}
121
+ ]
103
122
  },
104
123
  {
105
124
  "id": "error",
106
125
  "type": "card",
107
126
  "title": "Validation Error",
108
127
  "color": "light_red",
128
+ "x": 500,
129
+ "y": 150,
109
130
  "tags": ["system", "error"],
110
- "description": "Show validation errors to user"
131
+ "description": "Show validation errors to user",
132
+ "connections": [
133
+ {"to": "start", "label": "retry"}
134
+ ]
111
135
  },
112
136
  {
113
137
  "id": "success",
114
138
  "type": "card",
115
139
  "title": "Registration Complete",
116
140
  "color": "light_green",
141
+ "x": 700,
142
+ "y": 100,
117
143
  "tags": ["user"],
118
144
  "description": "User successfully registered"
119
145
  }
120
146
  ],
121
- "connections": [
122
- {"from": "start", "to": "validate", "label": "submit"},
123
- {"from": "validate", "to": "save", "label": "valid"},
124
- {"from": "validate", "to": "error", "label": "invalid"},
125
- {"from": "save", "to": "success"},
126
- {"from": "error", "to": "start", "label": "retry"}
127
- ],
128
147
  "tagsDictionary": [
129
148
  {"id": "tag-user", "name": "user", "color": "#4CAF50"},
130
149
  {"id": "tag-system", "name": "system", "color": "#2196F3"},
@@ -142,8 +161,14 @@ In `~/.claude.json` (or Cline settings):
142
161
  "type": "card",
143
162
  "title": "Card Title",
144
163
  "color": "light_blue",
164
+ "x": 100,
165
+ "y": 200,
145
166
  "tags": ["tag1", "tag2"],
146
- "description": "Detailed description of the action or process"
167
+ "description": "Detailed description",
168
+ "borderColor": "blue",
169
+ "connections": [
170
+ {"to": "next_element_id", "label": "optional label"}
171
+ ]
147
172
  }
148
173
  ```
149
174
 
@@ -151,6 +176,10 @@ In `~/.claude.json` (or Cline settings):
151
176
  - `card` — regular process/action card
152
177
  - `condition` — decision point (diamond shape)
153
178
 
179
+ **Coordinates (`x`, `y`):**
180
+ - Optional but recommended for precise positioning
181
+ - If omitted, auto-layout will arrange elements
182
+
154
183
  **Available colors (`color`):**
155
184
  | Color | Purpose |
156
185
  |-------|---------|
@@ -167,20 +196,19 @@ In `~/.claude.json` (or Cline settings):
167
196
 
168
197
  **Border colors (`borderColor`):** `default`, `blue`, `green`, `orange`, `purple`, `red`, `teal`, `yellow`, `gray`, `black`
169
198
 
170
- **Important:** Do NOT specify `width`, `height`, `x`, `y` — they are calculated automatically!
199
+ ### Connection (inline format)
171
200
 
172
- ### Connection
201
+ Connections are defined inside each element's `connections` array:
173
202
 
174
203
  ```json
175
204
  {
176
- "from": "source_id",
177
- "to": "target_id",
178
- "label": "optional label",
179
- "style": "solid"
205
+ "connections": [
206
+ {"to": "target_id", "label": "optional label", "style": "solid"}
207
+ ]
180
208
  }
181
209
  ```
182
210
 
183
- **Line styles (`style`):** `solid`, `dashed`, `dotted`
211
+ **Line styles (`style`):** `solid` (default), `dashed`, `dotted`
184
212
 
185
213
  ### Tags Dictionary (tagsDictionary)
186
214
 
@@ -198,6 +226,20 @@ In `~/.claude.json` (or Cline settings):
198
226
  - `system`, `user`, `admin`
199
227
  - `client`, `manager`, `bot`
200
228
 
229
+ ## Opening Schema by URL
230
+
231
+ You can open any schema by URL using `get_schema_by_url`:
232
+
233
+ ```
234
+ # Canvas URL
235
+ https://scheme.smartlaunchhub.com/canvas?id=abc123
236
+
237
+ # Shared link
238
+ https://scheme.smartlaunchhub.com/shared/xyz789
239
+ ```
240
+
241
+ Just paste the URL and the MCP will extract the schema ID automatically.
242
+
201
243
  ## Schema Methodology
202
244
 
203
245
  Schema = complete tree of **ACTIONS** and **CONSEQUENCES**:
@@ -218,7 +260,7 @@ Schema = complete tree of **ACTIONS** and **CONSEQUENCES**:
218
260
  ## Links
219
261
 
220
262
  - [SchemeOG Cloud](https://scheme.smartlaunchhub.com)
221
- - [GitLab](https://gitlab.com/serter2069/schemeog-cloud)
263
+ - [GitLab](https://gitlab.com/serter2069/schemeog-mcp)
222
264
 
223
265
  ## License
224
266
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "schemeog-mcp",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "MCP Server for SchemeOG Cloud - Create and manage visual diagrams and flowcharts with AI assistance",
5
5
  "type": "module",
6
6
  "main": "index.js",