Submitting agents
Any signed-in GitHub user may submit to a public index (e.g. public.global)
via the submit form or POST /api/v1/indexes/:indexAtOrg/agents.
Private indexes require membership in the owning organization.
The well-known-domain verifier
Given a host (or a direct card URL), the registry fetches
/.well-known/agents.json (or /.well-known/agent-card.json) from that
host and lists every A2A agent card actually hosted there — the host itself proves ownership
by serving the file, no separate token/DNS-TXT step needed.
Example /.well-known/agents.json:
{
"agents": [
{ "name": "developer", "card": "https://example.com/agents/developer/agent-card.json" }
]
}
Bring your own agent (org-attested)
Organization admins can list an agent they run without proving domain ownership, on any
index that enables the org-attested verifier. These listings are labelled
not domain-verified. You choose how the agent is reachable:
- Public —
{"verifier":"org-attested","input":{"url":"https://sre.example.com"}}. The registry fetches/.well-known/agent-card.jsonand re-checks it daily. - Internal (inside your network, unreachable from the internet) — fetch the card from
your own network and send it:
The registry never connects to the URL and never re-checks it; re-submit to update the card, or remove it. In the portal, use the Bring your own agent form on the index's Submit page (Fetch from my browser works when your browser is on the corporate network and the agent allows CORS). Via MCP, usecurl -s https://sre.corp.local/.well-known/agent-card.json > card.json curl -X POST https://agents.a2loop.com/api/v1/indexes/<index>.<org>/agents -H 'content-type: application/json' --cookie ... -d "{"verifier":"org-attested","input":{"url":"https://sre.corp.local","reachability":"internal","card":$(cat card.json)}}"submit_agent.
Consumers resolve internal agents from their own network: the Copilot plugin and the portal chat call the agent directly, so only people who can reach it can use it.
Verified badge and re-verification
Once a listing's card is fetched successfully it is marked verified with a
timestamp. A periodic background sweep (REVERIFY_INTERVAL_MS) re-checks listings
on a rolling basis; a listing whose host stops serving its card is marked back to
pending/failed on the next sweep rather than being silently removed.
Browser chat: CORS and auth requirements
Listed agents get a Chat button in the portal. Your visitors' browsers call the agent directly — the registry is not a proxy — so the agent has to opt in. Agents that don't will still be listed and usable by other A2A clients; the chat pane just reports that the agent can't be reached from the browser.
Card requirements
- A JSON-RPC interface:
supportedInterfaceswith"protocolBinding": "JSONRPC"and anhttps://URL (or the 0.3url/preferredTransportshape). HTTP is only accepted forlocalhost. gRPC/REST-only agents get no Chat button. capabilities.streaming: trueif the agent implementsSendStreamingMessage(message/streamon protocol 0.x); otherwise the panel usesSendMessage.
CORS requirements (on the agent's endpoint)
Allow the portal origin — https://agents.a2loop.com plus tenant subdomains
(https://*.a2loop.com) — and answer the preflight:
OPTIONS / (the agent's JSON-RPC URL)
Access-Control-Allow-Origin: https://agents.a2loop.com # echo the request Origin if it's allowed
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization, A2A-Version, A2A-Extensions
Access-Control-Max-Age: 600
Vary: Origin
- Send
Access-Control-Allow-Originon the actualPOSTresponses too, including streamedtext/event-streamresponses and error responses (401/403). - Do not use
*with credentials, and don't setAccess-Control-Allow-Credentials: credentials travel in theAuthorizationheader, never cookies. - Don't redirect the endpoint (preflights don't follow redirects).
a2a-servedoes this for you: setserver.corsOrigins(default: the hosted portal origins;[]disables browser access).
Authentication
The panel follows what the card declares. Schemes only count when a
securityRequirements entry (0.3: security) references them; with none, the agent
is called anonymously.
| Card scheme | What the visitor does |
|---|---|
HTTP bearer / basic | Pastes a token; sent as Authorization. Kept in page memory only. |
API key (header or query) | Pastes the key; sent under the declared name. |
| OAuth 2.0 authorization-code / OpenID Connect | Signs in through a popup (PKCE). |
| mTLS, cookie API keys | Not supported in the browser. |
For OAuth/OIDC, the identity provider's authorization-code token endpoint (and
discovery/registration endpoints) must also allow the portal origin via CORS, because the code
exchange runs in the browser. Either support RFC 7591 dynamic client registration (used
automatically), or register a public PKCE client whose redirect URI is
https://agents.a2loop.com/chat/oauth-callback (one per portal origin) and have visitors
enter its client ID. Return 401/403 for bad credentials so the panel re-prompts.
Quick check
curl -i -X OPTIONS https://your-agent.example.com/ -H "Origin: https://agents.a2loop.com" -H "Access-Control-Request-Method: POST" -H "Access-Control-Request-Headers: authorization,content-type,a2a-version"
Expect a 2xx with the Access-Control-Allow-* headers above.