@enfyra/mcp-server 0.0.99 → 0.0.100

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enfyra/mcp-server",
3
- "version": "0.0.99",
3
+ "version": "0.0.100",
4
4
  "description": "MCP server for Enfyra - manage Enfyra instances from MCP-compatible coding tools",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -208,6 +208,10 @@ async function reloadBestEffort(apiUrl, path) {
208
208
  }
209
209
  }
210
210
 
211
+ function naturalPartialReload(reason) {
212
+ return { attempted: false, succeeded: true, reason };
213
+ }
214
+
211
215
  async function validateDynamicScript(apiUrl, sourceCode, scriptLanguage = 'javascript') {
212
216
  const result = await fetchAPI(apiUrl, '/admin/script/validate', {
213
217
  method: 'POST',
@@ -408,7 +412,7 @@ async function ensureFlow(apiUrl, {
408
412
  isEnabled,
409
413
  description,
410
414
  });
411
- const reload = await reloadBestEffort(apiUrl, '/admin/reload/flows');
415
+ const reload = naturalPartialReload('Flow metadata writes trigger the server partial reload contract; there is no dedicated flow reload endpoint.');
412
416
  return { action: 'flow_ensured', flow: { id: operation.id, name }, operation, reload };
413
417
  }
414
418
 
@@ -448,7 +452,7 @@ async function ensureFlowStep(apiUrl, {
448
452
  timeout,
449
453
  isEnabled,
450
454
  }, getId(flow)));
451
- const reload = await reloadBestEffort(apiUrl, '/admin/reload/flows');
455
+ const reload = naturalPartialReload('Flow step writes trigger the server partial reload contract; there is no dedicated flow reload endpoint.');
452
456
  return { action: 'flow_step_ensured', flow: { id: getId(flow), name: flow.name }, step: { id: operation.id, key, type }, validation, operation, reload };
453
457
  }
454
458
 
@@ -954,7 +958,7 @@ export function registerPlatformOperationTools(server, ENFYRA_API_URL) {
954
958
  ...(sourceCode !== undefined ? { sourceCode, scriptLanguage } : {}),
955
959
  };
956
960
  const operation = await createOrPatch(ENFYRA_API_URL, 'enfyra_websocket', existing, body);
957
- const reload = await reloadBestEffort(ENFYRA_API_URL, '/admin/reload/websockets');
961
+ const reload = naturalPartialReload('Websocket metadata writes trigger the server partial reload contract; there is no dedicated websocket reload endpoint.');
958
962
  return jsonText({ action: 'websocket_gateway_ensured', gateway: { id: operation.id, path: normalizedPath }, validation, operation, reload });
959
963
  },
960
964
  );
@@ -991,7 +995,7 @@ export function registerPlatformOperationTools(server, ENFYRA_API_URL) {
991
995
  isEnabled,
992
996
  description,
993
997
  });
994
- const reload = await reloadBestEffort(ENFYRA_API_URL, '/admin/reload/websockets');
998
+ const reload = naturalPartialReload('Websocket event writes trigger the server partial reload contract; there is no dedicated websocket reload endpoint.');
995
999
  return jsonText({ action: 'websocket_event_ensured', gateway: { id: getId(gateway), path: gateway.path }, eventName, validation, operation, reload });
996
1000
  },
997
1001
  );