@capxul/mcp 4.20.0-beta.35 → 4.20.0-beta.36
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/main.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { i as __exportAll, o as __require, r as __commonJSMin, s as __toESM } from "./lib-DnmstTkB.mjs";
|
|
3
|
-
import { $ as isSignerNotReadySignal, $t as ChainIdSchema, A as bindProductTelemetryInvocation, An as detectAuthCacheAdapter, At as toRlp, B as BASE_SEPOLIA_CHAIN_ID, Bn as redactUrlSecrets, Bt as hexToBytes, C as PonderIndexerAdapter, Cn as copyInvocationObservation, Ct as toOrgId, D as TelemetryPortTag, Dn as toPublishableKey, Dt as isBytes32, E as AccountReadPortTag, En as toAllowedOrigin, Et as images, F as makeCheckoutMethods, Fn as AuthCachePortTag, Ft as concat, G as failureEvidenceProps, Gn as CapxulError, Gt as hexToBigInt, H as asCapxulError, Hn as isRecord, Ht as numberToHex, I as makeTargetsMethods, In as deserializeCapxulError, It as concatHex, J as withCapturedAttemptContext, Jn as isFailureMode, Jt as BaseError, K as observeFailedResult, Kn as isCapxulError, Kt as hexToNumber, L as makeVerificationMethods, Ln as serializeCapxulError, Lt as isAddress, M as makeAccountMethods, Mn as toEpochMs, Mt as formatGwei$1, N as makePaymentsMethods, Nn as toAuthUserId, Nt as createCursor, O as ConvexCallPortTag, On as AuthClientError, Ot as hashTypedData, P as makeDestinationsMethods, Pn as toEmail, Pt as slice, Q as isEcdsaSignatureHex, Qt as EpochMsSchema, Rn as decodeChainCause, Rt as InvalidAddressError, S as makeHoldingsMethods, Sn as attachInvocationObservation, St as ORGANIZATION_SETUP_STATUSES, T as ConvexAccountLayer, Tn as sanitizeObservationContext, Tt as AppIdSchema, U as toPublicError, Un as readField, Ut as stringToHex, V as callOperation, Vn as isCredentialField, Vt as bytesToHex, W as failureDetail, Wn as Errors, Wt as toHex, X as UNOBSERVABLE_SIGNER_STATUS, Xt as isHex, Y as version$2, Yt as size, Z as causeChain, Zt as DurationMsSchema, _ as makeActivityMethods, _n as SystemClockLayer, _t as OPERATIONS, an as askIdentity, at as toCountryCode, b as ConvexSmartAccountLayer, bn as BetterAuthBrowserLayer, bt as setups, c as OrgPortTag, cn as runPortEffect, ct as toHandle, dn as toCapxulResult, dt as CLI_CAPABILITIES, en as isEvmAddress, et as openfortSignerNotReadyCode, fn as formatTraceparent, ft as CLI_COMMAND_NAMES, g as makeMeMethods, gn as oauthBearerAuthClient, gt as normalizeCapxulOperation, h as bootIdentityFlow, hn as carryInvocationParentSpan, ht as isCapxulOperation, in as makeAuthMethods, it as makeClientRequestMethods, j as makeApprovalsMethods, jn as globalLocalStorage, jt as publicKeyToAddress, k as convexCallErrorFromCapxul, kn as AuthClientPortTag, kt as sha256, ln as sessionFromActor, lt as validateHandle, m as executeIdentityProductObservation, mn as ActorFailure, mt as CAPXUL_OPERATIONS, n as makeOrgMethods, nn as absurd, nt as signerFailure, on as publicIdentityFailure, ot as toKycTier, pn as CAPXUL_ERROR_CODES, pt as CLI_INVOCATION_KINDS, q as observeSdkClient, qn as FAILURE_MODES, qt as trim$1, r as makeBankingMethods, rn as getFunctionName, rt as makeCurrentUserMethods, s as ConvexOrganizationAdapter, sn as runIdentityFacade, st as toTesterKind, t as ConvexOrganizationSetupAdapter, tn as toAddress, tt as recoverRawDigestSigner, un as runCapxulEffect, ut as redactTelemetryProps, v as makePaymentDocumentsMethods, vn as ClockPortTag, vt as details, w as makeAccountsMethods, wn as readInvocationObservation, wt as diagnostics, x as SmartAccountPortTag, xn as observationRequestHeaders, xt as ORGANIZATION_SETUP_REASONS, y as makeSmartAccountMethods, yn as BetterAuthNodeLayer, yt as onboardings, z as normalizeSafeSaltEmail, zn as redactSecrets, zt as keccak256 } from "./organizations-
|
|
3
|
+
import { $ as isSignerNotReadySignal, $t as ChainIdSchema, A as bindProductTelemetryInvocation, An as detectAuthCacheAdapter, At as toRlp, B as BASE_SEPOLIA_CHAIN_ID, Bn as redactUrlSecrets, Bt as hexToBytes, C as PonderIndexerAdapter, Cn as copyInvocationObservation, Ct as toOrgId, D as TelemetryPortTag, Dn as toPublishableKey, Dt as isBytes32, E as AccountReadPortTag, En as toAllowedOrigin, Et as images, F as makeCheckoutMethods, Fn as AuthCachePortTag, Ft as concat, G as failureEvidenceProps, Gn as CapxulError, Gt as hexToBigInt, H as asCapxulError, Hn as isRecord, Ht as numberToHex, I as makeTargetsMethods, In as deserializeCapxulError, It as concatHex, J as withCapturedAttemptContext, Jn as isFailureMode, Jt as BaseError, K as observeFailedResult, Kn as isCapxulError, Kt as hexToNumber, L as makeVerificationMethods, Ln as serializeCapxulError, Lt as isAddress, M as makeAccountMethods, Mn as toEpochMs, Mt as formatGwei$1, N as makePaymentsMethods, Nn as toAuthUserId, Nt as createCursor, O as ConvexCallPortTag, On as AuthClientError, Ot as hashTypedData, P as makeDestinationsMethods, Pn as toEmail, Pt as slice, Q as isEcdsaSignatureHex, Qt as EpochMsSchema, Rn as decodeChainCause, Rt as InvalidAddressError, S as makeHoldingsMethods, Sn as attachInvocationObservation, St as ORGANIZATION_SETUP_STATUSES, T as ConvexAccountLayer, Tn as sanitizeObservationContext, Tt as AppIdSchema, U as toPublicError, Un as readField, Ut as stringToHex, V as callOperation, Vn as isCredentialField, Vt as bytesToHex, W as failureDetail, Wn as Errors, Wt as toHex, X as UNOBSERVABLE_SIGNER_STATUS, Xt as isHex, Y as version$2, Yt as size, Z as causeChain, Zt as DurationMsSchema, _ as makeActivityMethods, _n as SystemClockLayer, _t as OPERATIONS, an as askIdentity, at as toCountryCode, b as ConvexSmartAccountLayer, bn as BetterAuthBrowserLayer, bt as setups, c as OrgPortTag, cn as runPortEffect, ct as toHandle, dn as toCapxulResult, dt as CLI_CAPABILITIES, en as isEvmAddress, et as openfortSignerNotReadyCode, fn as formatTraceparent, ft as CLI_COMMAND_NAMES, g as makeMeMethods, gn as oauthBearerAuthClient, gt as normalizeCapxulOperation, h as bootIdentityFlow, hn as carryInvocationParentSpan, ht as isCapxulOperation, in as makeAuthMethods, it as makeClientRequestMethods, j as makeApprovalsMethods, jn as globalLocalStorage, jt as publicKeyToAddress, k as convexCallErrorFromCapxul, kn as AuthClientPortTag, kt as sha256, ln as sessionFromActor, lt as validateHandle, m as executeIdentityProductObservation, mn as ActorFailure, mt as CAPXUL_OPERATIONS, n as makeOrgMethods, nn as absurd, nt as signerFailure, on as publicIdentityFailure, ot as toKycTier, pn as CAPXUL_ERROR_CODES, pt as CLI_INVOCATION_KINDS, q as observeSdkClient, qn as FAILURE_MODES, qt as trim$1, r as makeBankingMethods, rn as getFunctionName, rt as makeCurrentUserMethods, s as ConvexOrganizationAdapter, sn as runIdentityFacade, st as toTesterKind, t as ConvexOrganizationSetupAdapter, tn as toAddress, tt as recoverRawDigestSigner, un as runCapxulEffect, ut as redactTelemetryProps, v as makePaymentDocumentsMethods, vn as ClockPortTag, vt as details, w as makeAccountsMethods, wn as readInvocationObservation, wt as diagnostics, x as SmartAccountPortTag, xn as observationRequestHeaders, xt as ORGANIZATION_SETUP_REASONS, y as makeSmartAccountMethods, yn as BetterAuthNodeLayer, yt as onboardings, z as normalizeSafeSaltEmail, zn as redactSecrets, zt as keccak256 } from "./organizations-BOE0gw6K.mjs";
|
|
4
4
|
import { t as secp256k1 } from "./secp256k1-vkvPWdOZ.mjs";
|
|
5
5
|
import { t as require_lib } from "./lib-CoGPQsbr.mjs";
|
|
6
6
|
import { serveStdio } from "@modelcontextprotocol/server/stdio";
|
|
@@ -33114,7 +33114,7 @@ function stdioIdentity(env = process.env, options = {}) {
|
|
|
33114
33114
|
}
|
|
33115
33115
|
//#endregion
|
|
33116
33116
|
//#region package.json
|
|
33117
|
-
var version = "4.20.0-beta.
|
|
33117
|
+
var version = "4.20.0-beta.36";
|
|
33118
33118
|
//#endregion
|
|
33119
33119
|
//#region src/deps.ts
|
|
33120
33120
|
const NO_IDENTITY = async () => void 0;
|
|
@@ -139,6 +139,17 @@ const Errors = {
|
|
|
139
139
|
...opts?.chain === void 0 ? {} : { chain: opts.chain }
|
|
140
140
|
});
|
|
141
141
|
},
|
|
142
|
+
/**
|
|
143
|
+
* The provider answered, but its answer cannot be used: `field` names the
|
|
144
|
+
* part that is missing or malformed and `reason` says what is wrong with it.
|
|
145
|
+
* Distinct from `PROVIDER_ERROR`, where the call itself failed or was refused.
|
|
146
|
+
*/
|
|
147
|
+
providerResponseInvalid: (provider, operation, field, reason) => new CapxulError("PROVIDER_RESPONSE_INVALID", `${provider} ${operation} answered with an unusable ${field}: ${reason}`, { details: {
|
|
148
|
+
provider,
|
|
149
|
+
operation,
|
|
150
|
+
field,
|
|
151
|
+
reason
|
|
152
|
+
} }),
|
|
142
153
|
capabilityUnavailable: (provider, operation) => new CapxulError("CAPABILITY_UNAVAILABLE", "Provider capability is unavailable", { details: {
|
|
143
154
|
provider,
|
|
144
155
|
operation
|
|
@@ -2158,6 +2169,7 @@ const CAPXUL_ERROR_CODES = [
|
|
|
2158
2169
|
"ACCOUNT_NOT_FOUND",
|
|
2159
2170
|
"ACCOUNT_CLAIMED_BY_OTHER_SIGNER",
|
|
2160
2171
|
"PROVIDER_ERROR",
|
|
2172
|
+
"PROVIDER_RESPONSE_INVALID",
|
|
2161
2173
|
"CAPABILITY_UNAVAILABLE",
|
|
2162
2174
|
"INVALID_INPUT",
|
|
2163
2175
|
"ENV_MISSING",
|
|
@@ -9182,6 +9194,8 @@ const errors = [
|
|
|
9182
9194
|
...DEFECTS
|
|
9183
9195
|
];
|
|
9184
9196
|
const writeErrors = [...errors, "WRONG_STATE"];
|
|
9197
|
+
/** Bank-details writes also read Bridge's answer back, which can be unusable. */
|
|
9198
|
+
const bridgeWriteErrors = [...writeErrors, "PROVIDER_RESPONSE_INVALID"];
|
|
9185
9199
|
const bankDetails = {
|
|
9186
9200
|
list: Operation.query("banking.bankDetails.list", {
|
|
9187
9201
|
input: Schema.Struct({ actor: actor$3 }),
|
|
@@ -9196,7 +9210,7 @@ const bankDetails = {
|
|
|
9196
9210
|
open: Operation.action("banking.bankDetails.open", {
|
|
9197
9211
|
input: Schema.Struct(target),
|
|
9198
9212
|
output: BankDetailsSchema,
|
|
9199
|
-
errors:
|
|
9213
|
+
errors: bridgeWriteErrors
|
|
9200
9214
|
}),
|
|
9201
9215
|
settle: Operation.action("banking.bankDetails.settle", {
|
|
9202
9216
|
input: Schema.Struct({
|
|
@@ -9204,17 +9218,17 @@ const bankDetails = {
|
|
|
9204
9218
|
token: SettlementTokenSchema
|
|
9205
9219
|
}),
|
|
9206
9220
|
output: BankDetailsSchema,
|
|
9207
|
-
errors:
|
|
9221
|
+
errors: bridgeWriteErrors
|
|
9208
9222
|
}),
|
|
9209
9223
|
deactivate: Operation.action("banking.bankDetails.deactivate", {
|
|
9210
9224
|
input: Schema.Struct(target),
|
|
9211
9225
|
output: BankDetailsSchema,
|
|
9212
|
-
errors:
|
|
9226
|
+
errors: bridgeWriteErrors
|
|
9213
9227
|
}),
|
|
9214
9228
|
reactivate: Operation.action("banking.bankDetails.reactivate", {
|
|
9215
9229
|
input: Schema.Struct(target),
|
|
9216
9230
|
output: BankDetailsSchema,
|
|
9217
|
-
errors:
|
|
9231
|
+
errors: bridgeWriteErrors
|
|
9218
9232
|
})
|
|
9219
9233
|
};
|
|
9220
9234
|
const deposits = {
|
|
@@ -16898,7 +16912,7 @@ function mapAccountLifecycle(input) {
|
|
|
16898
16912
|
}
|
|
16899
16913
|
//#endregion
|
|
16900
16914
|
//#region ../../packages/sdk/package.json
|
|
16901
|
-
var version$1 = "4.20.0-beta.
|
|
16915
|
+
var version$1 = "4.20.0-beta.36";
|
|
16902
16916
|
//#endregion
|
|
16903
16917
|
//#region ../../packages/sdk/src/observability/telemetry/exception-projection.ts
|
|
16904
16918
|
/** Fixed fallback for failures that have no safe message. */
|
|
@@ -25049,7 +25063,7 @@ function makeApprovalsMethods(deps) {
|
|
|
25049
25063
|
const signal = options?.signal;
|
|
25050
25064
|
if (isCommandApproval(input)) return openApproval(signal, (signerAddress) => prepareVerifiedCommand(deps, input, signerAddress, signal));
|
|
25051
25065
|
if (isPermissionChange(input)) return openApproval(signal, async (signerAddress) => {
|
|
25052
|
-
const { prepareVerifiedPermissionChange } = await import("./permission-approvals-
|
|
25066
|
+
const { prepareVerifiedPermissionChange } = await import("./permission-approvals-DcF1OYMa.mjs");
|
|
25053
25067
|
return prepareVerifiedPermissionChange(deps, input, signerAddress, signal);
|
|
25054
25068
|
});
|
|
25055
25069
|
if ("organizationId" in input) return checkedBankApproval(deps, input, await openApproval(signal, (signerAddress) => prepareVerifiedOrganizationPayment(deps, input, signerAddress, signal)));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gn as CapxulError, H as asCapxulError, R as abandonPrepared, Wn as Errors, a as prepareConfiguration, d as verifiedPreparation, f as buildCommand, i as authorInvitation, l as preparePermission, mt as CAPXUL_OPERATIONS, nn as absurd, o as verifiedConfiguration, p as validateReplacementInput, u as preparedIdentity } from "./organizations-
|
|
1
|
+
import { Gn as CapxulError, H as asCapxulError, R as abandonPrepared, Wn as Errors, a as prepareConfiguration, d as verifiedPreparation, f as buildCommand, i as authorInvitation, l as preparePermission, mt as CAPXUL_OPERATIONS, nn as absurd, o as verifiedConfiguration, p as validateReplacementInput, u as preparedIdentity } from "./organizations-BOE0gw6K.mjs";
|
|
2
2
|
//#region ../../packages/sdk/src/accounts/permission-approvals.ts
|
|
3
3
|
/** Prepare a Permission write or an invitation's configuration for `signerAddress`, checked. */
|
|
4
4
|
function prepareVerifiedPermissionChange(deps, input, signerAddress, signal) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capxul/mcp",
|
|
3
|
-
"version": "4.20.0-beta.
|
|
3
|
+
"version": "4.20.0-beta.36",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Capxul MCP server for auth, Account readiness, identity, Organizations, relationships, requests, destinations, and testnet funding over Streamable HTTP.",
|
|
6
6
|
"keywords": [
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
55
55
|
"vite": "npm:@voidzero-dev/vite-plus-core@1.0.0",
|
|
56
56
|
"vite-plus": "1.0.0",
|
|
57
|
-
"@capxul/protocol": "0.2.0-beta.
|
|
58
|
-
"@capxul/sdk": "4.20.0-beta.
|
|
57
|
+
"@capxul/protocol": "0.2.0-beta.7",
|
|
58
|
+
"@capxul/sdk": "4.20.0-beta.36",
|
|
59
59
|
"@capxul/typescript-config": "0.0.0"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|