Repository navigation
Replies: 5 comments
|
Would appreciate any feedback here, I've also started work on a draft PR I can share if interest! |
|
Good idea! Happy to accept a PR for this |
|
@fmhall would you mind sharing your draft PR? Would love to take a look. Thank you! |
|
@fmhall @masonjames — is anyone still on this? The draft PR mentioned back in April was never opened, so unless someone is mid-flight I would like to pick it up. Before writing any code, one design question, because it decides the shape of the PR. The AgentCash spec wants Enforcement in const result = await x402.enforce(Astro.request, { price: entry.data.price || "$0.01" });That is the documented per-page pricing pattern, and it reads the price off a CMS field per entry. So nothing outside the rendered page knows which routes call Three ways out:
I lean towards 1 for this PR: additive, contained to Two smaller points while I am asking:
|
|
Follow-up, because I checked the last point myself instead of waiting. Everything below was run against HTML operations validate clean. A document with That is where EmDash currently fails. The 402 that The npm package ships a spec that differs from the website. This moves the design question a little. If the 402 has to carry |
Uh oh!
There was an error while loading. Please reload this page.
Summary
I’d like EmDash’s
@emdash-cms/x402integration to support agent-friendly discovery metadata so AI agents can find paid resources on an EmDash-powered site, understand how to call them, and pay automatically when appropriate.The core idea is to let a site expose a machine-readable discovery document, an
openapi.json, which fits the agent discovery standard from Merit Systems and used by agents through AgentCash. This discovery standard was built in collaboration with Coinbase and Stripe/Tempo. Full spec can be found here.It's a standard
openapi.json, but includes a few extra fields specific to agent discovery and payment.EmDash is well-positioned for this
EmDash already has strong CMS and content modeling primitives, and
@emdash-cms/x402already handles enforcement. Discovery through the bazaar is supported, but insufficient for agents to find and pay for resources programmatically without running their own x402 infrastructure.Adding discovery is a natural extension:
Why now
Agents are increasingly using structured API discovery instead of ad hoc browsing. EmDash already has the enforcement half of the story through x402. Adding discovery closes the loop and makes the feature materially useful in real agent workflows.
All reactions