Skip to content

Commit efbb046

Browse files
vvillait88claude
andcommitted
docs: update UCP examples to protocol-rooted payment.mpp shape + bump 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>
1 parent be729ad commit efbb046

4 files changed

Lines changed: 16 additions & 12 deletions

File tree

agentscore_commerce/identity/ucp.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,13 +395,13 @@ async def ucp_profile():
395395
},
396396
signing_keys=[UCPSigningKey.from_jwk(public_jwk)],
397397
payment_handlers={
398-
"sh.agentscore.payment.tempo": [
398+
"sh.agentscore.payment.mpp": [
399399
UCPPaymentHandlerBinding(
400-
id="tempo",
400+
id="mpp",
401401
version="2026-04-08",
402-
spec="https://agentscore.sh/specification/payment-handlers/tempo",
403-
schema="https://agentscore.sh/schemas/payment-handlers/tempo.json",
404-
config={"recipient": TEMPO_ADDR},
402+
spec="https://agentscore.sh/specification/payment-handlers/mpp",
403+
schema="https://agentscore.sh/schemas/payment-handlers/mpp.json",
404+
config={"chains": {"tempo": {"rail": "tempo-mainnet", "chain_id": 4217}}},
405405
),
406406
],
407407
},

examples/signed_ucp_merchant.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,17 @@ async def well_known_ucp() -> JSONResponse:
122122
],
123123
},
124124
payment_handlers={
125-
"sh.agentscore.payment.tempo": [
125+
"sh.agentscore.payment.mpp": [
126126
UCPPaymentHandlerBinding(
127-
id="tempo",
127+
id="mpp",
128128
version="2026-04-08",
129-
spec="https://agentscore.sh/specification/payment-handlers/tempo",
130-
schema="https://agentscore.sh/schemas/payment-handlers/tempo.json",
131-
config={"recipient": "0xfeedface"},
129+
spec="https://agentscore.sh/specification/payment-handlers/mpp",
130+
schema="https://agentscore.sh/schemas/payment-handlers/mpp.json",
131+
config={
132+
"chains": {
133+
"tempo": {"rail": "tempo-mainnet", "chain_id": 4217},
134+
},
135+
},
132136
),
133137
],
134138
},

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "agentscore-commerce"
7-
version = "1.6.0"
7+
version = "1.6.1"
88
description = "Agent commerce SDK for Python — identity middleware (FastAPI, Flask, Django, AIOHTTP, Sanic, ASGI) + payment helpers + 402 builders + discovery + Stripe multichain. The full merchant-side toolkit for AgentScore-powered agent commerce."
99
readme = "README.md"
1010
license = "MIT"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)