Skip to content

feat(aeo): implement Cloudflare Agent Readiness and Answer Engine Optimization (AEO) - #687

Merged
codercatdev merged 1 commit into
devfrom
feat/agent-readiness-aeo
Oct 8, 2026
Merged

codercatdev merged 1 commit into
devfrom
feat/agent-readiness-aeo

Conversation

@codercatdev

Copy link
Copy Markdown
Contributor

Summary

Implements full compliance with Cloudflare's Agent Readiness specifications (blog.cloudflare.com/agent-readiness / isitagentready.com) across all 4 core dimensions, alongside comprehensive Answer Engine Optimization (AEO) for AI search and agent consumers (GPTBot, ClaudeBot, PerplexityBot, Applebot-Extended, etc.).


1. Discoverability

  • RFC 9309 Compliant robots.txt: Standardized format pointing to /sitemap.xml and /sitemap-index.xml.
  • RFC 8288 Link HTTP Response Headers: Injected via edge middleware for all routes:
    • rel="api-catalog" -> /.well-known/api-catalog
    • rel="mcp-server-card" -> /.well-known/mcp/server-card.json
    • rel="agent-skills" -> /.well-known/agent-skills/index.json
    • rel="llms-txt" -> /llms.txt
  • BaseLayout HTML Meta Links: Embedded <link rel="alternate" type="text/markdown">, <link rel="api-catalog">, and <link rel="mcp-server-card"> in <head>.

2. Content & Token Efficiency

  • Markdown Content Negotiation: Edge middleware detects Accept: text/markdown or .md / /index.md URL suffixes and transforms HTML into clean, token-dense Markdown using a zero-dependency edge parser (htmlToMarkdown).
  • Standard /llms.txt: Implemented following llmstxt.org specification with core site architecture, API catalog, MCP server, search endpoint, RSS feeds, and markdown negotiation notes.
  • Detailed /llms-full.txt: Dynamic SSR endpoint fetching the latest 100 blog posts and podcasts directly from Sanity, linking to their markdown endpoints with summaries.
  • Hidden Agent Token-Saving Directives: Injected into HTML <body> directing AI crawlers to use Accept: text/markdown or append .md to avoid wasting LLM context window tokens on HTML layout boilerplate.

3. Bot Access Control

  • Content Signals: Added Content-Signal: ai-train=no, search=yes, ai-input=yes in robots.txt to permit search indexing and agent consumption while asserting copyright against model pre-training.
  • Explicit AI Bot Allow Directives: Explicit crawl permissions and endpoint allow rules for GPTBot, ClaudeBot, PerplexityBot, and Applebot-Extended.

4. Capabilities & MCP Integration

  • RFC 9727 API Catalog: Implemented at /.well-known/api-catalog detailing search, MCP, RSS, and sponsorship endpoints.
  • MCP Server Cards: Implemented at /.well-known/mcp/server-card.json and /.well-known/mcp.json.
  • Cloudflare Agent Skills RFC: Implemented catalog at /.well-known/agent-skills/index.json.
  • Streamable HTTP MCP Endpoint: Implemented JSON-RPC 2.0 MCP server at /api/mcp supporting initialize, notifications/initialized, tools/list, and tools/call for search_content wired directly to Sanity search.

5. Enhanced AEO / Structured Data

  • PodcastEpisode Schema: Added comprehensive Schema.org PodcastEpisode structured data with AudioObject, PodcastSeries, season, and episode numbers to supplement existing Article and BreadcrumbList schemas.

Verification

  • pnpm --filter @codingcatdev/site lint: 67 files checked, 0 errors.
  • pnpm --filter @codingcatdev/site typecheck: 134 files checked, 0 errors.
  • pnpm --filter @codingcatdev/site test:e2e: All 145 dual-track E2E tests passing.
  • pnpm --filter @codingcatdev/site build: Clean edge server build in 1.03s.

…d AEO

- Add Content-Signal and bot access control rules to robots.txt
- Add /llms.txt and /llms-full.txt following llmstxt.org specification
- Add RFC 9727 /.well-known/api-catalog endpoint
- Add MCP server cards at /.well-known/mcp/server-card.json and /.well-known/mcp.json
- Add Cloudflare Agent Skills RFC catalog at /.well-known/agent-skills/index.json
- Add Streamable HTTP MCP JSON-RPC 2.0 endpoint at /api/mcp for search_content
- Add edge HTML-to-Markdown transformer with Accept: text/markdown content negotiation and *.md route rewrites
- Add RFC 8288 Link discovery headers in middleware and link tags in BaseLayout
- Add PodcastEpisode Schema.org structured data and hidden agent token-saving directives
@vercel

vercel Bot commented Oct 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
codingcat-dev Ignored Ignored Oct 8, 2026 12:19am UTC

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

⚡ Cloudflare Worker Preview Ready!

Environment URL
PR Preview https://5ee16451-codingcatdev-dev.codingcatdev.workers.dev
Dev Custom Domain https://dev.codingcat.dev
  • Worker Version ID: 5ee16451-7253-451b-83fa-a452eb0c3ab7
  • Protection: Restricted to @codingcat.dev accounts via Cloudflare Zero Trust Access

@codercatdev
codercatdev merged commit 24eb42b into dev Oct 8, 2026
4 checks 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.

1 participant