Repository navigation
mppx@0.21.2
Patch Changes
-
60f265c: Fixed
mppx/validationso it no longer imports the CLI, which pulled in the CLI's bundledincurdependency and failed to load from npm.validate()andvalidateStream()now take an optionalpaymentvalidator; without one, payment checks are reported as skipped.mppx validatepasses its own.Moved shared modules so lower layers no longer import higher ones: the HTML payment-page infrastructure and x402 wire helpers now live under
src/internal, and the MCP SDK server transport lives undersrc/server. Public entry points are unchanged. -
6056a5b: Added
mppx/client/core,mppx/tempo/clientandmppx/tempo/serverentrypoints, so apps can load the client primitives or only the Tempo method without the other payment methods.mppx/clientandmppx/serverexport the same API as before. -
db173d9: Fixed Tempo session voucher, close authorization and subscription key authorization verification to reject secp256k1 signatures with a high
svalue, which Tempo does not accept onchain. Voucher and close authorization signing now normalize a signer's high-ssignature to its low-sequivalent. -
98d110b: Added TIP-1166 configurable account voucher signers to
tempo/session. Servers accept configurable account (0x05) vouchers and close authorizations whenconfigurableVouchersis set (defaultfalse), advertise it in the challenge, and check each voucher against the signer config commitment recorded at open (OpeningCommitmentRecorded). Configurable account clients open channels with their config commitment as the salt, sign vouchers with configurable account signatures, refuse to open against servers that do not advertiseconfigurableVouchers(ConfigurableVouchersUnsupportedError), and surface top-ups that revert because the signer config changed asSignerConfigChangedError.Voucher.verifyVoucherandVoucher.verifyCloseAuthorizationtake optional{ configurable, openingCommitment }options; without them they accept only primitive signatures, as before. -
bd9dac5: Fixed
validateStreamto pass its synthesizedPayment: failedcheck toonPaymentResults, and fixedvalidate()to promise automatic Tempo wallet provisioning only when a payment validator is configured.