JetBrains IDEs
Setup JetBrains AI Assistant and Junie to correctly generate Avo code based on your prompt in RubyMine and other JetBrains IDEs.
Quick use
Use the /web command in the AI chat to make it fetch the docs, then write your prompt.
/web Read https://docs.avohq.io/4.0/docs-map.md and use it as a reference for Avo code.Permanent setup
Junie reads the .junie/AGENTS.md file from your repository (the older .junie/guidelines.md still works too). Add a line pointing to Avo's docs:
When working with Avo, use the docs at https://docs.avohq.io/4.0/docs-map.md as a reference.Or save the docs in your repo and reference the file from .junie/AGENTS.md:
curl -L https://docs.avohq.io/4.0/docs-map.md --create-dirs -o docs/avo-docs-map.mdFor the AI Assistant chat, add the same line to a project rules file under .aiassistant/rules/.
MCP server
MCP is an API to communicate with AI models. You can add MCP servers and the AI Assistant will communicate with them to get more accurate results.
I suggest using Context7 MCP server which provides many libraries including Avo's docs.
Go to
Settings→Tools→AI Assistant→Model Context Protocol (MCP)Open the command menu in the top-left corner of the MCP dialog and choose
As JSONPaste this:
{
"mcpServers": {
"Context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
}
}
}Now you can ask the AI Assistant 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