Docs Concepts
How the protocol works
Sessions, sign-in, tools, operations and conversations, explained.
Poppyseed implements the Personal Agent Protocol, Poppy for short. The exact rules are in the spec; this page explains the ideas.
Three parties
- The User: a person, like Maya.
- Their Personal Agent: software acting for that one person, such as an assistant app.
- A Company: your site.
Without the protocol, agents scrape pages and type the person's password into your login form. With it, you decide what agents can do, and the person approves the actions that matter.
Discovery
Your site describes itself at /.well-known/poppy.json: who you are, your OAuth server, your scopes, your APIs (MCP and OpenAPI), your Company Agent, web browsing, the tasks you don't offer agents, and extensions. Your OAuth server's metadata says which sign-in types you offer, and confirms the link back with protected_resources. Poppyseed generates both from your config.
Sessions
Everything an agent does at your site happens in a Session: one User, one Company, one Personal Agent. It starts signed out.
Agents have no password. An agent proves who it is with a key: it publishes a metadata document at its client_id URL, which points to its public keys (jwks_uri), and signs an assertion addressed to your issuer. You check it and issue a Session Token.
Each Session has its own key pair, the Session Key, made by the agent. The key's thumbprint names the Session, and every Session Token is bound to it with DPoP: each request carries a fresh proof signed with the key, so a stolen token is useless. A new key starts a new Session; the same key renews it. A token for your MCP server is a DPoP token issued for its URL only.
Session Tokens are short-lived and opaque to agents; Poppyseed seals them, so agents can't read or change them. An agent's browser can join the same Session (web browsing).
Signing in
You define your own scopes, such as trips:read, each with a description agents and people read. A tool's scope says it needs the User's account with that access. A signed-out Session has no scopes, so calling it gets insufficient_scope, naming the scope. The agent uses its Account Token if it has one, or has the person sign in one of three ways:
| Sign-in | The person | Use when |
|---|---|---|
| Direct | approves on your consent page | the agent can receive the browser redirect back, or send the link to the person's phone |
| Device | enters a short code on your site | the agent can't receive a browser redirect, such as a speaker or chat app |
| Mediated | gives the agent their credentials | transitional: only until Direct or Device covers what people need; keep its scopes narrow |
Each ends with a signed-in Session Token and an Account Token, so next time the agent signs in without asking. People see and disconnect agents in their account settings. Signing out or disconnecting stops the signed-in tokens at once, and the Session continues signed out.
Tools
A tool has a name, description, input schema and scope. Each one is served twice, as an MCP tool and as POST /poppy/tools/{name}, and gets a context saying who is calling.
Operations
An action with consequences (a booking, a charge, a cancellation) can be an operation, part of the operations extension that both you and the agent opt into:
- Propose. You work out the terms without changing anything, and answer with an operation: id, revision, summary, terms.
- Approve. The agent shows the person your name and the summary and gets their approval, or applies a permission they gave earlier. Changed terms make a new revision; only the latest can be confirmed.
- Confirm. You perform it at most once, however many times it is confirmed.
- Track. It ends
succeeded,failed,cancelledorexpired.failedmeans it wasn't completed, and its result says what changed, if anything; an unknown outcome staysin_progress.
Conversations
Agents can talk to your own agent, the Company Agent, which uses your tools under the Session's scopes. If the person needs a human, the conversation waits in your staff inbox.
Tasks you don't offer
You can list the tasks you chose not to offer agents, such as a wire transfer that only your app allows, with another way to do each. Agents then tell the person right away instead of trying every interface. Agents can also report a task they couldn't do, and you can answer with a way to do it.
What you write
Poppyseed does all of the above on Web Request and Response. You write the tools, say who is signed in to your site, and decide what each scope allows. The conformance suite checks the result against the spec.