The showcase task. Ask your agent:“Move my delivery to Saturday and add a side of gyoza.”
Endpoints
- Discovery
https://food.papsandbox.com/.well-known/poppy.json- Issuer
https://food.papsandbox.com- Finding the issuer
https://food.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://food.papsandbox.com/.well-known/oauth-authorization-server- Token
POST https://food.papsandbox.com/oauth/token- Sign-in
https://food.papsandbox.com/oauth/authorize
Direct Sign-In: authorization code with PKCE (S256),issin the redirect. Scopes: orders:read orders:write.- Device sign-in
POST https://food.papsandbox.com/oauth/device
Device Sign-In (4.3): show the Userhttps://food.papsandbox.com/deviceand the code, then poll the token endpoint. Scopes: orders:read orders:write.- Mediated sign-in
POST https://food.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.- Sign-out
POST https://food.papsandbox.com/oauth/revoke- 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://food.papsandbox.com/poppy/browser-session
Section 6: load it in your browser, send the form'scodetoPOST https://food.papsandbox.com/poppy/browser-session/authorizewith your Session header (and access token, signed in), then submit the form.- Excluded tasks
https://food.papsandbox.com/poppy/excluded-tasks.json
Tasks this store doesn't offer to agents, with another way to do them (9.1).- Skills
https://food.papsandbox.com/.well-known/agent-skills/index.json
How to do this store's tasks (9.4), also in poppy.json asskill_index. They grant no access and no approval.browse-menu-and-slots,change-food-delivery- API
https://food.papsandbox.com/poppy/openapi.json
OpenAPI 3.1. The Session header on every call; account calls also an access token, Bearer (this store doesn't bind tokens with DPoP).- MCP server
https://food.papsandbox.com/poppy/mcp
The same tools over Streamable HTTP, with the Session header on every message and, signed in, an access token issued for this url: ask the token endpoint withresourceset to it (4.5, 7). Protected resource metadata:https://food.papsandbox.com/.well-known/oauth-protected-resource/poppy/mcp.- Company Agent
https://food.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://food.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
operationsv2: a change answersapproval_requiredwith the operation; send the same request again with the User's approval inPoppy-Approval(API),_meta(MCP) orextensions.operations(conversations).mediated-sign-inv1.
Tools
| Tool | Needs | What it does |
|---|---|---|
menuGET /poppy/products |
Signed out is fine | Search the catalogue by name, category or tag. Prices in cents. |
delivery_slotsGET /poppy/delivery-slots |
Signed out is fine | The delivery slots 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": "0.3",
"organization": {
"name": "Kettle Street Noodles",
"domain": "food.papsandbox.com",
"logo_uri": "https://food.papsandbox.com/poppy/logo.svg"
},
"auth": {
"issuer": "https://food.papsandbox.com",
"scopes": {
"orders:read": "See your scheduled deliveries: what you ordered, the delivery slot and the price. Read only.",
"orders:write": "Change a scheduled delivery: move its slot, or add, swap or remove dishes. A change can add dishes and charge the difference, which can't be undone. You still approve each change. Doesn't include reading your orders."
},
"scope_hints": {
"orders:read": {
"changes": "none",
"personal_data": true
},
"orders:write": {
"changes": "irreversible",
"personal_data": true
}
}
},
"agent": {
"protocols": [
{
"type": "poppy",
"endpoint": "https://food.papsandbox.com/poppy/conversations"
}
]
},
"apis": [
{
"type": "openapi",
"url": "https://food.papsandbox.com/poppy/openapi.json",
"description": "Menu, delivery slots, the customer's orders, and changes to a scheduled delivery"
},
{
"type": "mcp",
"url": "https://food.papsandbox.com/poppy/mcp",
"description": "Menu, delivery slots, the customer's orders, and changes to a scheduled delivery, as MCP tools"
}
],
"web": {
"browser_session_endpoint": "https://food.papsandbox.com/poppy/browser-session"
},
"feedback": {
"endpoint": "https://food.papsandbox.com/poppy/feedback"
},
"excluded_tasks": {
"url": "https://food.papsandbox.com/poppy/excluded-tasks.json"
},
"extensions": {
"operations": {
"version": "2"
},
"mediated-sign-in": {
"version": "1",
"fields": [
{
"name": "email",
"label": "Email",
"secret": false
},
{
"name": "password",
"label": "Password",
"secret": true
}
],
"scopes": [
"orders:read",
"orders:write"
]
}
},
"skill_index": {
"$schema": "https://schemas.agentskills.io/discovery/0.2.0/schema.json",
"skills": [
{
"name": "browse-menu-and-slots",
"description": "Read the Kettle Street Noodles menu, with prices and dish options, and see which delivery slots are open. No sign-in needed. Use when the User asks what the restaurant serves, what a dish costs, or when it can deliver.",
"type": "skill-md",
"url": "https://food.papsandbox.com/.well-known/agent-skills/browse-menu-and-slots/SKILL.md",
"digest": "sha256:a831e28b2cae69003b4b0e3eb3e5109407b0cfcba257fec1bc16bf117331c971"
},
{
"name": "change-food-delivery",
"description": "Change a scheduled food delivery at Kettle Street Noodles for the User. Move it to another slot, or add, swap or remove dishes. Also reads their orders. Use when the User asks to move, reschedule or change a noodle order.",
"type": "skill-md",
"url": "https://food.papsandbox.com/.well-known/agent-skills/change-food-delivery/SKILL.md",
"digest": "sha256:c72f191daecccb52c8ad3fb49b9eb7c26dd302b93e053cb99fbb9c4924087944"
}
]
}
}
Issuer metadata
Open{
"issuer": "https://food.papsandbox.com",
"token_endpoint": "https://food.papsandbox.com/oauth/token",
"revocation_endpoint": "https://food.papsandbox.com/oauth/revoke",
"authorization_endpoint": "https://food.papsandbox.com/oauth/authorize",
"device_authorization_endpoint": "https://food.papsandbox.com/oauth/device",
"protected_resources": [
"https://food.papsandbox.com",
"https://food.papsandbox.com/poppy/mcp"
],
"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"
],
"authorization_response_iss_parameter_supported": true,
"client_id_metadata_document_supported": true,
"scopes_supported": [
"orders:read",
"orders:write"
]
}