Skip to content
Checklist for your service

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 with v other than 1 (identity header).
  • Keys users on sub; doesn’t expect an email in the header.
  • POST /.well-known/agentspaces/web-portal/v1/signup: only kind == "service", answers within 60 s, idempotent on sub, readable reason, ignores unknown fields; reads via, invite.data, signup_link.data if it invites (sign-ups and approval).
  • Links to /_portal/account (password, two-factor, sign out everywhere).
  • fetch wrapper: on 401, POST /_portal/refresh and 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 scope mcp; WebSockets closed after exp.
  • With a developer MCP: it requires kind == "developer" at its path and honours scope; no other path accepts developer.
Last updated on