Windsurf
Setup Windsurf to correctly generate Avo code based on your prompt.
Quick use
In chat window type this and write your prompt.
bash
@web https://docs.avohq.io/3.0/docs-map.mdPermanent setup
Windsurf 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.MCP server
MCP is an API to communicate with AI models. You can add MCP servers and Windsurf will communicate with them to get more accurate results.
I suggest using Context7 MCP server which provides many libraries including Avo's docs.
Press ⌘ CMD+⇧ Shift+P (or ⌃ Ctrl+⇧ Shift+P on Windows)
Type
Windsurf: Configure MCP ServersClick
Add custom serverAdd this:
json
// mcp_config.json
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp@latest"]
}
}
}- Fully quit and reopen Windsurf so the server loads.
Now 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