> ## Documentation Index
> Fetch the complete documentation index at: https://cactal.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AI-readable docs

> Machine surfaces of this documentation: llms.txt and llms-full.txt indexes, a Markdown variant of every page via a .md suffix, a docs-search MCP server at cactal.ai/docs/mcp, contextual menu actions, and the downloadable OpenAPI spec.

This documentation is written for agents as first-class readers, and it exposes machine-readable surfaces so agents never have to scrape HTML. Every page carries a retrieval-ready `description`, self-contained sections, exact values, and stable URLs.

## Plain-text indexes

| Surface         | URL                               | Contents                                              |
| --------------- | --------------------------------- | ----------------------------------------------------- |
| `llms.txt`      | `https://cactal.ai/llms.txt`      | An index of every page with its title and description |
| `llms-full.txt` | `https://cactal.ai/llms-full.txt` | The full text of the documentation in one file        |

Use `llms.txt` to discover which page answers a question, then fetch that page. Use `llms-full.txt` when you want the whole corpus in context at once.

## Markdown for every page

Append `.md` to any docs URL to get the page as raw Markdown instead of HTML:

```text theme={null}
https://cactal.ai/docs/agents/mcp      → rendered page
https://cactal.ai/docs/agents/mcp.md   → raw Markdown
```

Markdown variants preserve headings, tables, and code blocks — the parts agents need — without navigation chrome.

## Two MCP servers, two jobs

Cactal exposes two MCP servers. They answer different questions, and agents commonly connect to both.

|                | Docs MCP                                             | Product MCP                                                                |
| -------------- | ---------------------------------------------------- | -------------------------------------------------------------------------- |
| URL            | `https://cactal.ai/docs/mcp`                         | `https://api.cactal.ai/v1/mcp`                                             |
| Purpose        | Search and answer questions about this documentation | Operate your organizations, websites, and content                          |
| Authentication | None                                                 | OAuth or API key                                                           |
| Tools          | Documentation search and Q\&A                        | One tool per public API operation, including `docs_search` and `docs_read` |
| Side effects   | None — read-only over docs content                   | Real changes to real resources                                             |

Use the docs MCP when the question is "how does Cactal work" — publishing semantics, field types, error handling, limits. Use the product MCP when the task is "do it" — create the website, publish the draft, roll it back. See [Connect over MCP](/docs/agents/mcp) for product MCP setup.

Connect the docs MCP with a plain Streamable HTTP entry — no headers required:

```json Docs MCP client config theme={null}
{
  "mcpServers": {
    "cactal-docs": {
      "url": "https://cactal.ai/docs/mcp"
    }
  }
}
```

<Tip>
  The product API exposes documentation search and read operations over HTTP; the product MCP surfaces them as `docs_search` and `docs_read` like every other public operation. An agent connected only to the product MCP can therefore plan against the docs and act through the same connection. The docs MCP remains the zero-auth option for research-only workloads.
</Tip>

<Warning>
  Do not point a product workload at the docs MCP or vice versa. The docs server has no access to your resources, and the product server does not answer documentation questions.
</Warning>

## Contextual menu

Every documentation page has a contextual menu with agent-oriented actions:

* **Copy page** — copy the page as Markdown for pasting into a prompt.
* **View as Markdown** — open the `.md` variant of the page.
* **Open in ChatGPT / Claude / Cursor** — start a session with the page preloaded as context.
* **Connect MCP** — get the docs MCP server configuration for your client.

## The OpenAPI spec

The API reference is generated from a public OpenAPI spec, downloadable from the [API reference introduction](/docs/api-reference/introduction). The spec is produced from the live endpoint registry, so it cannot drift from the deployed API.

Beyond paths and schemas, each operation declares `x-cactal-required-capability` — the capability an API key needs to call it. Agents can use this to predict, before calling, whether a given key can perform an operation. See [Authentication](/docs/api-reference/authentication) for how roles expand to capabilities.

## Choosing a surface

| You want                                      | Use                                              |
| --------------------------------------------- | ------------------------------------------------ |
| Find the right page for a topic               | `llms.txt`                                       |
| Load all documentation into context           | `llms-full.txt`                                  |
| Read one page cleanly                         | The page URL with `.md` appended                 |
| Ask a question and get an answer with sources | Docs MCP at `https://cactal.ai/docs/mcp`         |
| Read the docs from a product MCP session      | The built-in `docs_search` and `docs_read` tools |
| Exact request and response schemas            | The OpenAPI spec from the API reference          |
| Act on real resources                         | Product MCP at `https://api.cactal.ai/v1/mcp`    |
