OpenCode MCP Setup
The fastest way to use Yavy with OpenCode is the CLI. Search your docs and generate Skills. For real-time access, connect via MCP.
Quick Start with CLI
Install the CLI, authenticate, and search. No MCP setup required.
terminal
npm install -g @yavydev/cli && yavy initterminal
yavy search "your query"MCP Configuration
Add the Yavy MCP server to your OpenCode configuration:
opencode.json
{
"mcp": {
"yavy": {
"type": "remote",
"url": "https://yavy.dev/mcp/your-org/your-project"
}
}
}Setup Steps
- 1
Create or open the configuration file:
Global:~/.config/opencode/opencode.jsonProject:opencode.json - 2Copy the configuration above and merge it into your
opencode.jsonfile - 3Restart OpenCode for changes to take effect