fmea-api-mcp-server 1.0.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.
@@ -0,0 +1,530 @@
1
+ {
2
+ "category": "Worksheets",
3
+ "version": "v2",
4
+ "description": "워크시트 관련 API",
5
+ "endpoints": [
6
+ {
7
+ "path": "/api/v2/projects/{projectId}/worksheets",
8
+ "method": "GET",
9
+ "summary": "Get worksheet summaries",
10
+ "description": "Retrieve all worksheet summaries for a specific project",
11
+ "tags": [],
12
+ "parameters": [
13
+ {
14
+ "name": "projectId",
15
+ "in": "path",
16
+ "required": true,
17
+ "schema": {
18
+ "type": "string"
19
+ }
20
+ }
21
+ ],
22
+ "operationId": "getSummaries",
23
+ "responses": {
24
+ "default": {
25
+ "description": "default response",
26
+ "content": {
27
+ "application/json": {}
28
+ }
29
+ }
30
+ }
31
+ },
32
+ {
33
+ "path": "/api/v2/projects/{projectId}/worksheets",
34
+ "method": "POST",
35
+ "summary": "Create worksheet",
36
+ "description": "Create a new worksheet for a specific project",
37
+ "tags": [],
38
+ "parameters": [
39
+ {
40
+ "name": "projectId",
41
+ "in": "path",
42
+ "required": true,
43
+ "schema": {
44
+ "type": "string"
45
+ }
46
+ }
47
+ ],
48
+ "requestBody": {
49
+ "content": {
50
+ "application/json": {
51
+ "schema": {
52
+ "$ref": "#/components/schemas/WorksheetCreationDTO"
53
+ }
54
+ }
55
+ }
56
+ },
57
+ "responses": {
58
+ "default": {
59
+ "description": "default response",
60
+ "content": {
61
+ "*/*": {}
62
+ }
63
+ }
64
+ },
65
+ "operationId": "create_4"
66
+ },
67
+ {
68
+ "path": "/api/v2/projects/{projectId}/worksheets/failuremode/{failureModeId}",
69
+ "method": "GET",
70
+ "summary": "Get worksheet by failure mode",
71
+ "description": "Retrieve worksheet associated with a specific failure mode",
72
+ "tags": [],
73
+ "parameters": [
74
+ {
75
+ "name": "projectId",
76
+ "in": "path",
77
+ "required": true,
78
+ "schema": {
79
+ "type": "string"
80
+ }
81
+ },
82
+ {
83
+ "name": "failureModeId",
84
+ "in": "path",
85
+ "required": true,
86
+ "schema": {
87
+ "type": "string"
88
+ }
89
+ }
90
+ ],
91
+ "operationId": "getByFailureMode",
92
+ "responses": {
93
+ "default": {
94
+ "description": "default response",
95
+ "content": {
96
+ "application/json": {}
97
+ }
98
+ }
99
+ }
100
+ },
101
+ {
102
+ "path": "/api/v2/projects/{projectId}/worksheets/failuremode/{failureModeId}",
103
+ "method": "POST",
104
+ "summary": "Create worksheet by failure mode",
105
+ "description": "Create a new worksheet for a specific failure mode",
106
+ "tags": [],
107
+ "parameters": [
108
+ {
109
+ "name": "projectId",
110
+ "in": "path",
111
+ "required": true,
112
+ "schema": {
113
+ "type": "string"
114
+ }
115
+ },
116
+ {
117
+ "name": "failureModeId",
118
+ "in": "path",
119
+ "required": true,
120
+ "schema": {
121
+ "type": "string"
122
+ }
123
+ },
124
+ {
125
+ "name": "blockDiagramId",
126
+ "in": "query",
127
+ "required": false,
128
+ "schema": {
129
+ "type": "string"
130
+ }
131
+ }
132
+ ],
133
+ "operationId": "createByFailureMode",
134
+ "responses": {
135
+ "default": {
136
+ "description": "default response",
137
+ "content": {
138
+ "application/json": {}
139
+ }
140
+ }
141
+ }
142
+ },
143
+ {
144
+ "path": "/api/v2/projects/{projectId}/worksheets/{reportNoSimple}",
145
+ "method": "GET",
146
+ "summary": "Get worksheet by report number",
147
+ "description": "Retrieve a specific worksheet by its report number",
148
+ "tags": [],
149
+ "parameters": [
150
+ {
151
+ "name": "projectId",
152
+ "in": "path",
153
+ "required": true,
154
+ "schema": {
155
+ "type": "string"
156
+ }
157
+ },
158
+ {
159
+ "name": "reportNoSimple",
160
+ "in": "path",
161
+ "required": true,
162
+ "schema": {
163
+ "$ref": "#/components/schemas/ReportNoSetDTO"
164
+ }
165
+ }
166
+ ],
167
+ "operationId": "get_5",
168
+ "responses": {
169
+ "default": {
170
+ "description": "default response",
171
+ "content": {
172
+ "application/json": {}
173
+ }
174
+ }
175
+ }
176
+ },
177
+ {
178
+ "path": "/api/v2/projects/{projectId}/worksheets/{reportNoSimple}",
179
+ "method": "PUT",
180
+ "summary": "Update worksheet",
181
+ "description": "Update an existing worksheet by its report number",
182
+ "tags": [],
183
+ "parameters": [
184
+ {
185
+ "name": "projectId",
186
+ "in": "path",
187
+ "required": true,
188
+ "schema": {
189
+ "type": "string"
190
+ }
191
+ },
192
+ {
193
+ "name": "reportNoSimple",
194
+ "in": "path",
195
+ "required": true,
196
+ "schema": {
197
+ "$ref": "#/components/schemas/ReportNoSetDTO"
198
+ }
199
+ }
200
+ ],
201
+ "requestBody": {
202
+ "content": {
203
+ "application/json": {
204
+ "schema": {
205
+ "$ref": "#/components/schemas/WorksheetSaveDTO"
206
+ }
207
+ }
208
+ }
209
+ },
210
+ "responses": {
211
+ "default": {
212
+ "description": "default response",
213
+ "content": {
214
+ "*/*": {}
215
+ }
216
+ }
217
+ },
218
+ "operationId": "save_7"
219
+ },
220
+ {
221
+ "path": "/api/v2/projects/{projectId}/worksheets/{reportNoSimple}",
222
+ "method": "DELETE",
223
+ "summary": "Delete worksheet",
224
+ "description": "Delete a worksheet by its report number",
225
+ "tags": [],
226
+ "parameters": [
227
+ {
228
+ "name": "projectId",
229
+ "in": "path",
230
+ "required": true,
231
+ "schema": {
232
+ "type": "string"
233
+ }
234
+ },
235
+ {
236
+ "name": "reportNoSimple",
237
+ "in": "path",
238
+ "required": true,
239
+ "schema": {
240
+ "$ref": "#/components/schemas/ReportNoSetDTO"
241
+ }
242
+ }
243
+ ],
244
+ "requestBody": {
245
+ "content": {
246
+ "application/json": {
247
+ "schema": {
248
+ "$ref": "#/components/schemas/WorksheetSaveDTO"
249
+ }
250
+ }
251
+ }
252
+ },
253
+ "responses": {
254
+ "default": {
255
+ "description": "default response",
256
+ "content": {
257
+ "*/*": {}
258
+ }
259
+ }
260
+ },
261
+ "operationId": "delete_4"
262
+ },
263
+ {
264
+ "path": "/api/v2/projects/{projectId}/worksheets/{reportNo}/headers",
265
+ "method": "GET",
266
+ "summary": "Get worksheet headers",
267
+ "description": "Retrieve headers for a specific worksheet",
268
+ "tags": [],
269
+ "parameters": [
270
+ {
271
+ "name": "projectId",
272
+ "in": "path",
273
+ "required": true,
274
+ "schema": {
275
+ "type": "string"
276
+ }
277
+ },
278
+ {
279
+ "name": "reportNo",
280
+ "in": "path",
281
+ "required": true,
282
+ "schema": {
283
+ "type": "string"
284
+ }
285
+ }
286
+ ],
287
+ "operationId": "getHeaders",
288
+ "responses": {
289
+ "default": {
290
+ "description": "default response",
291
+ "content": {
292
+ "application/json": {}
293
+ }
294
+ }
295
+ }
296
+ },
297
+ {
298
+ "path": "/api/v2/projects/{projectId}/worksheets/{reportNo}/{failureModeId}",
299
+ "method": "PUT",
300
+ "summary": "Save worksheet by failure mode",
301
+ "description": "Update worksheet data for a specific failure mode",
302
+ "tags": [],
303
+ "parameters": [
304
+ {
305
+ "name": "projectId",
306
+ "in": "path",
307
+ "required": true,
308
+ "schema": {
309
+ "type": "string"
310
+ }
311
+ },
312
+ {
313
+ "name": "reportNo",
314
+ "in": "path",
315
+ "required": true,
316
+ "schema": {
317
+ "type": "string"
318
+ }
319
+ },
320
+ {
321
+ "name": "failureModeId",
322
+ "in": "path",
323
+ "required": true,
324
+ "schema": {
325
+ "type": "string"
326
+ }
327
+ }
328
+ ],
329
+ "requestBody": {
330
+ "content": {
331
+ "application/json": {
332
+ "schema": {
333
+ "$ref": "#/components/schemas/FailureModeWorksheetSaveDTO"
334
+ }
335
+ }
336
+ }
337
+ },
338
+ "responses": {
339
+ "default": {
340
+ "description": "default response",
341
+ "content": {
342
+ "*/*": {}
343
+ }
344
+ }
345
+ },
346
+ "operationId": "saveByFailureMode"
347
+ },
348
+ {
349
+ "path": "/api/v2/projects/{projectId}/worksheet-excel/{uuid}",
350
+ "method": "PUT",
351
+ "summary": "Update worksheet Excel",
352
+ "description": "Update an existing worksheet Excel file",
353
+ "tags": [],
354
+ "parameters": [
355
+ {
356
+ "name": "projectId",
357
+ "in": "path",
358
+ "required": true,
359
+ "schema": {
360
+ "type": "string"
361
+ }
362
+ },
363
+ {
364
+ "name": "uuid",
365
+ "in": "path",
366
+ "required": true,
367
+ "schema": {
368
+ "type": "string"
369
+ }
370
+ }
371
+ ],
372
+ "requestBody": {
373
+ "content": {
374
+ "application/json": {
375
+ "schema": {
376
+ "$ref": "#/components/schemas/WorksheetExcelSaveDTO"
377
+ }
378
+ }
379
+ }
380
+ },
381
+ "responses": {
382
+ "default": {
383
+ "description": "default response",
384
+ "content": {
385
+ "*/*": {}
386
+ }
387
+ }
388
+ },
389
+ "operationId": "update_4"
390
+ },
391
+ {
392
+ "path": "/api/v2/projects/{projectId}/worksheet-excel/{uuid}",
393
+ "method": "POST",
394
+ "summary": "Add worksheet Excel",
395
+ "description": "Add a new worksheet Excel file",
396
+ "tags": [],
397
+ "parameters": [
398
+ {
399
+ "name": "projectId",
400
+ "in": "path",
401
+ "required": true,
402
+ "schema": {
403
+ "type": "string"
404
+ }
405
+ },
406
+ {
407
+ "name": "uuid",
408
+ "in": "path",
409
+ "required": true,
410
+ "schema": {
411
+ "type": "string"
412
+ }
413
+ }
414
+ ],
415
+ "requestBody": {
416
+ "content": {
417
+ "application/json": {
418
+ "schema": {
419
+ "$ref": "#/components/schemas/WorksheetExcelSaveDTO"
420
+ }
421
+ }
422
+ }
423
+ },
424
+ "responses": {
425
+ "default": {
426
+ "description": "default response",
427
+ "content": {
428
+ "*/*": {}
429
+ }
430
+ }
431
+ },
432
+ "operationId": "add"
433
+ },
434
+ {
435
+ "path": "/api/v2/projects/{projectId}/worksheet-excel/{reportNoSimple}",
436
+ "method": "GET",
437
+ "summary": "Get worksheet Excel download link",
438
+ "description": "Retrieve download link for a worksheet Excel file",
439
+ "tags": [],
440
+ "parameters": [
441
+ {
442
+ "name": "projectId",
443
+ "in": "path",
444
+ "required": true,
445
+ "schema": {
446
+ "type": "string"
447
+ }
448
+ },
449
+ {
450
+ "name": "reportNoSimple",
451
+ "in": "path",
452
+ "required": true,
453
+ "schema": {
454
+ "$ref": "#/components/schemas/ReportNoSetDTO"
455
+ }
456
+ }
457
+ ],
458
+ "operationId": "getDownloadLink_1",
459
+ "responses": {
460
+ "default": {
461
+ "description": "default response",
462
+ "content": {
463
+ "*/*": {}
464
+ }
465
+ }
466
+ }
467
+ },
468
+ {
469
+ "path": "/api/v2/projects/{projectId}/worksheet-excel/{uuid}/metadata",
470
+ "method": "GET",
471
+ "summary": "Get worksheet Excel metadata",
472
+ "description": "Retrieve metadata for a worksheet Excel file",
473
+ "tags": [],
474
+ "parameters": [
475
+ {
476
+ "name": "projectId",
477
+ "in": "path",
478
+ "required": true,
479
+ "schema": {
480
+ "type": "string"
481
+ }
482
+ },
483
+ {
484
+ "name": "uuid",
485
+ "in": "path",
486
+ "required": true,
487
+ "schema": {
488
+ "type": "string"
489
+ }
490
+ }
491
+ ],
492
+ "operationId": "getMetadata",
493
+ "responses": {
494
+ "default": {
495
+ "description": "default response",
496
+ "content": {
497
+ "*/*": {}
498
+ }
499
+ }
500
+ }
501
+ },
502
+ {
503
+ "path": "/api/v2/worksheet-templates/{id}/headers",
504
+ "method": "GET",
505
+ "summary": "Get worksheet template headers",
506
+ "description": "Retrieve headers for a specific worksheet template",
507
+ "tags": [],
508
+ "parameters": [
509
+ {
510
+ "name": "id",
511
+ "in": "path",
512
+ "required": true,
513
+ "schema": {
514
+ "type": "integer",
515
+ "format": "int32"
516
+ }
517
+ }
518
+ ],
519
+ "operationId": "getHeaders_1",
520
+ "responses": {
521
+ "default": {
522
+ "description": "default response",
523
+ "content": {
524
+ "application/json": {}
525
+ }
526
+ }
527
+ }
528
+ }
529
+ ]
530
+ }
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "fmea-api-mcp-server",
3
+ "version": "1.0.0",
4
+ "description": "MCP server for serving API documentation from endpoints directory",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "scripts": {
8
+ "prebuild": "rm -rf endpoints && cp -r ../endpoints ./endpoints",
9
+ "build": "tsc",
10
+ "start": "node dist/index.js",
11
+ "watch": "tsc --watch"
12
+ },
13
+ "dependencies": {
14
+ "@modelcontextprotocol/sdk": "^1.25.2",
15
+ "zod": "^3.22.4"
16
+ },
17
+ "devDependencies": {
18
+ "@types/node": "^20.10.0",
19
+ "typescript": "^5.3.0"
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "endpoints"
24
+ ]
25
+ }