The showcase task. Ask your agent:“Change Friday’s bouquet to the peonies and add a card.”
Endpoints
- Discovery
https://flowers-ucp.papsandbox.com/.well-known/poppy.json- Issuer
https://flowers-ucp.papsandbox.com- Finding the issuer
https://flowers-ucp.papsandbox.com/.well-known/oauth-protected-resource
Protected resource metadata for the domain (3.2, RFC 9728): its one authorization server is the issuer.- Issuer metadata
https://flowers-ucp.papsandbox.com/.well-known/oauth-authorization-server- Token
POST https://flowers-ucp.papsandbox.com/oauth/token- Sign-in
https://flowers-ucp.papsandbox.com/oauth/authorize
Direct Sign-In: authorization code with PKCE (S256),issin the redirect. Scopes: orders:read orders:write poppy:browser-sign-in.- Device sign-in
POST https://flowers-ucp.papsandbox.com/oauth/device
Device Sign-In (4.3): show the Userhttps://flowers-ucp.papsandbox.com/deviceand the code, then poll the token endpoint. Scopes: orders:read orders:write poppy:browser-sign-in.- Mediated sign-in
POST https://flowers-ucp.papsandbox.com/oauth/token
The Mediated Sign-In extension's grant (https://personalagentprotocol.org/grant/mediated-sign-in) with the test logins below, as form parameters with your client assertion; a one-time code comes back ascode_required. Scopes: orders:read orders:write poppy:browser-sign-in.- Sign-out
POST https://flowers-ucp.papsandbox.com/oauth/revoke- Versions
Poppy-Version: 1.0, andhttps://flowers-ucp.papsandbox.com/poppy/0.4.jsonfor 0.4
SendPoppy-Versionwith the Session header on every call, and the extensions you use inPoppy-Extensions, such as"operations";v="3"(3.4). A missing or other version isversion_unsupported. This store also serves 0.4, 0.3, listed insupported_versions, with its own endpoints under/poppy/0.4/.- Tasks
GET https://flowers-ucp.papsandbox.com/poppy/tasks
Excluded tasks, the skill index and the feedback endpoint (9), with the Session header and no access token, early in each Session.- Session header
Poppy-Session
On every call to the API, the MCP server, conversations, feedback and the browser-session/authorize: a Session JWT you sign for that request with a delegated key, carrying its delegation (5.2). Signed in, also send your access token.- Browser session
GET https://flowers-ucp.papsandbox.com/poppy/browser-session
Section 6: load it in your browser, send the form'scodetoPOST https://flowers-ucp.papsandbox.com/poppy/browser-session/authorizewith your Session header (and access token, signed in), then submit the form.- Skills
https://flowers-ucp.papsandbox.com/.well-known/agent-skills/index.json
How to do this store's tasks (9.4), also in the tasks response asskill_index. They grant no access and no approval.change-flower-delivery,check-flower-order,find-flowers- API
https://flowers-ucp.papsandbox.com/poppy/openapi.json
OpenAPI 3.1. The Session header on every call; account calls also an access token, Bearer, or DPoP-bound when your token request carried a DPoP proof.- Company Agent
https://flowers-ucp.papsandbox.com/poppy/conversations
Conversations (section 8): messages, events withwaitor server-sent events, Direct Conversations, handoff to a person (you play staff at/staff), sign-in mid-conversation.- Feedback
POST https://flowers-ucp.papsandbox.com/poppy/feedback
Tell the store about a task it offers no way to do (9.3), with the Session header, signed in or out.- Extensions
operationsv3: a change answersapproval_requiredwith the operation; send the same request again with the approval, saying inapproverwhether the User (user) or you on their instruction (agent) approved it.mediated-sign-inv1.
Tools
| Tool | Needs | What it does |
|---|---|---|
searchGET /poppy/products |
Signed out is fine | Search the catalogue by name, category or tag. Prices in cents. |
delivery_datesGET /poppy/delivery-dates |
Signed out is fine | The delivery dates open for the next week or two. |
my_ordersGET /poppy/orders |
orders:read | The signed-in customer's open orders. |
change_orderPOST /poppy/orders/{order_id}/changes |
orders:write | Propose a change to an order: move the delivery, add, swap or remove items. Returns HTTP 403 approval_required with the operation (operations extension v2); send the same request again with the User's approval in Poppy-Approval to make the change. |
poppy.json
Open{
"protocol_version": "1.0",
"supported_versions": {
"0.4": "https://flowers-ucp.papsandbox.com/poppy/0.4.json",
"0.3": "https://flowers-ucp.papsandbox.com/poppy/0.3.json"
},
"organization": {
"name": "Northlight Flowers (UCP extension test)",
"domain": "flowers-ucp.papsandbox.com",
"logo_uri": "https://flowers-ucp.papsandbox.com/poppy/logo.svg"
},
"auth": {
"issuer": "https://flowers-ucp.papsandbox.com",
"scopes": {
"orders:read": "See your orders and their deliveries: what you ordered, the delivery date and the card message. Read only.",
"orders:write": "Change an order: move its delivery date, or add, swap or remove items and the card. A change can add items and charge the difference, which can't be undone. You still approve each change. Doesn't include reading your orders.",
"poppy:browser-sign-in": "Use the website signed in, with the other access you approve"
},
"scope_hints": {
"orders:read": {
"changes": "none",
"personal_data": true
},
"orders:write": {
"changes": "irreversible",
"personal_data": true
}
}
},
"agent": {
"protocols": [
{
"type": "poppy",
"endpoint": "https://flowers-ucp.papsandbox.com/poppy/conversations",
"description": "Questions about bouquets, delivery dates and your orders, and changes to a booked delivery"
},
{
"type": "ucp",
"endpoint": "https://flowers-ucp.papsandbox.com/.well-known/ucp",
"description": "Questions about our products, policies and carts, over UCP Ask"
}
]
},
"apis": [
{
"type": "openapi",
"url": "https://flowers-ucp.papsandbox.com/poppy/openapi.json",
"description": "Product search, delivery dates, the customer's orders, and changes to a delivery"
}
],
"web": {
"browser_session_endpoint": "https://flowers-ucp.papsandbox.com/poppy/browser-session"
},
"extensions": {
"operations": [
{
"version": "3"
}
],
"ucp": [
{
"version": "1"
}
],
"mediated-sign-in": [
{
"version": "1",
"fields": [
{
"name": "email",
"label": "Email",
"secret": false
},
{
"name": "password",
"label": "Password",
"secret": true
}
],
"scopes": [
"orders:read",
"orders:write",
"poppy:browser-sign-in"
]
}
]
},
"tasks": {
"endpoint": "https://flowers-ucp.papsandbox.com/poppy/tasks"
}
}
Issuer metadata
Open{
"issuer": "https://flowers-ucp.papsandbox.com",
"token_endpoint": "https://flowers-ucp.papsandbox.com/oauth/token",
"revocation_endpoint": "https://flowers-ucp.papsandbox.com/oauth/revoke",
"authorization_endpoint": "https://flowers-ucp.papsandbox.com/oauth/authorize",
"device_authorization_endpoint": "https://flowers-ucp.papsandbox.com/oauth/device",
"protected_resources": [
"https://flowers-ucp.papsandbox.com"
],
"response_types_supported": [
"code"
],
"grant_types_supported": [
"refresh_token",
"authorization_code",
"urn:ietf:params:oauth:grant-type:device_code",
"https://personalagentprotocol.org/grant/mediated-sign-in"
],
"code_challenge_methods_supported": [
"S256"
],
"token_endpoint_auth_methods_supported": [
"private_key_jwt"
],
"token_endpoint_auth_signing_alg_values_supported": [
"ES256",
"PS384"
],
"revocation_endpoint_auth_methods_supported": [
"private_key_jwt"
],
"dpop_signing_alg_values_supported": [
"ES256"
],
"authorization_response_iss_parameter_supported": true,
"client_id_metadata_document_supported": true,
"scopes_supported": [
"orders:read",
"orders:write",
"poppy:browser-sign-in"
]
}