Skip to content

feat: make the site discoverable and callable by AI agents - #37

Open
jnton wants to merge 27 commits into
mainfrom
feat/agent-readiness
Open

feat: make the site discoverable and callable by AI agents#37
jnton wants to merge 27 commits into
mainfrom
feat/agent-readiness

Conversation

@jnton

@jnton jnton commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Makes Yourself to Science openly discoverable, readable, and callable by AI systems across the emerging agent ecosystem while preserving the existing browser experience.

Implemented

  • Explicitly allows all crawlers and declares ai-train=yes, search=yes, and ai-input=yes.
  • Adds agent-useful RFC 8288 Link response headers and equivalent HTML <head> discovery links.
  • Adds Accept: text/markdown negotiation for the homepage, catalogue sections, and individual resource pages using the existing generated Markdown files.
  • Publishes an RFC 9727 API catalog and public health endpoint.
  • Publishes MCP discovery in both Server Card and current registry-manifest forms, pointing to the real authless MCP endpoint.
  • Publishes a callable A2A 1.0 JSON-RPC agent and matching Agent Card.
  • Publishes an Agent Skills Discovery v0.2.0 index and digest-verified SKILL.md.
  • Registers read-only catalogue tools through the current WebMCP API and the earlier compatibility API used by existing scanners.
  • Publishes honest auth.md documentation explaining that the public interfaces require no registration, OAuth, API key, account, or scope.
  • Adds explicit MIME types, CORS, caching, content signals, and WebMCP permissions.
  • Updates generated llms.txt so future builds continue advertising MCP, A2A, OpenAPI, skills, and discovery endpoints.
  • Updates generated OpenAPI 3.1 metadata to include the public health and A2A endpoints.
  • Rebuilds the /ai page as a complete human-readable directory of all open machine and agent interfaces.
  • Shares catalogue filtering, ranking, facets, and canonical record formatting across A2A and WebMCP to avoid divergent behavior.

Intentionally not fabricated

  • OAuth/OIDC metadata: the public APIs are authless and are not OAuth protected resources. Publishing an authorization server or protected-resource relationship would be false.
  • Web Bot Auth signing directory: this requires a real private signing key and signed outbound HTTP messages. A fake JWKS would reduce security rather than improve compatibility.
  • DNS-AID records: these must be added in the authoritative Cloudflare DNS zone, outside this repository. The code-side discovery endpoints are included here and ready to be referenced by DNS.

Primary new endpoints

  • /.well-known/api-catalog
  • /.well-known/mcp/server-card.json
  • /.well-known/mcp.json
  • /.well-known/agent-card.json
  • /.well-known/agent-skills/index.json
  • /auth.md
  • /api/a2a
  • /api/health

Validation

  • Branch is based directly on main and GitHub reports it mergeable.
  • SonarQube Cloud Quality Gate passes with zero security hotspots and 0.1% duplication on new code.
  • Agent Skill digest matches the raw SKILL.md bytes.
  • Cloudflare Pages preview deployment is used as the final Next.js production-build check.

Copilot AI review requested due to automatic review settings July 27, 2026 19:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 27, 2026 19:05
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 27, 2026

Copy link
Copy Markdown

Deploying yourselftoscience-org with  Cloudflare Pages  Cloudflare Pages

Latest commit: c32466d
Status: ✅  Deploy successful!
Preview URL: https://1bf626fd.yourselftoscience-org.pages.dev
Branch Preview URL: https://feat-agent-readiness.yourselftoscience-org.pages.dev

View logs

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 27, 2026 19:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 27, 2026 19:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 27, 2026 19:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 27, 2026 19:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 27, 2026 19:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 27, 2026 19:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 27, 2026 19:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 27, 2026 19:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 27, 2026 19:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sonarqubecloud

Copy link
Copy Markdown

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