OpenCode Configuration OpenCode has introduced a new configuration format that enables LSP, MCP tools, plugins, formatter, and agent settings. The configuration supports local and remote MCP tools like shadcn, better-auth, and bun, and includes permission and shell options. | { | | | "$schema": "https://opencode.ai/config.json", | | | "lsp": true, | | | "mcp": { | | | "shadcn": { | | | "type": "local", | | | "command": "npx", "shadcn@latest", "mcp" , | | | "enabled": true | | | }, | | | "better-auth": { | | | "type": "remote", | | | "url": "https://mcp.better-auth.com/mcp", | | | "enabled": true | | | }, | | | "bun": { | | | "type": "remote", | | | "url": "https://bun.com/docs/mcp", | | | "enabled": true | | | } | | | }, | | | "plugin": "@tarquinen/opencode-dcp@latest" , | | | "formatter": true, | | | "permission": { | | | "question": "allow" | | | }, | | | "shell": "pwsh", | | | "agent": { | | | "build": { | | | "temperature": 0.2 | | | }, | | | "plan": { | | | "temperature": 0.1 | | | } | | | } | | | } |