-
Notifications
You must be signed in to change notification settings - Fork 27
Update mcpay (ts-sdk) to support the latest x402 updates. CLI is also updated
#11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Removed deprecated transport and handler files, streamlining the SDK. - Updated client and handler exports to support new X402 payment capabilities. - Introduced new server plugins for enhanced payment processing and tool management. - Updated package.json to reflect new dependencies and versioning for x402. - Improved CLI versioning to dynamically pull from package.json for consistency.
- Bump version from 0.0.26 to 0.1.1 in package.json. - Refactor CLI commands to replace 'server' with 'connect' for improved clarity. - Introduce new options for EVM and SVM private keys, along with max atomic payment configuration. - Update server handling to support X402 client configuration, enhancing payment processing capabilities. - Streamline server connection logic to utilize HTTP stream transport.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Added support for specifying EVM and SVM networks via command line options. - Implemented validation for selected networks against supported lists. - Updated CLI output to reflect the chosen networks for improved user feedback.
- Added validation to ensure API key usage is restricted to proxy mode with MCPay URLs. - Updated transport options to handle API key authentication correctly. - Adjusted server connection logic to accommodate proxy mode and direct mode configurations.
- Updated CLI to validate EVM and SVM networks only when corresponding wallet types are provided. - Introduced a new function to validate the structure of the wallet object in the server code, ensuring it contains the required properties for EVM and SVM. - Added error handling for invalid wallet structures, improving robustness and user feedback.
- Updated README to include support for both EVM and SVM networks in payment processing. - Changed CLI commands from 'server' to 'connect' for clarity and added options for EVM and SVM private keys. - Improved error handling for invalid private keys and secret keys in the CLI. - Added new environment variables for EVM and SVM configurations, enhancing user guidance and setup.
- Modified README to reflect changes in API endpoints and CLI commands, including the transition from 'server' to 'connect'. - Updated payment handling examples to support EVM and SVM wallet configurations. - Improved documentation for the MCP client initialization and transport creation. - Adjusted js-sdk to streamline handler configuration and facilitate payment processing with new facilitator URL structure.
- Updated API key validation to allow usage with any proxy endpoint, not just MCPay URLs. - Enhanced server connection logic to apply API key authentication only to relevant proxy URLs. - Improved error messages for clarity regarding API key usage and direct payment options.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.