Overview
AI coding assistants can scaffold, implement, and debug Cartesi applications quickly, but without Cartesi-specific context they often guess CLI flags, mix up v1 and v2 APIs, or invent workflows.
Using the right tools, you get faster iteration-handlers, contracts, and frontends from natural-language prompts-and less context switching, with version-aware CLI commands and doc links inline instead of hunting through tabs. This section gives your assistant structured knowledge and tools to build and ship applications quickly and reliably.
How it works
Multiple pieces work together to learn and build with AIs:
- Documentaion: Usage of llms.txt gives your assistant a machine-readable index of all Cartesi docs.
- MCP server: Connects your editor to curated Cartesi docs, repos, articles, and skills.
- Skills: Loads focused instructions (scaffold, backend, frontend, deploy, debug)
- Prompting: Interactive way to put the knowledge and skills of the AI assistant in practice.
Documentation indexing and usage
Cartesi docs publish machine-readable indexes so AI assistants can discover pages and fetch raw Markdown without scraping HTML. Use these files when your client does not have MCP connected, or when you want a lightweight doc dump in context.
Documentation index
Fetch the complete documentation index at: https://docs.cartesi.io/llms.txt
llms.txt lists every indexed page with links to raw Markdown sources, version-priority notes (default to Rollups v2.0), and a documentation map. Agents should read this file first to discover which pages to fetch for a given task.
Per-page Markdown
Any docs page can be fetched as Markdown by appending .md to its URL. For example:
- Page:
https://docs.cartesi.io/cartesi-rollups/2.0/build-with-ai/overview - Source:
https://docs.cartesi.io/cartesi-rollups/2.0/build-with-ai/overview.md
On any docs page, use the Copy page widget in the table of contents sidebar to copy the page as Markdown, open the .md URL directly, or send the link to ChatGPT, Claude, or Gemini. Use this when you need a single page in context instead of the full corpus.
Full documentation file
If your AI tool does not support MCP yet, you can use a static documentation file instead. This gives your assistant the entire Cartesi documentation corpus as one text file.
Download or reference: https://docs.cartesi.io/llms-full.txt
Setup Static Documentation
- Cursor
- Claude Code
- Codex
- Claude Desktop
- VS Code Copilot
Cursor can index external documentation for @docs references in chat.
- Open Cursor Settings → Indexing & Docs → Docs.
- Click Add new doc and paste:
https://docs.cartesi.io/llms-full.txt - In chat, reference the docs source (for example
@docs→ your Cartesi entry) when you want the assistant to ground answers in official documentation.
For live Cartesi-specific tools (CLI commands, skills, repo search), also connect the MCP server.
Claude Code can include static doc files in a session.
- Download the static documentation file from https://docs.cartesi.io/llms-full.txt, or fetch the index at https://docs.cartesi.io/llms.txt and pull individual
.mdpages as needed. - Save the file in your project directory or another known location.
- Reference it in chat with
/reador by attaching the file path so Claude Code has Cartesi documentation for that session.
For ongoing work, add the Cartesi MCP server to your project's .mcp.json (see MCP server) so lookups stay current without re-downloading llms-full.txt.
Codex CLI loads an AGENTS.md file from your project root into context for every session.
-
Download the static documentation file to your project:
curl -fSL https://docs.cartesi.io/llms-full.txt -o docs/cartesi-llms-full.txt -
Add a pointer in
AGENTS.mdat the repo root so Codex grounds answers in Cartesi docs:# Cartesi context
This project targets **Cartesi Rollups v2**. When answering questions or
generating code:
- Read `docs/cartesi-llms-full.txt` for the full Cartesi documentation corpus.
- Default to `/cartesi-rollups/2.0/` routes; do not surface v1.x APIs unless asked.
- Prefer fetching individual pages from `https://docs.cartesi.io/<path>.md` when
you need fresh, focused context. -
In a session, reference the file directly with
@docs/cartesi-llms-full.txtwhen you want the assistant to ground a specific answer in docs.
For live tooling, also connect the MCP server.
Claude Desktop supports Projects with persistent knowledge files.
-
Download the static documentation file: https://docs.cartesi.io/llms-full.txt
-
In Claude Desktop, create a new Project (for example, "Cartesi Rollups v2").
-
Open Project knowledge and upload
llms-full.txt(rename tocartesi-llms-full.txtif you keep multiple sources). -
Add a short Project instructions entry such as:
Default to Cartesi Rollups v2.0. Use the attached
cartesi-llms-full.txtas the source of truth. Do not surface v1.x APIs unless explicitly asked. -
Start a new chat inside the project; Claude will ground answers in the uploaded docs.
For live tools (CLI commands, skills, repo search), connect the MCP server in Claude Desktop's MCP config.
GitHub Copilot in VS Code reads custom instructions from .github/copilot-instructions.md and lets you attach files to chat with #file:.
-
Download the static documentation file into your repo:
curl -fSL https://docs.cartesi.io/llms-full.txt -o docs/cartesi-llms-full.txt -
Create
.github/copilot-instructions.md(or extend the existing one) with a Cartesi grounding block:This repository builds on **Cartesi Rollups v2**.
- Use `docs/cartesi-llms-full.txt` as the source of truth for Cartesi APIs,
CLI commands, and deployment.
- Default to `/cartesi-rollups/2.0/` routes; ignore v1.x guidance unless asked.
- When generating CLI steps, prepare commands for the user to run locally. -
In Copilot Chat, attach the file on demand with
#file:docs/cartesi-llms-full.txtwhen you want the assistant to cite specific Cartesi docs.
For live, version-aware tooling, also connect the MCP server via VS Code's MCP support.
Alternatively, you can use the Cartesi MCP server to get the latest documentation and skills.
Best Practices
AI-assisted development is powerful, but it is not a substitute for good engineering judgment. Treat every generated command, dependency, and deployment step as untrusted until you understand and verify it.
Security
- Never paste private keys, mnemonics, or production secrets into prompts. Use testnet keys, local dev accounts, and environment variables your assistant never sees.
- Review before you run. Agents can propose shell commands, config changes, or contract deployments that look correct but are wrong or harmful. Read diffs and commands before approving them.
- Audit generated code. Especially for Solidity, wallet flows, and anything that moves funds. AI can miss edge cases, use deprecated APIs, or introduce subtle bugs.
- Trust your toolchain. Only install MCP servers, skills, and editor plugins from sources you recognize. A malicious plugin or MCP server could exfiltrate files, env vars, or keys from your machine.
- Limit blast radius. Prefer testnets and disposable wallets for AI-assisted deployment. Do not point agents at mainnet credentials or production infrastructure.
Costs and model quality
- Free or lightweight models are fine for boilerplate and docs lookup, but they hallucinate more often and struggle with multi-step Cartesi workflows.
- Frontier models (paid tiers) are usually better at following skills, chaining CLI steps, and debugging but usage-based billing adds up quickly on long agent sessions.
- Token usage grows fast when you attach large repos, full doc dumps, or long chat histories. Scope context to what the task needs.
Agent access and sandboxing
- Agents may read and write files, run terminals, and call MCP tools depending on your client settings. Understand what your editor allows before enabling auto-run or broad file access.
- Use sandboxing where your client supports it: restrict network access, require approval for terminal commands, and avoid giving an agent unrestricted access to your home directory or
.envfiles. - The Cartesi MCP server is read-only, but other MCP servers or built-in tools in your client may not be. Review every MCP server you connect.
- Separate dev from production. Do not run AI agents in directories that contain production keys, customer data, or unreleased IP you cannot afford to leak.
Other limitations
- Models can still guess. Even with the Cartesi MCP server and skills, assistants may mix API versions, invent flags, or skip steps. Cross-check against official docs.
- Early-release tooling. Cartesi Skills and the MCP server are evolving; expect gaps, breaking changes, and incomplete coverage.
- You own the outcome. AI speeds up scaffolding and iteration; shipping safely still requires tests, manual review, and your own deployment discipline.