@modudraft/mcp 0.13.1 → 0.14.0

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.
package/README.md CHANGED
@@ -99,17 +99,22 @@ Copy the key - you'll only see it once.
99
99
  | `get_node_schema` | Get expected metadata fields for an archetype |
100
100
 
101
101
  ### Sequence diagram
102
+ A diagram can hold many named sequences. Each has its own lanes (architecture nodes, in order), messages and fragments. Message and fragment tools take `sequence_id`, which may be left out only when the diagram has exactly one sequence.
103
+
102
104
  | Tool | Description |
103
105
  |---|---|
104
- | `add_sequence_message` | Add a message between two nodes (pass a node id or exact node label; resolved to the node id, which is what the Sequence tab draws) |
105
- | `bulk_add_sequence_messages` | Add many messages (and optional fragments) in one call; participants resolve to node ids like `add_sequence_message` |
106
- | `get_sequence` | Read just the sequence: messages (ids, node labels, whether the tab draws them) and fragments; far smaller than `get_diagram` |
106
+ | `list_sequences` | List the sequences: id, name, lanes and message/fragment counts |
107
+ | `add_sequence` | Create a sequence; `path: ["Web", "API", "DB"]` builds lanes Web, API, DB and messages Web→API, API→DB |
108
+ | `update_sequence` | Rename a sequence, change its description, or reorder/replace its lanes |
109
+ | `delete_sequence` | Delete a sequence with its messages and fragments |
110
+ | `add_sequence_participant` | Add a lane (an architecture node) to a sequence |
111
+ | `add_sequence_message` | Add a message between two lanes (pass a node id or exact node label) |
112
+ | `bulk_add_sequence_messages` | Add many messages (and optional fragments) to one sequence in one call |
113
+ | `get_sequence` | Read one sequence: lanes, messages (ids, node labels, whether the tab draws them) and fragments; far smaller than `get_diagram` |
107
114
  | `update_sequence_message` | Edit one message in place (sender, receiver, label, type) and/or move it to a new position |
108
115
  | `delete_sequence_message` | Delete one message and renumber the rest; fragments that included it are trimmed (or removed if left empty) |
109
- | `add_sequence_participant` | Register a named participant |
110
- | `clear_sequence` | Remove all sequence messages |
111
- | `auto_sequence` | Derive sequence messages from the architecture edges |
112
- | `add_sequence_fragment` | Wrap messages in a loop / alt / opt / par fragment |
116
+ | `clear_sequence` | Remove all messages and fragments from one sequence (keeps its lanes) |
117
+ | `add_sequence_fragment` | Wrap messages of one sequence in a loop / alt / opt / par fragment |
113
118
  | `update_sequence_fragment` | Change a fragment's kind, condition, or message list |
114
119
  | `delete_sequence_fragment` | Remove a fragment |
115
120
 
@@ -240,7 +245,7 @@ The old `request_body`, `request_format`, `body`, `body_format` and top-level `r
240
245
 
241
246
  > "Add the DB schema for the order service - orders, order_items, and payments tables."
242
247
 
243
- > "Auto-generate a sequence diagram from the architecture."
248
+ > "Add a Login sequence that goes Web App → API Server → Postgres."
244
249
 
245
250
  > "What metadata is missing from the diagram nodes? Fill in the hosts and ports based on our .env file."
246
251
 
@@ -307,6 +312,7 @@ It draws the **full** tab or a **part** of it. `diagram_type` is `architecture`
307
312
  | `boundary` | architecture | `boundary: "VPC"` | the nodes inside that boundary |
308
313
  | `archetype` | architecture | `archetype: "database"` | only nodes of that archetype |
309
314
  | `from_message` / `to_message` | sequence | `from_message: 13, to_message: 15` | messages 13 to 15 (0-based, inclusive) |
315
+ | `sequence_id` | sequence | `sequence_id: "a1b2c3"` | which sequence (needed when there are several) |
310
316
  | `participants` | sequence | `participants: ["Web App", "API Server"]` | only messages between them |
311
317
  | `focus` + `hops` + `direction` | er | `focus: "orders", hops: 1` | that table and the tables related to it (`out` = the tables it references, `in` = the tables that reference it) |
312
318
  | `tables` / `name_prefix` / `schema` | er | `tables: ["users", "orders"]`, `name_prefix: "order"`, `schema: "audit"` | exactly those tables / tables whose name starts with it / tables of one schema |