Skip to content

Commit 7ae1a77

Browse files
committed
docs: replace Claude Desktop with OpenCode in MCP client setup
1 parent c538cc7 commit 7ae1a77

2 files changed

Lines changed: 42 additions & 8 deletions

File tree

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

README_CN.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)