File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -146,11 +146,27 @@ Edit `~/.config/opencode/opencode.json`:
146146
147147``` json
148148{
149+ "$schema" : " https://opencode.ai/config.json" ,
149150 "mcp" : {
150- "servers" : {
151- "autocode" : {
152- "command" : " autocode-mcp"
153- }
151+ "autocode" : {
152+ "type" : " local" ,
153+ "command" : [" autocode-mcp" ],
154+ "enabled" : true
155+ }
156+ }
157+ }
158+ ```
159+
160+ Or use ` uvx ` without pre-installation:
161+
162+ ``` json
163+ {
164+ "$schema" : " https://opencode.ai/config.json" ,
165+ "mcp" : {
166+ "autocode" : {
167+ "type" : " local" ,
168+ "command" : [" uvx" , " autocode-mcp" ],
169+ "enabled" : true
154170 }
155171 }
156172}
Original file line number Diff line number Diff line change @@ -140,15 +140,33 @@ stress_test_run(problem_dir="problems/ab", trials=100)
140140}
141141```
142142
143- ### Claude Desktop
143+ ### OpenCode
144144
145- 编辑 ` ~/Library/Application Support/Claude/claude_desktop_config .json ` (macOS)或 ` %APPDATA%\Claude\claude_desktop_config.json ` (Windows) :
145+ 编辑 ` ~/.config/opencode/opencode .json ` :
146146
147147``` json
148148{
149- "mcpServers" : {
149+ "$schema" : " https://opencode.ai/config.json" ,
150+ "mcp" : {
150151 "autocode" : {
151- "command" : " autocode-mcp"
152+ "type" : " local" ,
153+ "command" : [" autocode-mcp" ],
154+ "enabled" : true
155+ }
156+ }
157+ }
158+ ```
159+
160+ 或使用 ` uvx ` 无需预安装:
161+
162+ ``` json
163+ {
164+ "$schema" : " https://opencode.ai/config.json" ,
165+ "mcp" : {
166+ "autocode" : {
167+ "type" : " local" ,
168+ "command" : [" uvx" , " autocode-mcp" ],
169+ "enabled" : true
152170 }
153171 }
154172}
You can’t perform that action at this time.
0 commit comments