---
title: "Reading with an agent"
description: "Give an agent these docs: a short index, Markdown for every page, and a read-only MCP server with search and fetch."
url: https://app.visacli.sh/docs/reading-with-an-agent
updated: 2026-11-20
---

# Reading with an agent

> Give an agent these docs: a short index, Markdown for every page, and a read-only MCP server with search and fetch.

Canonical: https://app.visacli.sh/docs/reading-with-an-agent. Updated: 2026-11-20. Full index: /llms.txt.

Everything here can be read without a browser. While the docs are private, the site accepts the agent token you were given in either of two forms: an `Authorization: Bearer <token>` header, or `?key=<token>` on the URL. Both work on every file below and on the MCP server. Without the token, you get an error or a sign-in page instead of the file. The installer at `https://app.visacli.sh/cli` isn't a docs file, so it needs no token.

## The index

`/llms.txt` lists every page, one line each, as a link followed by a short note. Guides say what they cover, and API operations give their method and path. `/llms-full.txt` is all of the docs in one file. Links work as printed: when you fetch `/llms.txt`, `/llms-full.txt`, `/sitemap.md`, `/AGENTS.md`, `/agent-skill`, `/.well-known/api-catalog` or any page's `.md` with a key, in the header or the query, every link to these docs in the answer carries the same `?key=`. The MCP server's `fetch` does the same when it's called with a key. Opened in a signed-in browser instead, the files keep their links as written, with no key added.

## Any page as Markdown

Add `.md` to a page's address, or send `Accept: text/markdown` to the page's own address. Diagrams are in the Markdown as numbered text.

```sh
curl -H "Authorization: Bearer <token>" \
  "https://app.visacli.sh/docs/verify-a-signed-request.md"
```

## Everything an agent can read

| What               | Where                                                                                                 | What it is                                                                                                                                                                                                                                                                                                                                |
| ------------------ | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Index              | `/llms.txt`, also at `/.well-known/llms.txt`                                                          | Every page, one line each                                                                                                                                                                                                                                                                                                                 |
| All pages          | `/llms-full.txt`                                                                                      | The whole site as one Markdown file                                                                                                                                                                                                                                                                                                       |
| Verifier decisions | `/llms-verifier.txt`                                                                                  | Only what a verifier decides, in one short file: hosts, the `Signature-Agent` allowlist, every refusal with its code and status, accepted TRIDs, caching, payouts and what never to trust                                                                                                                                                 |
| One page           | `/docs/<page>.md`, or `Accept: text/markdown`                                                         | One page, starting with frontmatter that gives its title, description, canonical address and date                                                                                                                                                                                                                                         |
| Sitemap            | `/sitemap.md`                                                                                         | Every page with the date it last changed                                                                                                                                                                                                                                                                                                  |
| Site guide         | `/AGENTS.md`                                                                                          | What this site is and where each of these files is                                                                                                                                                                                                                                                                                        |
| Docs MCP           | `/mcp`, described at `/.well-known/mcp` and by its server card at `/.well-known/mcp/server-card.json` | Read-only `search` and `fetch`                                                                                                                                                                                                                                                                                                            |
| API catalog        | `/.well-known/api-catalog`                                                                            | The APIs these docs describe, as a linkset                                                                                                                                                                                                                                                                                                |
| Skill              | `/agent-skill`                                                                                        | How verification works, in one short file                                                                                                                                                                                                                                                                                                 |
| Operations map     | `/visa.lom.json`                                                                                      | Depends on the host. On `app.visacli.sh` it's Visa CLI's operations map for its own agents, served by the Visa CLI app, not by these docs. On the docs' own address it's the docs' map for verifiers, as JSON: four operations, verify a signed request, read a key, recheck before paying and test a verifier, linking to `/agent-skill` |
| `/skill.md`        | `/skill.md`                                                                                           | Depends on the host. On `app.visacli.sh` it's Visa CLI's skill for its own agents: how an agent running Visa CLI connects, pays and earns, served by the Visa CLI app. On the docs' own address it's the same file as `/agent-skill`, byte for byte                                                                                       |
| Test vectors       | `/conformance/tap-http-request-v1.json`                                                               | The cases on [Test your verifier](/docs/conformance.md)                                                                                                                                                                                                                                                                                      |
| OpenAPI            | `/visa-public-openapi.json`                                                                           | Visa's public OpenAPI for the VMRS operations                                                                                                                                                                                                                                                                                             |

Every response's `Link` header names `/llms.txt`, as `llms-txt` and as `describedby`, along with `/llms-full.txt`, `/visa.lom.json` and `/agent-skill`. On an HTML page it also names that page's Markdown. On a Markdown page it names the page itself and the HTML page as `canonical`. The home page's header adds `sitemap`, `service-doc` and `api-catalog`. Every HTML page's `<head>` has a canonical link, an Open Graph title and description, and links to `/llms.txt`, the operations map and the page's Markdown. A missing Markdown page answers `404` with the nearest pages. Pages that support WebMCP register the same read-only search, page and operations-map tools in the browser.

## The docs MCP

The MCP server has two read-only tools. `search` takes a query and returns matching sections, with their page slug and anchor. It searches whole sections, including every table row and the names in code examples, so a refusal code, field or term finds the section that defines it. A route, with or without its method, such as `GET /vars/v1/agents/{agentId}/keys`, returns that endpoint's reference page first, and so does a page's exact title or slug, such as `List Keys` or `list-keys`. `fetch` takes a slug and returns the page as Markdown, with the same frontmatter as the `.md` page. It can't sign, pay or change anything.

```json title="MCP config"
{
  "mcpServers": {
    "visa-cli-docs": {
      "type": "http",
      "url": "https://app.visacli.sh/mcp",
      "headers": { "Authorization": "Bearer <token>" }
    }
  }
}
```

To try it from a terminal:

```sh
curl -X POST "https://app.visacli.sh/mcp" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search","arguments":{"query":"tap_replayed"}}}'
```
