From 0896164442e340c234f37437cae11ebc65b139f5 Mon Sep 17 00:00:00 2001 From: Giancarlo Erra Date: Sun, 5 Apr 2026 11:30:04 +0100 Subject: [PATCH] docs: add OpenCode setup instructions to README Closes #18 --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 96257ef..f201c14 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,20 @@ claude mcp add socraticode -- npx -y socraticode > **Updating:** `npx` caches the package after the first run. To get the latest version, clear the cache and restart your MCP host: `rm -rf ~/.npm/_npx && claude mcp restart socraticode`. Alternatively, use `npx -y socraticode@latest` in your config to always check for updates on startup (slightly slower). +**OpenCode** — add to your `opencode.json` (or `opencode.jsonc`): + +```json +{ + "mcp": { + "socraticode": { + "type": "local", + "command": ["npx", "-y", "socraticode"], + "enabled": true + } + } +} +``` + **OpenAI Codex CLI** — add to `~/.codex/config.toml`: ```toml