Build with AI
Cyan’s docs and API are built to work with AI coding agents like Claude Code, Cursor and Codex. Give your agent the docs, and it can write the integration with you.
Before you start
Section titled “Before you start”Two steps need a person. Do them once in the Cyan app:
- Connect your Stripe account.
- Create an API key and put it in your project’s environment as
CYAN_API_KEY.
Keep the key out of the chat. Your agent only needs to know the variable’s name.
Start with one prompt
Section titled “Start with one prompt”Paste this into your agent:
Read https://docs.cyan.cash/llms-full.txt, then add a Cyan checkout to our chat.Give your agent the docs
Section titled “Give your agent the docs”Every page of these docs is published as plain text, in the formats agents read best.
| File | What’s in it |
|---|---|
/llms.txt |
A short description of Cyan, with links to the files below. |
/llms-full.txt |
Every page of these docs in one Markdown file. |
/llms-small.txt |
A trimmed version, for agents with less room. |
/openapi.json |
The API as an OpenAPI 3.1 document. |
Connect the docs over MCP
Section titled “Connect the docs over MCP”With the docs connected as an MCP server, your agent searches them and reads only the pages it needs, instead of loading everything at once. The server is read-only and needs no key.
https://docs.cyan.cash/mcpRun this in your project:
claude mcp add --transport http cyan-docs https://docs.cyan.cash/mcpAdd this to .cursor/mcp.json in your project:
{"mcpServers": { "cyan-docs": { "url": "https://docs.cyan.cash/mcp" }}}Add the server to your agent’s MCP settings as an HTTP server:
{"mcpServers": { "cyan-docs": { "type": "http", "url": "https://docs.cyan.cash/mcp" }}}Your agent gets three tools:
| Tool | What it does |
|---|---|
search_docs |
Finds the pages that match a question. |
read_page |
Returns one page as Markdown, or the OpenAPI spec. |
list_pages |
Lists every page with a one-line description. |