# Docs for AI Agents: Public Docs MCP, Markdown Mirrors, llms.txt & skill.md

> Every page in this wiki is built for both people and AI agents. Connect any MCP client to our public zero-auth Docs MCP at `https://always-on.cloud/docs/mcp`, append `.md` (or send `Accept: text/markdown`) on any docs URL, fetch `/llms.txt` or `/llms-full.txt`, or install `/skill.md`.

- **Canonical HTML:** https://always-on.cloud/docs/agent-access
- **Markdown Mirror:** https://always-on.cloud/docs/agent-access.md
- **Public Docs MCP:** https://always-on.cloud/docs/mcp
- **Agent Skill:** https://always-on.cloud/skill.md
- **Last Updated:** 2026-12-01

## How do I connect an IDE agent to the public Docs MCP server?

Add `https://always-on.cloud/docs/mcp` as a Streamable HTTP MCP server in Cursor, VS Code, Claude Code, Codex, or any MCP host—no account or key needed. It exposes 5 read-only docs tools, Markdown resources, and troubleshooting prompts at zero workspace quota cost.

_Claude Code (public Docs MCP — no auth needed)_

```bash
claude mcp add --transport http alwayson-docs "https://always-on.cloud/docs/mcp"
```

_Generic MCP JSON (Cursor, Windsurf, Kiro, JetBrains, Antigravity)_

```json
{
  "mcpServers": {
    "alwayson-docs": {
      "url": "https://always-on.cloud/docs/mcp"
    }
  }
}
```

| Capability | Name | Purpose |
| --- | --- | --- |
| Tool | `search_docs` | Ranked keyword search across all wiki pages, headings, and Agent Context blocks. |
| Tool | `get_doc_page` | Return clean agent-scoped Markdown (plus structured metadata) for any page slug. |
| Tool | `list_docs` | Return all pages grouped by category with canonical HTML and `.md` URLs. |
| Tool | `get_client_setup` | Return copy-ready config, setup steps, and verify `curl` for any of the 18 supported clients. |
| Tool | `list_memory_tools` | Inspect live JSON Schemas and safety annotations for all 16 AlwaysOn Memory MCP tools. |
| Resources | `docs://...` | Read any wiki page, `llms.txt`, or `skill.md` via `resources/list` and `resources/read`. |
| Prompts | `connect_client`, `troubleshoot_error` | Guided prompts for connecting a client or diagnosing an error code. |

## How do raw Markdown mirrors and Accept: text/markdown work?

Append `.md` to any `/docs` URL (or fetch `/docs.md` for the hub) to get pure Markdown. If your agent prefers content negotiation, send `Accept: text/markdown` to any `/docs` page—or even `/` or `/pricing`—and AlwaysOn returns Markdown with an `X-Markdown-Tokens` estimate header.

| Mechanism | Example Request | Behavior |
| --- | --- | --- |
| `.md` URL mirror | GET https://always-on.cloud/docs/quickstart.md | Returns `text/markdown; charset=utf-8` with UI widgets stripped and Agent Context included. |
| Content negotiation | GET https://always-on.cloud/docs/quickstartAccept: text/markdown | Returns Markdown in place with `Vary: Accept, Cookie`, `Cache-Control: private, no-store`, and `X-Markdown-Tokens`. |
| HTML discovery link | <link rel="alternate" type="text/markdown" href="..."> | Included in `<head>` and in the HTTP `Link` header on every `/docs` HTML page. |
| `llms.txt` index | GET https://always-on.cloud/llms.txt | Structured llmstxt.org map of every `.md` page, endpoint, and MCP server card. |
| `llms-full.txt` corpus | GET https://always-on.cloud/llms-full.txt | Single-file technical reference compiled automatically from the live docs catalog. |
| Agent Skill | GET https://always-on.cloud/skill.md | Also served at `/.well-known/agent-skills/alwayson-memory/SKILL.md` with SHA-256 digest in `index.json`. |

_Fetch any docs page as clean Markdown via curl_

```bash
# Direct .md mirror
curl -fsS "https://always-on.cloud/docs/reference/mcp-tools.md"

# Or via Accept negotiation on the canonical URL
curl -fsS -H "Accept: text/markdown" "https://always-on.cloud/docs/reference/mcp-tools"
```

## How does AlwaysOn separate browser UI from agent-only context?

Every wiki page compiles from one typed model where each block is tagged `both`, `human`, or `agent`. Browser HTML shows copy buttons, filter boxes, and one-click IDE deep links; Markdown and Docs MCP strip that chrome and add extra `curl`, JSON-RPC, and retry instructions.

- **Human-only blocks (`human`):** Deep-link buttons, client filter boxes, and interactive cards stay out of Markdown so agents don't waste tokens on UI chrome.
- **Agent-only blocks (`agent`):** Exact JSON-RPC envelopes, `curl` checks, retry rules, and prompt-injection guardrails appear automatically in `.md` mirrors, `llms-full.txt`, and `/docs/mcp`.
- **Single source of truth (`both`):** Plan limits (`PLAN_CATALOG`), memory tools (`MCP_TOOLS`), and client configs (`CLIENTS`) come straight from live code so HTML and Markdown never drift apart.

### Agent Context: Docs MCP Rate Limits & Caching Rules

The public `/docs/mcp` server is stateless, zero-auth, and rate-limited at 120 requests per minute per IP.

- Calls to `/docs/mcp` never require auth and never count against your workspace's daily Memory MCP quota.
- If `/docs/mcp` returns HTTP 429 (JSON-RPC `-32029`), wait for the `Retry-After` header (60 seconds) and cache `list_docs` and `list_memory_tools` locally.
- For repeated static reads, prefer `GET /docs/<slug>.md` (`Cache-Control: public, max-age=300, s-maxage=3600, stale-while-revalidate=600`) or `GET /llms.txt` (`max-age=3600, s-maxage=86400`). Both include `Access-Control-Allow-Origin: *`.

_Inspect Docs MCP tools via JSON-RPC_

```bash
curl -fsS -X POST "https://always-on.cloud/docs/mcp" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":"1","method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"agent-client","version":"1.0"}}}'

curl -fsS -X POST "https://always-on.cloud/docs/mcp" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":"2","method":"tools/list","params":{}}'
```

## Related Documentation

- [MCP protocol](https://always-on.cloud/docs/reference/mcp-protocol.md): Technical specification for AlwaysOn Memory's Streamable HTTP MCP endpoints (/mcp, /t/<slug>/mcp, /docs/mcp), protocol versions, headers, and .well-known discovery.
- [Memory tools (16)](https://always-on.cloud/docs/reference/mcp-tools.md): Parameter tables, safety annotations, and JSON-RPC examples for all 16 AlwaysOn Memory MCP tools: pages, search, briefings, handoffs, and inbox messages.
- [Quickstart](https://always-on.cloud/docs/quickstart.md): Create a free AlwaysOn Memory workspace, connect Claude Code, Cursor, VS Code, Codex, ChatGPT, Claude, or Grok via MCP, and verify cross-session recall.
