PR: https://github.com/ensdomains/ensips/pull/75
ENSIP-26 standardised how to find an agent via ENS text records
(agent-endpoint[mcp], agent-endpoint[a2a]). It intentionally left the
format of the document at the discovered endpoint open for a future ENSIP.
This is that future.
ENSIP-27 defines the schema for the agent card β the JSON resource served
at /.well-known/agent.json that a client fetches after resolving the ENS
text record. Without a shared schema, every gateway invents its own format and
clients canβt parse agent cards interoperably.
The discovery chain it completes:
ENS name
β agent-endpoint[mcp] text record (ENSIP-26)
β /.well-known/agent.json (ENSIP-27)
β mcp endpoint + capabilities + on-chain identity
To keep the protocol namespace clean, weβve also proposed agent-endpoint[ens-acs]
(ENS Agent Card Schema) as a dedicated protocol value in ENSIP-26 β so clients
that want to fetch the card directly can do so without going through the MCP
endpoint first.
What the schema defines:
Required: schema_version, name, url (MCP endpoint), provider,
version, capabilities, authentication, skills.
Key optional fields:
| Field | Purpose |
|---|---|
erc8004 |
On-chain identity anchor β { registry, agentId } |
trustScope |
A2A depth limiting β { transitive, maxDepth, capabilities } |
sanitizationSpec |
IPFS URI of input sanitization pipeline |
inputSources |
Declared input origin scope |
Reference implementation β live today:
GET https://gateway.ensub.org/agent/0xe61f5a6783ae09949b9a1b6821b68f89c0d7bb2d/5/.well-known/agent.json
Three ERC-8004 collection registries running on Ethereum mainnet. The gateway
serves agent cards offchain via CCIP-Read for *.dinamic.eth subnames.
Open questions:
-
Should
/.well-known/agent.jsonbe the only valid path, or should
agent-endpoint[ens-acs]allow any URL? (Multi-agent gateways may want
per-agent paths rather than root-level cards.) -
Should
erc8004be promoted to required β should every ENSIP-27-compliant
agent card declare an on-chain identity? -
Is
sanitizationSpectoo implementation-specific for a general schema, or
does input provenance belong at the agent card level?
Related: PR #76 contributes erc8004 to ENSIP-26βs agent-context and
registers agent-endpoint[ens-acs] as the protocol value pointing to the card.
β dinamic.eth