Use the docs and the API with an AI tool
Give an AI coding tool our docs, an agent skill and the MCP server.
An AI tool can read these docs and use the API. This section shows how. There are 4 parts. You can use each part alone.
1. Docs for AI tools
/llms.txtis an index of all pages. It has short instructions for an agent: the API base URL, the Bearer key, theApi-Versionheader and the API conventions. The format is described at llmstxt.org./llms-full.txthas the Markdown of all pages in one file.- Each page has a Markdown copy at its URL plus
.md. Example:/docs/quickstart.md. The index pages are/docs.mdand/errors.md. - A request with the header
Accept: text/markdownon a page URL returns the same Markdown. The response has the headerVary: Accept. - Each HTML page has a
link rel="alternate" type="text/markdown"tag that points to its Markdown copy.
curl https://docs.afffast.com/docs/quickstart.md
curl -H "Accept: text/markdown" https://docs.afffast.com/docs/quickstart2. Page actions
Each page has a button "Copy page as Markdown" and a menu "Open". The menu has these actions:
- View as Markdown opens the
.mdcopy. - Open in ChatGPT, Open in Claude and Open in Cursor open the tool with a prompt. The prompt asks the tool to read the Markdown copy of the page.
- Copy MCP install command copies the
claude mcp addcommand for Claude Code. The command reads the key from the environment variableAFFFAST_API_KEY.
3. Agent skill
The skill afffast is a SKILL.md file. It has the API rules and the steps of common tasks. A tool that supports skills loads it when the task fits.
Install it in Claude Code for all your projects:
mkdir -p ~/.claude/skills/afffast
curl -o ~/.claude/skills/afffast/SKILL.md \
https://docs.afffast.com/skills/afffast/SKILL.mdInstall it in Codex for all your projects:
mkdir -p ~/.agents/skills/afffast
curl -o ~/.agents/skills/afffast/SKILL.md \
https://docs.afffast.com/skills/afffast/SKILL.mdFor one repository only, use .claude/skills/afffast/ (Claude Code) or .agents/skills/afffast/ (Codex) in the repository.
The docs site also publishes a skill index for tools that find skills by themselves. The index is at /.well-known/agent-skills/index.json. The same list is at /.well-known/skills/index.json. Each entry has the URL of the skill file and its SHA-256 digest.
4. MCP server
The API has a hosted MCP server at https://api.afffast.com/mcp. An AI tool can call the API as tools. See MCP server for the tools. The server also has the tools search_docs and read_doc. They let the tool search and read these docs. They need no scope. Use one of these guides to install the server:
Keep your key safe
- Put the API key in an environment variable. Never paste a key into a chat or a prompt.
- Use a test key (
sk_test_...) first. A test key reads and writes test data only. - Use a read-only key when the tool must only read. A read-only key has no write tools.
- Revoke a key in the dashboard when you think that a tool or a person saw it.