Let MCP agents buy and verify endpoint evidence - #183
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
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.
MCP agents could discover the paid endpoint-evidence offer but had no MCP tool to buy or verify it. Adds
guild_evidence_bundleand freeguild_evidence_verify, sharing HTTP's exact request binding, price, evidence format and completed-purchase recovery. Bumps the additive interface to 2.7.0 and regenerates the published contract.Issuance runs only after non-settling eligibility and before authorization charges. Completed x402 purchases recover saved bytes across MCP and HTTP without fresh probes or settlement. Signed artifacts bypass inbox decoration. MCP text now contains the actual JSON result or challenge instead of a nested content-block array. A zero issuance quota returns a pre-charge refusal instead of crashing.
Discovery and documentation describe the issuer's observation and limitations, retain the free preflight alternative, and remove unsupported claims of proven endpoint truth or guaranteed trust outcomes. This repairs an advertised purchase path; it does not establish customer demand.
Validation: full local JSON suite 2,101 passed, 10 skipped, including both storage backends for the new buyer cases and the independent Node receipt verifier. A fresh MCP client consumes the served quote, rejects expired authorization, completes a synthetic purchase and verifies its artifact. Coverage includes both payment carriers, restart and cross-transport recovery, altered credentials, quota/issuance refusal, post-settlement errors, signed payload integrity, free verification and generated-contract parity. Full protected CI remains required. No real-money purchase is part of these tests.