sad-mcp 0.1.27 → 0.1.29

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/dist/prompts.js CHANGED
@@ -21,9 +21,9 @@ const SKILLS = [
21
21
  description: "Create professional UML use case diagrams as interactive HTML/SVG files",
22
22
  },
23
23
  {
24
- id: "bpmn-diagram",
24
+ id: "bpmn-analysis",
25
25
  name: "BPMN Process Analysis",
26
- description: "Analyze a business process and produce a structured BPMN 1.1 model for review",
26
+ description: "Analyze a business process and produce a structured BPMN 1.1 model for review. Outputs a text-based analysis report — not a diagram.",
27
27
  },
28
28
  ];
29
29
  // Internal skills: loadable via GetPrompt but not shown in ListPrompts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sad-mcp",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "description": "MCP server for Software Analysis and Design course materials at BGU",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,13 +1,11 @@
1
1
  ---
2
- name: bpmn-diagram
3
- description: Analyze a business process and produce a structured BPMN 1.1 model for review. Outputs an HTML page with visual summary and embedded JSON model. Use when the user describes a process and wants it modeled.
2
+ name: bpmn-analysis
3
+ description: Analyze a business process and produce a structured BPMN 1.1 model for review. Outputs the analysis directly in the conversation no files.
4
4
  ---
5
5
 
6
6
  # BPMN Process Analysis
7
7
 
8
- Analyze a business process description and produce a structured BPMN 1.1 model. The output is an HTML page that presents the model for user review, with the machine-readable JSON model embedded for later use.
9
-
10
- **You are producing an analysis, not a diagram. Do not generate any visual diagram, SVG, or drawing.**
8
+ You are a business process analyst. Analyze the process description and produce a structured textual model directly in the conversation. Do NOT create any files. Do NOT write any code. Do NOT generate HTML, SVG, or any visual output. Your entire response is plain text in the conversation.
11
9
 
12
10
  ## Critical Modeling Rules
13
11
 
@@ -74,50 +72,57 @@ List transient data flowing between tasks (e.g., "בקשת ביטול", "חשב
74
72
 
75
73
  ## Output Format
76
74
 
77
- Generate a **single self-contained HTML file** with two parts:
78
-
79
- ### Part 1: Visual Presentation (what the user sees)
80
-
81
- A clean, RTL Hebrew page with these sections:
82
-
83
- 1. **Header**: Process title in Hebrew, "ניתוח תהליך BPMN 1.1" subtitle
84
- 2. **Structure Overview card**: Shows number of pools and lanes as a simple hierarchy:
85
- ```
86
- 🏊 מאגרים (Pools):
87
- ├── לקוח (מאגר חיצוני — פועל באופן עצמאי)
88
- └── חברת אישימוטו (מאגר ארגוני)
89
- ├── שירות לקוחות
90
- ├── שימור לקוחות
91
- └── הנהלת חשבונות
92
- ```
93
- 3. **Workflow per pool/lane card**: For each pool and lane, show the task flow as a numbered list with gateway branches indented:
94
- ```
95
- שירות לקוחות:
96
- 1. קבלת פנייה ובדיקת תאריך
97
- 2. ⬦ XOR: כמה ימים מאז הרכישה?
98
- ├── ≤ 7 ימים → 3. ביטול מנוי 4. חסימת חשבון
99
- ├── 7-14 ימים העברה לשימור לקוחות
100
- └── > 14 ימים → 5. הודעה על דחיית הבקשה
101
- ```
102
- 4. **Gateways card**: Table of all gateways with type, question, and branches
103
- 5. **Data Stores card**: Each store with its connected tasks (reads/writes)
104
- 6. **Data Objects card**: Each object with source and target
105
- 7. **Message Flows card**: Between which pools, what's communicated, direction
106
- 8. **Assumptions & Open Questions card**: Yellow/orange highlight for attention
107
- 9. **Footer**: "כשהמודל מאושר, ניתן לבקש: 'צייר את דיאגרמת ה-BPMN'"
108
-
109
- **Styling guidelines:**
110
- - Use `Noto Sans Hebrew` from Google Fonts
111
- - `lang="he"` and `dir="rtl"` on the HTML element
112
- - Dark theme: `#1a1a2e` background, `#16213e` cards, white/light text
113
- - Color-coded cards: pools in blue, gateways in amber, data stores in green, messages in purple, assumptions in orange
114
- - Clean, modern look with rounded corners and subtle shadows
115
-
116
- ### Part 2: JSON Model (embedded, machine-readable)
117
-
118
- Embed the structured model in a `<script type="application/json" id="bpmn-model">` tag. This is not visible to the user but available for later processing.
119
-
120
- **JSON Schema:**
75
+ Respond DIRECTLY in the conversation. Do NOT create any files. Structure your response as follows:
76
+
77
+ ### Section 1: מבנה התהליך (Structure)
78
+
79
+ Show pools and lanes as a hierarchy:
80
+
81
+ ```
82
+ מאגרים (Pools):
83
+ ├── לקוח (מאגר חיצוני — פועל באופן עצמאי)
84
+ └── חברת אישימוטו (מאגר ארגוני)
85
+ ├── שירות לקוחות
86
+ ├── שימור לקוחות
87
+ └── הנהלת חשבונות
88
+ ```
89
+
90
+ ### Section 2: זרימת העבודה (Workflow)
91
+
92
+ For each pool and lane, show the task flow as a numbered list with gateway branches indented:
93
+
94
+ ```
95
+ שירות לקוחות:
96
+ 1. קבלת פנייה ובדיקת תאריך
97
+ 2. XOR: כמה ימים מאז הרכישה?
98
+ ├── 7 ימים → 3. ביטול מנוי 4. חסימת חשבון
99
+ ├── 7-14 ימים → העברה לשימור לקוחות
100
+ └── > 14 ימים 5. הודעה על דחיית הבקשה
101
+ ```
102
+
103
+ ### Section 3: שערים (Gateways)
104
+
105
+ Table of all gateways: ID, type (XOR/AND/OR), question, branches.
106
+
107
+ ### Section 4: מאגרי נתונים (Data Stores)
108
+
109
+ Each data store with its connected tasks (which tasks read from it, which write to it).
110
+
111
+ ### Section 5: אובייקטי נתונים (Data Objects)
112
+
113
+ Each data object with source task and target task.
114
+
115
+ ### Section 6: זרימות הודעות (Message Flows)
116
+
117
+ Between which pools, what's communicated, direction.
118
+
119
+ ### Section 7: הנחות ושאלות פתוחות (Assumptions & Open Questions)
120
+
121
+ List assumptions made and questions that need clarification.
122
+
123
+ ### Section 8: מודל JSON
124
+
125
+ Output the complete structured model as a JSON code block. This is the machine-readable model that will be used for rendering later.
121
126
 
122
127
  ```json
123
128
  {
@@ -202,11 +207,11 @@ Embed the structured model in a `<script type="application/json" id="bpmn-model"
202
207
  }
203
208
  ```
204
209
 
205
- ## After Generating the Output
210
+ ## After the Analysis
206
211
 
207
- Tell the user in the conversation (not in the HTML):
212
+ End your response with:
208
213
 
209
- **"יצרתי ניתוח מבני של התהליך. אפשר לעיין בקובץ ה-HTML ולבדוק שהמודל נכון. כשהמודל מאושר, אפשר לבקש ממני לצייר את דיאגרמת ה-BPMN."**
214
+ **"זהו הניתוח המבני של התהליך. אפשר לבקש תיקונים או שינויים. כשהמודל מאושר, אפשר לבקש ממני לצייר את דיאגרמת ה-BPMN."**
210
215
 
211
216
  ## Hebrew Language Guidelines
212
217