docs: UCP examples use protocol-rooted payment.mpp shape + 1.6.1 - #18
Merged
Conversation
… 1.6.1
Companion to agentscore/core PR #262 (publishes the new mpp.json schema):
- examples/signed_ucp_merchant.py: payment.tempo -> payment.mpp { chains: { tempo: ... } }
- agentscore_commerce/identity/ucp.py build_ucp_profile docstring: same rewrite
- Bump 1.6.0 -> 1.6.1 so installed package carries the updated docstring
SDK code is unchanged — handler namespace strings are vendor-supplied;
only the documentation references update.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Companion to core schema/spec update documenting `recipient` as an optional cross-check field on mpp.json chains.tempo + chains.solana. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…dler, stripe_spt_payment_handler) + 1.7.0
Vendors compose UCP payment_handlers blocks by spreading these helpers:
payment_handlers={
**mpp_payment_handler(networks=[...]),
**x402_payment_handler(networks=[...]),
**stripe_spt_payment_handler(profile_id="..."),
}
The helpers fill in id/version/spec/schema/config wrapper so vendors
only supply merchant-specific data. Single source of truth for
the handler version + spec/schema URLs in identity/ucp.py.
Bump to 1.7.0 (minor — new public API).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Surface the new helpers in CLAUDE.md so future agents discover them without grepping the source. Brief usage example + ownership note. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
x402_payment_handler + stripe_spt_payment_handler example was missing. README now demonstrates the full set of helpers vendors compose. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Note `get_gate_quota_info(request)` next to the denial helpers row (already exposed by every adapter, just wasn't named in README). - Name `compatible_clients_by_rails` explicitly in the challenge row. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Companion to the API repo (publishes the new
mpp.jsonschema):examples/signed_ucp_merchant.py:payment.tempo→payment.mpp { chains: { tempo: ... } }agentscore_commerce/identity/ucp.pybuild_ucp_profiledocstring: same rewriteSDK code is unchanged — handler namespace strings are vendor-supplied; only documentation references update.
Test plan
uv run ty check agentscore_commerce/cleanuv run ruff check .cleanuv run pytest902 passed, 95.14% coverage🤖 Generated with Claude Code