Skip to main content

Well-Known Discovery

Serve GET /.well-known/agent-configuration so other agents and systems can discover your capabilities automatically.

Setup

// Express / Fastify / any framework
app.get('/.well-known/agent-configuration', (req, res) =>
res.json(chain.getWellKnownConfig())
);

// With optional endpoint prefix and JWKS URI
chain.getWellKnownConfig('/api/v1', {
jwks_uri: 'https://myservice.com/.well-known/jwks.json',
});

Response Shape

{
"version": "1.0-draft",
"provider_name": "billing-service",
"issuer": "https://billing.mycompany.com",
"algorithms": ["Ed25519"],
"modes": ["delegated", "autonomous"],
"approval_methods": ["device_authorization"],
"endpoints": {
"register": "/agent/register",
"capabilities": "/capability/list",
"execute": "/capability/execute",
"status": "/agent/status",
"revoke": "/agent/revoke"
},
"default_capabilities": ["createInvoice"]
}

Fields

FieldDescription
versionProtocol version
provider_nameHuman-readable service name
issuerCanonical URL for this service
algorithmsSupported signing algorithms (always ["Ed25519"])
modesdelegated (human-supervised) and/or autonomous
endpointsPath map for agent interaction
default_capabilitiesCapabilities available to newly registered agents

This follows the emerging agent discovery pattern. Other agents can fetch this endpoint to understand what your service offers and how to register.