Build with Claude Code or Codex
A setup prompt and rules for Claude Code, Codex and other coding agents that write code for the Revdoku API.
Use this page when a coding agent, such as Claude Code, Codex or Cursor, writes
code that calls the Revdoku API: for example, a script that publishes your docs site
or reads its support email. The agent installs the revdoku SDK, and your
application keeps the API key on its backend.
To let your coding agent read your published docs, see
Give your coding agent your docs.
To give an AI app access to your buckets instead, see
Build an app or connect an AI.
Prompt for your coding agent
- Create an API key in the dashboard: open Connect via API and click
Copy API key. The key has full access to all buckets of the account. Publishing
a site and creating buckets need this full access. In a bucket, This bucket creates
a key that can read and write that bucket only. Keep the key out of the chat. - Copy this prompt into your coding agent. Replace the task on the last line.
Build a Revdoku integration in this project. Revdoku publishes API docs from GitHub as docs sites for people and AI agents. Each bucket holds the docs files, publishes them as a site and has a support mailbox, all with an API.
1. Before you write code, read https://docs.revdoku.com/llms.txt and https://docs.revdoku.com/quickstart.md.
2. Install the SDK: `npm install revdoku` for TypeScript or JavaScript, or `pip install revdoku` for Python.
3. Never ask me to paste the API key into this chat. Ask me to put it into this project's .env file as REVDOKU_API_KEY, and check that .env is in .gitignore. Read the key from the environment on the backend only. Never print or commit it.
4. Start with a small script that lists my buckets and prints the id and title of each bucket, and the site url and publish_state of each bucket that has a site. Run it and show me the output.
5. Follow the rules in https://docs.revdoku.com/coding-agents.md#rules-for-agentsmd-or-claudemd and add them to AGENTS.md or CLAUDE.md.
Task: <describe what the integration must do>
Rules for AGENTS.md or CLAUDE.md
Paste this block into the AGENTS.md or CLAUDE.md file of your project. Coding
agents read these files before they change code.
- ------------------
Give your coding agent your docs
Each public docs site that you publish with Revdoku has its own MCP server at <site>/mcp.
It needs no sign-in. Add it to your coding agent, and the agent reads your docs while it writes code.
In Claude Code:
In other clients, add a remote MCP server with the Streamable HTTP transport and the same URL.
Its tools are search_docs, read_page and list_pages. An agent without MCP reads <site>/llms.txt.
See Docs for AI agents.
Where agents find the docs
| Source | Location |
|---|---|
| Index for agents | https://docs.revdoku.com/llms.txt |
| MCP server of these docs, without sign-in | https://docs.revdoku.com/mcp |
| Markdown version of each page | Replace the trailing / of the page URL with .md: https://docs.revdoku.com/quickstart/ → https://docs.revdoku.com/quickstart.md |
| API reference, one page for each resource | https://docs.revdoku.com/api-reference.md, for example https://docs.revdoku.com/api-reference/publications.md |
| SDK guides | https://docs.revdoku.com/sdks/typescript.md and https://docs.revdoku.com/sdks/python.md |
| OpenAPI document | https://docs.revdoku.com/openapi.json |
| Installed TypeScript package | README.md and REFERENCE.md in node_modules/revdoku/, and the type declarations |
| Python package | The docstrings (help(revdoku.Revdoku)), the README on PyPI, and REFERENCE.md in the installed package (python -c "import revdoku, os; print(os.path.dirname(revdoku.__file__))") |
Build an app or connect an AI
| You want | Use | Start here |
|---|---|---|
| Your code (a backend, a script or a worker) calls Revdoku | The SDK or the REST API with an API key | This page and the quickstart |
| AI apps of your readers read your published docs | The MCP server and llms.txt of your docs site, without sign-in |
Docs for AI agents |
| An AI app, such as ChatGPT, Claude or Codex, works with your buckets, sites and email | Hosted MCP with browser sign-in | MCP guide |
| A local AI agent with a shell uses a bucket and stores files | The Revdoku skill and CLI | AI setup |
A coding agent can use more than one: it writes your integration with the SDK,
reads your docs through the MCP server of your docs site, and can work with your
bucket through hosted MCP. Each hosted connection has its own access, which you
approve in Account → Access.