Checklist for your service
- Listens on
127.0.0.1:<port>, plain HTTP, the portal’s guest port. - Runs as a service with
"restart": "always". - Refuses requests without
x-agentspaces-identity(or, with anonymous access on, treats them as anonymous visitors), and identities withvother than 1 (identity header). - Keys users on
sub; doesn’t expect an email in the header. -
POST /.well-known/agentspaces/web-portal/v1/signup: onlykind == "service", answers within 60 s, idempotent onsub, readablereason, ignores unknown fields; readsvia,invite.data,signup_link.dataif it invites (sign-ups and approval). - Links to
/_portal/account(password, two-factor, sign out everywhere). -
fetchwrapper: on 401,POST /_portal/refreshand retry once. - A sign-out link to
/_portal/sign-out, or a sign-out form posting there. - No cookies of its own named
asp_…,__Host-asp_…or__Secure-asp_…; its own cookies named__Host-…(why). - Output escaped and a Content-Security-Policy set (same origin as the sign-in pages).
- MCP endpoint requires
kind == "oauth"with scopemcp; WebSockets closed afterexp. - With a developer MCP: it requires
kind == "developer"at its path and honoursscope; no other path acceptsdeveloper.
Last updated on