OpenCode
The command and the Windows form are explained in The command to give your agent.
Add the server
The simplest way is OpenCode's own command, run in your project folder. Add --global to make the server available in every project:
opencode mcp add askrgarden -- /Applications/AskrGarden.app/Contents/MacOS/askrgarden-cli mcp --root /Users/you/treesOn Windows:
opencode mcp add askrgarden -- C:\Users\you\AppData\Local\Programs\AskrGarden\askrgarden-cli.exe mcp --root C:\Users\you\TreesThe entry it writes in the project configuration has this shape. In OpenCode the command and its arguments are one array, and a local server has "type": "local":
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"askrgarden": {
"type": "local",
"command": ["/Applications/AskrGarden.app/Contents/MacOS/askrgarden-cli", "mcp", "--root", "/Users/you/trees"],
"environment": {}
}
}
}
}Other fields: cwd, timeout, and disabled to keep the entry without connecting it.
Check the file it wrote
OpenCode's documentation describes this newer layout, with the servers under mcp.servers. Older OpenCode versions put each server directly under mcp with an enabled field. If you write the file by hand, compare with what opencode mcp add writes on your version.
Check it
opencode mcp list lists the server; /mcps inside OpenCode shows it.
Source: OpenCode: MCP servers.