Repository navigation
Pick x402 payment options on a supported network only - #474
Merged
Merged
Conversation
A server may offer the same price on several chains at once. Apify's x402 endpoints list Base and two Solana entries, and the accept selector took the first entry with the requested scheme regardless of its network, so a Solana entry listed first made "x402 sign" and the --x402 session auto-pay fail with "Unknown network" even though a Base entry was present. The selector now skips entries on networks mcpc cannot sign for, in the PAYMENT-REQUIRED header path and in the flat _meta.x402 tool-meta fallback alike. When no entry is on a supported network, the error lists what the server offered and the supported networks. Refs #465 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015xAB5XbFwVwx3u72PLZFzQ
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
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.
A server may offer the same price on several chains at once. Apify's x402 endpoints list Base and two Solana entries, and the accept selector took the first entry with the requested scheme regardless of its network, so a Solana entry listed first made
x402 signand--x402session auto-pay fail with "Unknown network" even though a Base entry was present. Found while reviewing #465.PAYMENT-REQUIREDheader path and in the flat_meta.x402tool-meta fallback alike.Refs #465
Generated by Claude Code