Skip to content

docs(x402): agent-payment guide, service directory, buyer/seller orientation + mermaid#19

Merged
hayarobi merged 1 commit into
mainfrom
feat/x402-agent-docs
Jul 10, 2026
Merged

docs(x402): agent-payment guide, service directory, buyer/seller orientation + mermaid#19
hayarobi merged 1 commit into
mainfrom
feat/x402-agent-docs

Conversation

@nolnol3

@nolnol3 nolnol3 commented Jul 10, 2026

Copy link
Copy Markdown
Member

What

Expands the /x402 docs section (served at docs.hpp.io/x402) with the agent-payment story and clearer buyer/seller orientation.

New pages

  • Pay from an AI agent (x402/agents.mdx) — the hpp-x402 CLI + MCP bridge: host setup (Claude Desktop/Code, Cursor, Windsurf, OpenClaw), funding, wallet modes (light / Safe governance), spend controls, sell-from-CLI, headless/CI, full command reference, troubleshooting.
  • Service directory (x402/directory.mdx) — the facilitator-indexed x402-discovery.hpp.io catalog + REST API.

Improvements

  • Overview: "Where to go next" → Choose your path — splits the primary decision by role (💸 pay = buyer vs 🏷️ charge = seller), plus agentic framing.
  • How it works: ASCII flow → mermaid sequenceDiagram (Buyer / Seller / Facilitator).
  • Enable mermaid (@docusaurus/theme-mermaid pinned 3.10.1, markdown.mermaid).
  • Sidebar: surface agents + directory, rename "Quickstart" → "Build with the SDK".

Verification

  • npm run build passes (onBrokenLinks: 'throw') — no broken links.
  • Mermaid diagrams bundle + theme-mermaid runtime present → render client-side.
  • All CLI commands in the guide verified against the real @hpp-io/x402-mcp-bridge CLI.

Notes

  • Content-only + one dev-dependency (theme-mermaid) pinned to match the repo's exact-version convention.
  • Deploys to docs.hpp.io/x402 on merge to main.

… orientation, mermaid diagrams

- Add "Pay from an AI agent" guide (agents.mdx): hpp-x402 CLI + MCP bridge
  setup for Claude/Cursor/Windsurf/OpenClaw, funding, wallet modes (light/Safe),
  spend controls, sell-from-CLI, headless/CI, command reference, troubleshooting.
- Add "Service directory" page (directory.mdx): x402-discovery.hpp.io listing + REST API.
- Overview: restructure "Where to go next" into "Choose your path" (buyer vs seller),
  add agentic framing.
- How it works: replace ASCII flow with a mermaid sequenceDiagram (Buyer/Seller/Facilitator).
- Enable mermaid (theme-mermaid pinned 3.10.1, markdown.mermaid).
- Sidebar: surface agents + directory, rename Quickstart -> "Build with the SDK".
@nolnol3
nolnol3 requested a review from hayarobi July 10, 2026 08:00

@hayarobi hayarobi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The document structure appears slightly different from that of other ecosystems. It is evident that it is quite difficult to uniformly apply the same structure to services with different characteristics.

Let's consider achieving more precise consistency, if only someone raises an objection or makes a suggestion.

@hayarobi
hayarobi merged commit 2c4f92e into main Jul 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants