Skip to content

AI agents

Last updated: 2026-08-05

ChaosNexus documentation is intentionally open to AI crawlers and agents. The software and docs are AGPL-3.0-or-later. Code contributions require accepting the contributor dual-license grant in each repo’s CONTRIBUTING.md. See Licensing.

Prefer these entry points

ResourceURLUse when
Docs index for LLMs/llms.txtDiscovering pages before deep reads
Full docs dump/llms-full.txtOffline / bulk context (large)
Sitemap/sitemap.xmlCrawl planning
Licensing/guide/licensingLicense and contributor grant
Privacy (search)/guide/privacyWhat Cloudflare AI Search processes
Agent authhttps://chaosnexus.ai/auth.mdOAuth/OIDC discovery + anonymous public access

robots.txt allows general and AI crawlers and points at the sitemap.

Homepage HTTP responses also advertise discovery via RFC 8288 Link headers (for example api-catalog, describedby/llms.txt and /.well-known/agent-index.json, service-doc → Rhai API / AI agents). The API catalog lives at https://chaosnexus.ai/.well-known/api-catalog (RFC 9727 linkset).

OAuth / OIDC discovery

Public docs and the AI Search MCP are anonymous today (no Bearer token). Discovery metadata is published so agents can find that policy programmatically:

DocumentURL
OAuth AS metadata (RFC 8414)https://chaosnexus.ai/.well-known/oauth-authorization-server
OpenID Connect Discoveryhttps://chaosnexus.ai/.well-known/openid-configuration
Protected Resource Metadata (RFC 9728)https://chaosnexus.ai/.well-known/oauth-protected-resource
Agent auth noteshttps://chaosnexus.ai/auth.md

Issuer: https://chaosnexus.ai. Token/authorize/register endpoints exist as stubs that direct clients to anonymous access until protected commercial APIs ship.

Web Bot Auth

ChaosNexus publishes an HTTP Message Signatures key directory so outbound bot/agent clients can identify as this origin (IETF WebBotAuth, Cloudflare Web Bot Auth):

ItemValue
Key directoryhttps://chaosnexus.ai/.well-known/http-message-signatures-directory
Media typeapplication/http-message-signatures-directory+json
Signature-Agent"https://chaosnexus.ai" (quoted structured string)

Signed requests SHOULD include Signature-Agent, Signature-Input, and Signature with tag="web-bot-auth". Rotate keys with tools/launch/generate-chaosnexus-web-bot-auth.py (private key stays local under chaosnexus-website/.web-bot-auth/, gitignored).

WebMCP (browser tools)

ChaosNexus registers WebMCP tools on page load via navigator.modelContext.registerTool() / document.modelContext.registerTool() (polyfill: @mcp-b/webmcp-polyfill). Agents in a supporting browser can call:

ToolPurpose
search_docsHybrid search over public docs (AI Search /search)
navigate_toClient-side navigation to a same-origin docs path
get_discovery_infoAgent discovery URLs (MCP card, skills index, auth, etc.)
get_current_pageCurrent URL, title, and description

Implementation: chaosnexus-website/.vitepress/webmcp.ts (wired from the VitePress theme).

Agent Skills discovery

Published skills are listed at https://chaosnexus.ai/.well-known/agent-skills/index.json (Agent Skills Discovery RFC v0.2.0). Each entry includes name, type, description, url, and a sha256: digest of the artifact.

SkillPurpose
agent-authAuth.md + OAuth/OIDC discovery for this site
docs-searchDocs MCP, llms.txt, and search guidance

DNS-AID (DNS for AI Discovery)

Agents can discover ChaosNexus endpoints via DNS-AID ServiceMode HTTPS / SVCB records (RFC 9460) under _agents.chaosnexus.ai:

NameTypeRole
_index._agents.chaosnexus.aiHTTPS (+ TXT fallback)Org agent index entrypoint → chaosnexus.ai
_mcp._agents.chaosnexus.aiHTTPSMCP protocol entrypoint → docs AI Search host
_docs-search._mcp._agents.chaosnexus.aiSVCBNamed docs-search MCP agent

HTTP mirrors (after zone DNS is published, prefer DNS + DNSSEC):

Ops: tools/launch/provision-chaosnexus-dns-aid.sh (Cloudflare Zone DNS Edit on chaosnexus.ai). DNSSEC is active: Cloudflare signs the zone; the DS is published at registrar Spaceship (key tag 2371, algorithm 13, digest type 2). isitagentready reports dnsAid pass with dnssecValidated: true.

Markdown for Agents (Accept: text/markdown)

HTML remains the default for browsers. Agents that send Accept: text/markdown receive a markdown rendering of the same URL with:

  • Content-Type: text/markdown; charset=utf-8
  • Vary: Accept
  • x-markdown-tokens (estimated token count)

Implemented as a Cloudflare Pages Function (chaosnexus-website/functions/_middleware.ts) so it works on the Free plan. If the zone is upgraded to Pro+, native edge conversion can also be enabled with tools/launch/provision-chaosnexus-markdown-for-agents.sh (content_converter).

bash
curl -sS -H 'Accept: text/markdown' https://chaosnexus.ai/guide/ai-agents | head

Cloudflare AI Search (MCP)

Public documentation is indexed by Cloudflare AI Search (instance chaosnexus). Agents can call the built-in MCP search tool:

text
https://03de9872-58ee-48b3-be11-a2103412dce4.search.ai.cloudflare.com/mcp

Pre-connection discovery uses an MCP Server Card at https://chaosnexus.ai/.well-known/mcp/server-card.json (serverInfo, Streamable HTTP transport endpoint, capabilities).

Example MCP client config:

json
{
  "mcpServers": {
    "chaosnexus": {
      "url": "https://03de9872-58ee-48b3-be11-a2103412dce4.search.ai.cloudflare.com/mcp"
    }
  }
}

When you search:

  1. Treat results as public docs, not private source.
  2. Cite result URLs when answering humans.
  3. Remind users that ChaosNexus is AGPL-3.0-or-later and that contributions use the dual-license grant; commercial embedding without AGPL obligations needs a commercial license (Licensing).

Human visitors can also use the on-site AI Search modal (Cmd/Ctrl+K when enabled). Local VitePress keyword search remains available as a fallback.

Contribute

Issues and PRs: Contribute on Codeberg. Do not open feature PRs against GitHub mirrors.