Codex
Setup OpenAI Codex to correctly generate Avo code based on your prompt.
Quick use
Paste the docs link in your prompt and ask Codex to read it before generating code. Codex's web search returns snippets rather than full pages, so for reliable results run it with --search — or better, use the permanent setup below.
Read https://docs.avohq.io/3.0/docs-map.md and use it as a reference for Avo code.Permanent setup
Codex reads the AGENTS.md file from your repository. Add a line pointing to Avo's docs:
When working with Avo, use the docs at https://docs.avohq.io/3.0/docs-map.md as a reference.Or save the docs in your repo and reference the file from AGENTS.md:
curl -L https://docs.avohq.io/3.0/docs-map.md --create-dirs -o docs/avo-docs-map.mdMCP server
MCP (Model Context Protocol) connects coding agents to external tools and context. Codex can use MCP servers to look up documentation while working.
I suggest using Context7 MCP server which provides many libraries including Avo's docs.
Run this command to add it:
codex mcp add context7 -- npx -y @upstash/context7-mcpOr add it manually to ~/.codex/config.toml:
[mcp_servers.context7]
command = "npx"
args = ["-y", "@upstash/context7-mcp"]Now you can ask Codex anything about Avo, and write use context7 at the end of your prompt.
For example:
create a new Avo resource for a product model. use context7