The showcase task. Ask your agent:“Move my stay to the weekend after and add breakfast.”
Endpoints
- Discovery
https://stays.papsandbox.com/.well-known/poppy.json- Issuer
https://stays.papsandbox.com- Finding the issuer
https://stays.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://stays.papsandbox.com/.well-known/oauth-authorization-server- Token
POST https://stays.papsandbox.com/oauth/token- Sign-in
https://stays.papsandbox.com/oauth/authorize
Direct Sign-In: authorization code with PKCE (S256),issin the redirect. Scopes: bookings:read bookings:write poppy:browser-sign-in.- Device sign-in
POST https://stays.papsandbox.com/oauth/device
Device Sign-In (4.3): show the Userhttps://stays.papsandbox.com/deviceand the code, then poll the token endpoint. Scopes: bookings:read bookings:write poppy:browser-sign-in.- Mediated sign-in
POST https://stays.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: bookings:read poppy:browser-sign-in.- Sign-out
POST https://stays.papsandbox.com/oauth/revoke- Versions
Poppy-Version: 1.0, andhttps://stays.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://stays.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://stays.papsandbox.com/poppy/browser-session
Section 6: load it in your browser, send the form'scodetoPOST https://stays.papsandbox.com/poppy/browser-session/authorizewith your Session header (and access token, signed in), then submit the form.- Skills
https://stays.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-booking,find-rooms-and-rates- API
https://stays.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.- MCP server
https://stays.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://stays.papsandbox.com/.well-known/oauth-protected-resource/poppy/mcp.- Company Agent
https://stays.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://stays.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. This store declines agent approvals withapproval_declined: ask the guest.mediated-sign-inv1.
Tools
| Tool | Needs | What it does |
|---|---|---|
availabilityGET /poppy/availability |
Signed out is fine | Rooms free for the dates, with the lowest total for each. |
ratesGET /poppy/rates |
Signed out is fine | Every rate plan for a room and dates, with totals and cancellation terms. |
my_bookingsGET /poppy/bookings |
bookings:read | The signed-in guest's upcoming bookings. |
change_bookingPOST /poppy/bookings/{booking_id}/changes |
bookings:write | Propose a change to a booking: new dates, room or rate plan (add breakfast with rp_flex_bb). 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://stays.papsandbox.com/poppy/0.4.json",
"0.3": "https://stays.papsandbox.com/poppy/0.3.json"
},
"organization": {
"name": "Harbour Row Stays",
"domain": "stays.papsandbox.com",
"logo_uri": "https://stays.papsandbox.com/poppy/logo.svg"
},
"auth": {
"issuer": "https://stays.papsandbox.com",
"scopes": {
"bookings:read": "See your bookings: dates, room, rate plan and price. Read only.",
"bookings:write": "Change a booking: new dates, room or rate plan, such as adding breakfast. Moving to a non-refundable rate can't be undone. You still approve each change. Doesn't include reading your bookings.",
"poppy:browser-sign-in": "Use the website signed in, with the other access you approve"
},
"scope_hints": {
"bookings:read": {
"changes": "none",
"personal_data": true
},
"bookings:write": {
"changes": "irreversible",
"personal_data": true
}
}
},
"agent": {
"protocols": [
{
"type": "poppy",
"endpoint": "https://stays.papsandbox.com/poppy/conversations",
"description": "Questions about rooms, rates and your booking, and changes to it"
}
]
},
"apis": [
{
"type": "openapi",
"url": "https://stays.papsandbox.com/poppy/openapi.json",
"description": "Room availability and rates, the guest's bookings, and changes to a booking"
},
{
"type": "mcp",
"url": "https://stays.papsandbox.com/poppy/mcp",
"description": "Room availability and rates, the guest's bookings, and changes to a booking, as MCP tools"
}
],
"web": {
"browser_session_endpoint": "https://stays.papsandbox.com/poppy/browser-session"
},
"extensions": {
"operations": [
{
"version": "3"
}
],
"mediated-sign-in": [
{
"version": "1",
"fields": [
{
"name": "email",
"label": "Email",
"secret": false
},
{
"name": "password",
"label": "Password",
"secret": true
}
],
"scopes": [
"bookings:read",
"poppy:browser-sign-in"
]
}
]
},
"tasks": {
"endpoint": "https://stays.papsandbox.com/poppy/tasks"
}
}
Issuer metadata
Open{
"issuer": "https://stays.papsandbox.com",
"token_endpoint": "https://stays.papsandbox.com/oauth/token",
"revocation_endpoint": "https://stays.papsandbox.com/oauth/revoke",
"authorization_endpoint": "https://stays.papsandbox.com/oauth/authorize",
"device_authorization_endpoint": "https://stays.papsandbox.com/oauth/device",
"protected_resources": [
"https://stays.papsandbox.com",
"https://stays.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"
],
"dpop_signing_alg_values_supported": [
"ES256"
],
"authorization_response_iss_parameter_supported": true,
"client_id_metadata_document_supported": true,
"scopes_supported": [
"bookings:read",
"bookings:write",
"poppy:browser-sign-in"
]
}