Cursor
Setup Cursor to correctly generate Avo code based on your prompt.
Quick use
Paste the docs link in the chat window with your prompt and Cursor's web search will fetch it.
bash
Read https://docs.avohq.io/3.0/docs-map.md and use it as a reference for Avo code.Custom docs
- In the chat window type
@Docs - Choose
Add new doc - Paste this:
https://docs.avohq.io/3.0/docs-map.md - Now in chat window you can type
@Docsand chooseAvoto provide Avo's docs to Cursor.
Project-level permanent setup
Cursor reads the AGENTS.md file from your repository. Add a line pointing to Avo's docs:
bash
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:
bash
curl -L https://docs.avohq.io/3.0/docs-map.md --create-dirs -o docs/avo-docs-map.mdMCP server
MCP is an API to communicate with AI models. You can add MCP servers and Cursor will communicate with them to get more accurate results.
I suggest using Context7 MCP server which provides many libraries including Avo's docs.
Add this to .cursor/mcp.json in your project (or ~/.cursor/mcp.json to enable it globally):
json
// .cursor/mcp.json
{
"mcpServers": {
"Context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp@latest"]
}
}
}Now in Agent Mode you can ask AI anything about Avo, and write use context7 at the end of your prompt.
For example:
bash
create a new Avo resource for a product model. use context7