fmea-api-mcp-server 1.1.47 → 1.1.48

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/index.js CHANGED
@@ -28,7 +28,7 @@ class ApiDocsServer {
28
28
  constructor() {
29
29
  this.server = new Server({
30
30
  name: "api-docs-mcp",
31
- version: "1.1.47",
31
+ version: "1.1.48",
32
32
  }, {
33
33
  capabilities: {
34
34
  resources: {},
@@ -119,9 +119,17 @@
119
119
  {
120
120
  "name": "fmeaType",
121
121
  "in": "query",
122
- "description": "FMEA project type (e.g. DFMEA, PFMEA)",
122
+ "description": "FMEA project type",
123
123
  "schema": {
124
- "type": "string"
124
+ "type": "string",
125
+ "enum": [
126
+ "DESIGN",
127
+ "PROCESS",
128
+ "EQUIPMENT",
129
+ "FA",
130
+ "FTA",
131
+ "CPLAN"
132
+ ]
125
133
  }
126
134
  }
127
135
  ],
@@ -316,9 +324,17 @@
316
324
  {
317
325
  "name": "fmeaType",
318
326
  "in": "query",
319
- "description": "FMEA project type (e.g. DFMEA, PFMEA)",
327
+ "description": "FMEA project type",
320
328
  "schema": {
321
- "type": "string"
329
+ "type": "string",
330
+ "enum": [
331
+ "DESIGN",
332
+ "PROCESS",
333
+ "EQUIPMENT",
334
+ "FA",
335
+ "FTA",
336
+ "CPLAN"
337
+ ]
322
338
  }
323
339
  }
324
340
  ],
@@ -418,9 +434,17 @@
418
434
  {
419
435
  "name": "fmeaType",
420
436
  "in": "query",
421
- "description": "FMEA project type (e.g. DFMEA, PFMEA)",
437
+ "description": "FMEA project type",
422
438
  "schema": {
423
- "type": "string"
439
+ "type": "string",
440
+ "enum": [
441
+ "DESIGN",
442
+ "PROCESS",
443
+ "EQUIPMENT",
444
+ "FA",
445
+ "FTA",
446
+ "CPLAN"
447
+ ]
424
448
  }
425
449
  },
426
450
  {
@@ -278,9 +278,14 @@
278
278
  {
279
279
  "name": "action",
280
280
  "in": "query",
281
- "description": "Filter by action type (e.g., DEACTIVATE, CREATE)",
281
+ "description": "Filter by action type",
282
282
  "schema": {
283
- "type": "string"
283
+ "type": "string",
284
+ "enum": [
285
+ "ADD",
286
+ "DELETE",
287
+ "UPDATE"
288
+ ]
284
289
  }
285
290
  },
286
291
  {
@@ -729,7 +729,7 @@
729
729
  {
730
730
  "name": "blockDiagramType",
731
731
  "in": "path",
732
- "description": "Block diagram type. Valid values: P-DIAGRAM, BOUNDARY-DIAGRAM.",
732
+ "description": "Block diagram type",
733
733
  "required": true,
734
734
  "schema": {
735
735
  "type": "string",
@@ -3,305 +3,6 @@
3
3
  "version": "v2",
4
4
  "description": "",
5
5
  "endpoints": [
6
- {
7
- "path": "/api/v2/condition-library/{type}/{serial}",
8
- "method": "DELETE",
9
- "operationId": "deleteConditionLibraryNode",
10
- "summary": "Delete condition library node",
11
- "description": "Deletes the target node and its subtree for the requested type. Root node deletion is not allowed.",
12
- "tags": [
13
- "Condition Library"
14
- ],
15
- "parameters": [
16
- {
17
- "name": "type",
18
- "in": "path",
19
- "description": "Condition library type (stress|design|process)",
20
- "required": true,
21
- "schema": {
22
- "type": "string",
23
- "enum": [
24
- "STRESS",
25
- "DESIGN",
26
- "PROCESS"
27
- ]
28
- }
29
- },
30
- {
31
- "name": "serial",
32
- "in": "path",
33
- "description": "Condition library serial",
34
- "required": true,
35
- "schema": {
36
- "type": "integer",
37
- "format": "int32",
38
- "minimum": 0
39
- }
40
- }
41
- ],
42
- "requestBody": null,
43
- "responses": {
44
- "default": {
45
- "description": "default response",
46
- "content": {
47
- "application/json": {}
48
- }
49
- }
50
- }
51
- },
52
- {
53
- "path": "/api/v2/condition-library/{type}/{serial}",
54
- "method": "PATCH",
55
- "operationId": "updateConditionLibraryNode",
56
- "summary": "Update condition library node",
57
- "description": "Updates the node title by serial for the requested type. Duplicate titles under the same parent are rejected.",
58
- "tags": [
59
- "Condition Library"
60
- ],
61
- "parameters": [
62
- {
63
- "name": "type",
64
- "in": "path",
65
- "description": "Condition library type (stress|design|process)",
66
- "required": true,
67
- "schema": {
68
- "type": "string",
69
- "enum": [
70
- "STRESS",
71
- "DESIGN",
72
- "PROCESS"
73
- ]
74
- }
75
- },
76
- {
77
- "name": "serial",
78
- "in": "path",
79
- "description": "Condition library serial",
80
- "required": true,
81
- "schema": {
82
- "type": "integer",
83
- "format": "int32",
84
- "minimum": 0
85
- }
86
- }
87
- ],
88
- "requestBody": {
89
- "content": {
90
- "application/json": {
91
- "schema": {
92
- "required": [
93
- "title"
94
- ],
95
- "type": "object",
96
- "properties": {
97
- "title": {
98
- "type": "string"
99
- }
100
- }
101
- }
102
- }
103
- },
104
- "required": true
105
- },
106
- "responses": {
107
- "default": {
108
- "description": "default response",
109
- "content": {
110
- "application/json": {
111
- "schema": {
112
- "type": "object",
113
- "properties": {
114
- "serial": {
115
- "type": "integer"
116
- },
117
- "type": {
118
- "type": "string",
119
- "enum": [
120
- "STRESS",
121
- "DESIGN",
122
- "PROCESS"
123
- ]
124
- },
125
- "title": {
126
- "type": "string"
127
- },
128
- "id": {
129
- "type": "string"
130
- },
131
- "parentId": {
132
- "type": "string"
133
- },
134
- "depth": {
135
- "type": "integer"
136
- },
137
- "rank": {
138
- "type": "integer"
139
- }
140
- }
141
- }
142
- }
143
- }
144
- }
145
- }
146
- },
147
- {
148
- "path": "/api/v2/condition-library/{type}",
149
- "method": "POST",
150
- "operationId": "createConditionLibraryNode",
151
- "summary": "Create condition library node",
152
- "description": "Creates a node in the condition library for the requested type. When parentId is omitted, the node is created under the root tag (0000).",
153
- "tags": [
154
- "Condition Library"
155
- ],
156
- "parameters": [
157
- {
158
- "name": "type",
159
- "in": "path",
160
- "description": "Condition library type (stress|design|process)",
161
- "required": true,
162
- "schema": {
163
- "type": "string",
164
- "enum": [
165
- "STRESS",
166
- "DESIGN",
167
- "PROCESS"
168
- ]
169
- }
170
- }
171
- ],
172
- "requestBody": {
173
- "content": {
174
- "application/json": {
175
- "schema": {
176
- "required": [
177
- "title"
178
- ],
179
- "type": "object",
180
- "properties": {
181
- "title": {
182
- "type": "string"
183
- },
184
- "parentId": {
185
- "type": "string"
186
- }
187
- }
188
- }
189
- }
190
- },
191
- "required": true
192
- },
193
- "responses": {
194
- "default": {
195
- "description": "default response",
196
- "content": {
197
- "application/json": {
198
- "schema": {
199
- "type": "object",
200
- "properties": {
201
- "serial": {
202
- "type": "integer"
203
- },
204
- "type": {
205
- "type": "string",
206
- "enum": [
207
- "STRESS",
208
- "DESIGN",
209
- "PROCESS"
210
- ]
211
- },
212
- "title": {
213
- "type": "string"
214
- },
215
- "id": {
216
- "type": "string"
217
- },
218
- "parentId": {
219
- "type": "string"
220
- },
221
- "depth": {
222
- "type": "integer"
223
- },
224
- "rank": {
225
- "type": "integer"
226
- }
227
- }
228
- }
229
- }
230
- }
231
- }
232
- }
233
- },
234
- {
235
- "path": "/api/v2/condition-library/{type}/order",
236
- "method": "PUT",
237
- "operationId": "updateConditionLibraryOrder",
238
- "summary": "Update condition library order",
239
- "description": "Updates rank values for sibling nodes in the requested type. All items must belong to the same parent and include serial/rank pairs.",
240
- "tags": [
241
- "Condition Library"
242
- ],
243
- "parameters": [
244
- {
245
- "name": "type",
246
- "in": "path",
247
- "description": "Condition library type (stress|design|process)",
248
- "required": true,
249
- "schema": {
250
- "type": "string",
251
- "enum": [
252
- "STRESS",
253
- "DESIGN",
254
- "PROCESS"
255
- ]
256
- }
257
- }
258
- ],
259
- "requestBody": {
260
- "content": {
261
- "application/json": {
262
- "schema": {
263
- "required": [
264
- "items"
265
- ],
266
- "type": "object",
267
- "properties": {
268
- "items": {
269
- "maxItems": 2147483647,
270
- "minItems": 1,
271
- "type": "array",
272
- "items": {
273
- "required": [
274
- "rank",
275
- "serial"
276
- ],
277
- "type": "object",
278
- "properties": {
279
- "serial": {
280
- "type": "integer",
281
- "format": "int32"
282
- },
283
- "rank": {
284
- "type": "integer",
285
- "format": "int32"
286
- }
287
- }
288
- }
289
- }
290
- }
291
- }
292
- }
293
- },
294
- "required": true
295
- },
296
- "responses": {
297
- "default": {
298
- "description": "default response",
299
- "content": {
300
- "application/json": {}
301
- }
302
- }
303
- }
304
- },
305
6
  {
306
7
  "path": "/api/v2/condition-library",
307
8
  "method": "GET",
@@ -315,7 +16,7 @@
315
16
  {
316
17
  "name": "type",
317
18
  "in": "query",
318
- "description": "Condition library type (stress|design|process). If omitted, returns all types.",
19
+ "description": "Condition library type. If omitted, returns all types.",
319
20
  "schema": {
320
21
  "type": "string",
321
22
  "enum": [
@@ -439,7 +140,7 @@
439
140
  {
440
141
  "name": "type",
441
142
  "in": "query",
442
- "description": "Condition library type (stress|design|process)",
143
+ "description": "Condition library type",
443
144
  "schema": {
444
145
  "type": "string",
445
146
  "enum": [
@@ -532,7 +233,7 @@
532
233
  "method": "PUT",
533
234
  "operationId": "saveConditionLibraryChildren",
534
235
  "summary": "Save condition library children",
535
- "description": "Replaces children of the specified parent node. Server computes diff against current state: creates new nodes, updates changed titles, deletes removed nodes (with subtrees), and reorders by array index.",
236
+ "description": "Replaces the entire condition library tree for the requested type. The request contains a recursive tree starting from ROOT's direct children. Server diffs each level: deletes omitted nodes (with subtrees), updates changed titles, creates new nodes, and reorders by array position. Nodes with null children field keep their existing subtree; nodes with an empty children array have their subtree deleted.",
536
237
  "tags": [
537
238
  "Condition Library"
538
239
  ],
@@ -540,7 +241,7 @@
540
241
  {
541
242
  "name": "type",
542
243
  "in": "path",
543
- "description": "Condition library type (stress|design|process)",
244
+ "description": "Condition library type",
544
245
  "required": true,
545
246
  "schema": {
546
247
  "type": "string",
@@ -558,9 +259,6 @@
558
259
  "schema": {
559
260
  "type": "object",
560
261
  "properties": {
561
- "parentId": {
562
- "type": "string"
563
- },
564
262
  "children": {
565
263
  "type": "array",
566
264
  "items": {
@@ -16,7 +16,7 @@
16
16
  {
17
17
  "name": "type",
18
18
  "in": "path",
19
- "description": "Condition library type (stress|design|process)",
19
+ "description": "Condition library type",
20
20
  "required": true,
21
21
  "schema": {
22
22
  "type": "string",
@@ -43,9 +43,6 @@
43
43
  "schema": {
44
44
  "type": "object",
45
45
  "properties": {
46
- "parentId": {
47
- "type": "string"
48
- },
49
46
  "sheetIndex": {
50
47
  "type": "integer",
51
48
  "format": "int32"
@@ -25,7 +25,7 @@
25
25
  {
26
26
  "name": "documentCategory",
27
27
  "in": "path",
28
- "description": "Document category (e.g., REPORT, REFERENCE)",
28
+ "description": "Document category",
29
29
  "required": true,
30
30
  "schema": {
31
31
  "type": "string",
@@ -110,7 +110,7 @@
110
110
  {
111
111
  "name": "documentCategory",
112
112
  "in": "path",
113
- "description": "Document category to add to (e.g., REPORT, REFERENCE)",
113
+ "description": "Document category to add to",
114
114
  "required": true,
115
115
  "schema": {
116
116
  "type": "string",
@@ -457,7 +457,7 @@
457
457
  {
458
458
  "name": "documentCategory",
459
459
  "in": "path",
460
- "description": "Document category (e.g., REPORT, REFERENCE)",
460
+ "description": "Document category",
461
461
  "required": true,
462
462
  "schema": {
463
463
  "type": "string",