fmea-api-mcp-server 1.1.64 → 1.1.65

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 (38) hide show
  1. package/data/changelog/1.1.64.json +10 -0
  2. package/data/changelog/next.json +748 -48
  3. package/data/endpoint-lookup.json +1 -1
  4. package/data/enums.json +2 -2
  5. package/data/search-index.oxy +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/services/search/OramaSearchService.js +4 -1
  8. package/dist/synonyms.js +2 -1
  9. package/dist/utils/ScoreCalculator.js +7 -2
  10. package/endpoints/v2/action-status/core.json +59 -0
  11. package/endpoints/v2/classification-excel/core.json +1 -1
  12. package/endpoints/v2/classifications/core.json +110 -458
  13. package/endpoints/v2/condition-library-excel/core.json +220 -2
  14. package/endpoints/v2/division-excel/core.json +1 -1
  15. package/endpoints/v2/divisions/core.json +214 -238
  16. package/endpoints/v2/documents/core.json +1 -1
  17. package/endpoints/v2/evaluation/core.json +433 -663
  18. package/endpoints/v2/evaluation-excel/core.json +1 -1
  19. package/endpoints/v2/failure-mode-library/core.json +189 -0
  20. package/endpoints/v2/failure-mode-library-excel/core.json +289 -0
  21. package/endpoints/v2/fourm/core.json +3 -3
  22. package/endpoints/v2/high-items/core.json +1 -1
  23. package/endpoints/v2/notice-excel/core.json +1 -1
  24. package/endpoints/v2/notices/core.json +4 -4
  25. package/endpoints/v2/process-symbol-excel/core.json +63 -4
  26. package/endpoints/v2/process-symbols/core.json +2 -2
  27. package/endpoints/v2/projects/core.json +26 -2
  28. package/endpoints/v2/scoring/core.json +34 -137
  29. package/endpoints/v2/synonym-excel/core.json +101 -8
  30. package/endpoints/v2/synonyms/core.json +58 -176
  31. package/endpoints/v2/templates/core.json +1 -157
  32. package/endpoints/v2/user-excel/core.json +1 -1
  33. package/endpoints/v2/users/core.json +42 -0
  34. package/endpoints/v2/worksheet-template-excel/core.json +1 -1
  35. package/endpoints/v2/worksheets/core.json +2 -2
  36. package/endpoints/v2/worksheets/excel.json +1 -1
  37. package/package.json +1 -1
  38. package/endpoints/v2/fm-checkpoint/core.json +0 -363
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.64",
31
+ version: "1.1.65",
32
32
  }, {
33
33
  capabilities: {
34
34
  resources: {},
@@ -207,7 +207,10 @@ export class OramaSearchService {
207
207
  });
208
208
  // [Final Plan] Intent-Based Thresholding
209
209
  let THRESHOLD_SCORE = 0.05; // Default (Loose)
210
- if (intent.resource) {
210
+ if (intent.resource && intent.action) {
211
+ THRESHOLD_SCORE = 0.08; // [R41] Both resource+action detected: same as action-only (related-resource cases need this)
212
+ }
213
+ else if (intent.resource) {
211
214
  THRESHOLD_SCORE = 0.2;
212
215
  }
213
216
  else if (intent.action) {
package/dist/synonyms.js CHANGED
@@ -55,7 +55,8 @@ export const RESOURCE_ALIASES = {
55
55
  'evaluation': ['evaluation', 'evaluation criteria', 'assessment', 'rating criteria', 'grading'], // [R27] Evaluation criteria resource — removed 'scoring criteria' (now dedicated resource [R30])
56
56
  'significance-criteria': ['significance criteria', 'significance', 'sod threshold', 'rpn threshold', 'severity occurrence detection', 'sod criteria', 'sod', 'rpn', 'sod rpn'], // [R27] [R33] Added SOD/RPN shorthand
57
57
  'classification': ['classification', 'classification group', 'classification item', 'symbol', 'label group', 'risk classification', 'project classification'], // [R28] [R29] Classification groups and items
58
- 'fm-checkpoint': ['fm checkpoint', 'failure mode checkpoint', 'checkpoint', 'checklist', 'check item'], // [R30] FM Checkpoint tree management
58
+ 'failure-mode-library': ['failure mode library', 'fm library', 'fm-library', 'failure library'], // [R41] Failure mode library
59
+ 'fm-checkpoint': ['fm checkpoint', 'failure mode checkpoint', 'checkpoint', 'checklist', 'check item'], // [R30] FM Checkpoint tree management (legacy)
59
60
  'scoring-criteria': ['scoring criteria', 'scoring', 'score criteria', 'completeness scoring', 'scoring tree'], // [R30] Scoring criteria tree management
60
61
  'process-symbol': ['process symbol', 'process symbols', 'flow chart symbol', 'flowchart symbol', 'process flow'], // [R30] Process flow chart symbols
61
62
  'additional-info': ['additional info', 'additional information', 'extra info', 'supplementary info', 'custom field', 'custom attribute', 'form field'], // [R31] Additional info template management
@@ -49,9 +49,12 @@ export class ScoreCalculator {
49
49
  // A. Action Intent Scoring
50
50
  if (intent.action && docAction !== 'other') {
51
51
  // Compatible Actions: List implies Read (viewing items), Export implies Read, Import implies Create
52
+ // [R41] Snapshot PUT endpoints use 'update' actionType but accept create/delete intents
52
53
  const isCompatible = (intent.action === 'list' && docAction === 'read')
53
54
  || (intent.action === 'export' && docAction === 'read') // [R19] Download/export is a form of read
54
- || (intent.action === 'import' && docAction === 'create'); // [R19] Import is a form of create
55
+ || (intent.action === 'import' && docAction === 'create') // [R19] Import is a form of create
56
+ || (intent.action === 'create' && docAction === 'update') // [R41] Snapshot create via PUT (full-sync)
57
+ || (intent.action === 'delete' && docAction === 'update'); // [R41] Snapshot delete via PUT (full-sync)
55
58
  if (intent.action === docAction) {
56
59
  score += ScoreCalculator.ACTION_MATCH_BOOST;
57
60
  }
@@ -70,7 +73,9 @@ export class ScoreCalculator {
70
73
  if (intent.action && docAction !== 'other' && intent.action !== docAction) {
71
74
  const isCompatible = (intent.action === 'list' && docAction === 'read')
72
75
  || (intent.action === 'export' && docAction === 'read') // [R19]
73
- || (intent.action === 'import' && docAction === 'create'); // [R19]
76
+ || (intent.action === 'import' && docAction === 'create') // [R19]
77
+ || (intent.action === 'create' && docAction === 'update') // [R41] Snapshot create via PUT
78
+ || (intent.action === 'delete' && docAction === 'update'); // [R41] Snapshot delete via PUT
74
79
  if (!isCompatible) {
75
80
  applyResourceBoost = false;
76
81
  }
@@ -0,0 +1,59 @@
1
+ {
2
+ "category": "Action Status",
3
+ "version": "v2",
4
+ "description": "",
5
+ "endpoints": [
6
+ {
7
+ "path": "/api/v2/template/action-status",
8
+ "method": "PUT",
9
+ "operationId": "saveSnapshot_4",
10
+ "summary": "Save action status snapshot",
11
+ "description": "Saves the full snapshot for action statuses and returns the latest full list. This is the main JSON save path and omitted items are deleted.",
12
+ "tags": [
13
+ "Template"
14
+ ],
15
+ "parameters": [],
16
+ "requestBody": {
17
+ "content": {
18
+ "application/json": {
19
+ "schema": {
20
+ "required": [
21
+ "items"
22
+ ],
23
+ "type": "object",
24
+ "properties": {
25
+ "items": {
26
+ "type": "array",
27
+ "items": {
28
+ "required": [
29
+ "title"
30
+ ],
31
+ "type": "object",
32
+ "properties": {
33
+ "id": {
34
+ "type": "string"
35
+ },
36
+ "title": {
37
+ "maxLength": 30,
38
+ "minLength": 0,
39
+ "type": "string"
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ },
49
+ "responses": {
50
+ "default": {
51
+ "description": "default response",
52
+ "content": {
53
+ "application/json": {}
54
+ }
55
+ }
56
+ }
57
+ }
58
+ ]
59
+ }
@@ -8,7 +8,7 @@
8
8
  "method": "GET",
9
9
  "operationId": "export_3",
10
10
  "summary": "Export classification groups and items to Excel",
11
- "description": "Exports all classification groups and their items to an XLSX file and returns a download URI. Supports optional keyword search filter on group title or item title. Requires admin permission.",
11
+ "description": "Helper export that writes classification groups and items to an XLSX file and returns a download URI. The main admin snapshot source remains GET /api/v2/classifications. Supports optional keyword search filter on group title or item title. Requires admin permission.",
12
12
  "tags": [
13
13
  "ClassificationExcel"
14
14
  ],