@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.
- package/dist/{chunk-J74ZKEXL.js → chunk-76RGHRRS.js} +13 -7
- package/dist/chunk-76RGHRRS.js.map +1 -0
- package/dist/{chunk-GTKSADBI.js → chunk-FVLIANOQ.js} +3 -3
- package/dist/{chunk-GTKSADBI.js.map → chunk-FVLIANOQ.js.map} +1 -1
- package/dist/core/index.cjs +11 -5
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +11 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/adaptercloud/index.js +1 -1
- package/dist/modules/artistrybase/index.js +1 -1
- package/dist/modules/assethandler/index.js +1 -1
- package/dist/modules/atheletebridge/index.js +1 -1
- package/dist/modules/auth/index.js +3 -3
- package/dist/modules/billing/index.js +1 -1
- package/dist/modules/brainyrich/index.js +1 -1
- package/dist/modules/buildmyiq/index.js +1 -1
- package/dist/modules/channels/index.js +1 -1
- package/dist/modules/collabkin/index.js +1 -1
- package/dist/modules/comradecircle/index.js +1 -1
- package/dist/modules/conversations/index.js +1 -1
- package/dist/modules/coolandlovely/index.js +1 -1
- package/dist/modules/cosmicintersection/index.js +1 -1
- package/dist/modules/crewfoundry/index.js +1 -1
- package/dist/modules/devportal/index.js +1 -1
- package/dist/modules/ecoimpacthub/index.js +1 -1
- package/dist/modules/eventfullymanaged/index.js +1 -1
- package/dist/modules/export/index.js +1 -1
- package/dist/modules/files/index.js +1 -1
- package/dist/modules/fluidgrids/index.js +1 -1
- package/dist/modules/ggnomad/index.js +1 -1
- package/dist/modules/govcitizenhub/index.js +1 -1
- package/dist/modules/groups/index.js +1 -1
- package/dist/modules/headshotmarketing/index.js +1 -1
- package/dist/modules/health/index.js +1 -1
- package/dist/modules/healthybowl/index.js +1 -1
- package/dist/modules/hookmovies/index.js +1 -1
- package/dist/modules/housingvista/index.js +1 -1
- package/dist/modules/integrations/index.js +1 -1
- package/dist/modules/intelwatchtower/index.js +1 -1
- package/dist/modules/kadaikodi/index.js +1 -1
- package/dist/modules/labsofscience/index.js +1 -1
- package/dist/modules/manufacturedops/index.js +1 -1
- package/dist/modules/movethewheels/index.js +1 -1
- package/dist/modules/mybodyshield/index.js +1 -1
- package/dist/modules/notifications/index.js +1 -1
- package/dist/modules/organizations/index.js +1 -1
- package/dist/modules/planmagnet/index.js +1 -1
- package/dist/modules/products/index.js +1 -1
- package/dist/modules/proserviceworld/index.js +1 -1
- package/dist/modules/rbac/index.js +1 -1
- package/dist/modules/sandbox/index.js +1 -1
- package/dist/modules/scheduler/index.js +1 -1
- package/dist/modules/security/index.js +1 -1
- package/dist/modules/semanticfed/index.js +1 -1
- package/dist/modules/store/index.js +1 -1
- package/dist/modules/subscriberbot/index.js +1 -1
- package/dist/modules/support/index.js +1 -1
- package/dist/modules/tags/index.js +1 -1
- package/dist/modules/technospam/index.js +1 -1
- package/dist/modules/theculturepost/index.js +1 -1
- package/dist/modules/theglobalfuel/index.js +1 -1
- package/dist/modules/timecampus/index.js +1 -1
- package/dist/modules/tours/index.js +1 -1
- package/dist/modules/vibecontrols/index.cjs.map +1 -1
- package/dist/modules/vibecontrols/index.js +2 -2
- package/dist/modules/workspaces/index.js +1 -1
- package/package.json +1 -1
- 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
|
-
|
|
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
|
|
826
|
+
const audit = (inner) => options.onToolCall ? wrapAuditedHandler(name, inner, options.onToolCall) : inner;
|
|
821
827
|
if (!enforceConfirmation || !annotations.destructiveHint) {
|
|
822
|
-
return originalRegisterTool(name, { ...config, annotations },
|
|
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,
|
|
837
|
+
audit(wrapDestructiveHandler(name, handler))
|
|
832
838
|
);
|
|
833
839
|
};
|
|
834
840
|
target.registerTool = (name, config, handler) => {
|