@burdenoff/mcp-libs 2026.1030.3 → 2026.1030.4

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 (70) hide show
  1. package/dist/{chunk-J74ZKEXL.js → chunk-76RGHRRS.js} +13 -7
  2. package/dist/chunk-76RGHRRS.js.map +1 -0
  3. package/dist/{chunk-GTKSADBI.js → chunk-FVLIANOQ.js} +3 -3
  4. package/dist/{chunk-GTKSADBI.js.map → chunk-FVLIANOQ.js.map} +1 -1
  5. package/dist/core/index.cjs +11 -5
  6. package/dist/core/index.cjs.map +1 -1
  7. package/dist/core/index.js +1 -1
  8. package/dist/index.cjs +11 -5
  9. package/dist/index.cjs.map +1 -1
  10. package/dist/index.js +1 -1
  11. package/dist/modules/adaptercloud/index.js +1 -1
  12. package/dist/modules/artistrybase/index.js +1 -1
  13. package/dist/modules/assethandler/index.js +1 -1
  14. package/dist/modules/atheletebridge/index.js +1 -1
  15. package/dist/modules/auth/index.js +3 -3
  16. package/dist/modules/billing/index.js +1 -1
  17. package/dist/modules/brainyrich/index.js +1 -1
  18. package/dist/modules/buildmyiq/index.js +1 -1
  19. package/dist/modules/channels/index.js +1 -1
  20. package/dist/modules/collabkin/index.js +1 -1
  21. package/dist/modules/comradecircle/index.js +1 -1
  22. package/dist/modules/conversations/index.js +1 -1
  23. package/dist/modules/coolandlovely/index.js +1 -1
  24. package/dist/modules/cosmicintersection/index.js +1 -1
  25. package/dist/modules/crewfoundry/index.js +1 -1
  26. package/dist/modules/devportal/index.js +1 -1
  27. package/dist/modules/ecoimpacthub/index.js +1 -1
  28. package/dist/modules/eventfullymanaged/index.js +1 -1
  29. package/dist/modules/export/index.js +1 -1
  30. package/dist/modules/files/index.js +1 -1
  31. package/dist/modules/fluidgrids/index.js +1 -1
  32. package/dist/modules/ggnomad/index.js +1 -1
  33. package/dist/modules/govcitizenhub/index.js +1 -1
  34. package/dist/modules/groups/index.js +1 -1
  35. package/dist/modules/headshotmarketing/index.js +1 -1
  36. package/dist/modules/health/index.js +1 -1
  37. package/dist/modules/healthybowl/index.js +1 -1
  38. package/dist/modules/hookmovies/index.js +1 -1
  39. package/dist/modules/housingvista/index.js +1 -1
  40. package/dist/modules/integrations/index.js +1 -1
  41. package/dist/modules/intelwatchtower/index.js +1 -1
  42. package/dist/modules/kadaikodi/index.js +1 -1
  43. package/dist/modules/labsofscience/index.js +1 -1
  44. package/dist/modules/manufacturedops/index.js +1 -1
  45. package/dist/modules/movethewheels/index.js +1 -1
  46. package/dist/modules/mybodyshield/index.js +1 -1
  47. package/dist/modules/notifications/index.js +1 -1
  48. package/dist/modules/organizations/index.js +1 -1
  49. package/dist/modules/planmagnet/index.js +1 -1
  50. package/dist/modules/products/index.js +1 -1
  51. package/dist/modules/proserviceworld/index.js +1 -1
  52. package/dist/modules/rbac/index.js +1 -1
  53. package/dist/modules/sandbox/index.js +1 -1
  54. package/dist/modules/scheduler/index.js +1 -1
  55. package/dist/modules/security/index.js +1 -1
  56. package/dist/modules/semanticfed/index.js +1 -1
  57. package/dist/modules/store/index.js +1 -1
  58. package/dist/modules/subscriberbot/index.js +1 -1
  59. package/dist/modules/support/index.js +1 -1
  60. package/dist/modules/tags/index.js +1 -1
  61. package/dist/modules/technospam/index.js +1 -1
  62. package/dist/modules/theculturepost/index.js +1 -1
  63. package/dist/modules/theglobalfuel/index.js +1 -1
  64. package/dist/modules/timecampus/index.js +1 -1
  65. package/dist/modules/tours/index.js +1 -1
  66. package/dist/modules/vibecontrols/index.cjs.map +1 -1
  67. package/dist/modules/vibecontrols/index.js +2 -2
  68. package/dist/modules/workspaces/index.js +1 -1
  69. package/package.json +1 -1
  70. package/dist/chunk-J74ZKEXL.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -752,6 +752,10 @@ function canonicalJson(value, seen = /* @__PURE__ */ new Set()) {
752
752
  function toolArgsSha256(args) {
753
753
  return crypto.createHash("sha256").update(canonicalJson(args), "utf8").digest("hex");
754
754
  }
755
+ var refusedResults = /* @__PURE__ */ new WeakSet();
756
+ function isRefusedResult(result) {
757
+ return typeof result === "object" && result !== null && refusedResults.has(result);
758
+ }
755
759
  function isErrorResult(result) {
756
760
  return typeof result === "object" && result !== null && result.isError === true;
757
761
  }
@@ -773,7 +777,7 @@ function wrapAuditedHandler(name, handler, onToolCall) {
773
777
  };
774
778
  try {
775
779
  const result = await handler(...callbackArgs);
776
- report(isErrorResult(result) ? "error" : "ok");
780
+ report(isRefusedResult(result) ? "refused" : isErrorResult(result) ? "error" : "ok");
777
781
  return result;
778
782
  } catch (error) {
779
783
  report("error", error instanceof Error ? error.message : String(error));
@@ -788,7 +792,7 @@ function resolveAnnotations(name, declared) {
788
792
  return { ...declared, destructiveHint, readOnlyHint };
789
793
  }
790
794
  function unconfirmedDestructiveResult(name) {
791
- return {
795
+ const result = {
792
796
  content: [
793
797
  {
794
798
  type: "text",
@@ -797,6 +801,8 @@ function unconfirmedDestructiveResult(name) {
797
801
  ],
798
802
  isError: true
799
803
  };
804
+ refusedResults.add(result);
805
+ return result;
800
806
  }
801
807
  function wrapDestructiveHandler(name, handler) {
802
808
  return async (...callbackArgs) => {
@@ -817,9 +823,9 @@ function wrapServerWithToolGovernance(server, options = {}) {
817
823
  const originalRegisterTool = target.registerTool.bind(target);
818
824
  const register = (name, config, handler) => {
819
825
  const annotations = resolveAnnotations(name, config.annotations);
820
- const audited = options.onToolCall ? wrapAuditedHandler(name, handler, options.onToolCall) : handler;
826
+ const audit = (inner) => options.onToolCall ? wrapAuditedHandler(name, inner, options.onToolCall) : inner;
821
827
  if (!enforceConfirmation || !annotations.destructiveHint) {
822
- return originalRegisterTool(name, { ...config, annotations }, audited);
828
+ return originalRegisterTool(name, { ...config, annotations }, audit(handler));
823
829
  }
824
830
  const gatedInputSchema = {
825
831
  ...config.inputSchema ?? {},
@@ -828,7 +834,7 @@ function wrapServerWithToolGovernance(server, options = {}) {
828
834
  return originalRegisterTool(
829
835
  name,
830
836
  { ...config, inputSchema: gatedInputSchema, annotations },
831
- wrapDestructiveHandler(name, audited)
837
+ audit(wrapDestructiveHandler(name, handler))
832
838
  );
833
839
  };
834
840
  target.registerTool = (name, config, handler) => {