loading…
Search for a command to run...
loading…
Wraps opencode CLI's HTTP API into MCP tools for agent run, session management, and server status, plus a fleet webapp dashboard.
Wraps opencode CLI's HTTP API into MCP tools for agent run, session management, and server status, plus a fleet webapp dashboard.
📖 Installation Guide — quick start, manual setup, and troubleshooting
MCP server wrapping opencode CLI's HTTP API (opencode serve) into 14 FastMCP tools. Also includes a FastAPI REST bridge, a Vite/React fleet-standard dashboard, and OpenCode custom tools that extend opencode itself.
Pattern: Plan with Claude, implement with opencode. Claude (expensive, high-judgment) orchestrates and supervises; opencode handles implementation grunt work on cheaper models (DeepSeek V4 Flash/Pro).
git clone https://github.com/sandraschi/opencode-cli-mcp
cd opencode-cli-mcp
just
This opens an interactive dashboard showing all available commands. Run just bootstrap to install dependencies, then just serve or just dev to start.
If you don't have just installed:
opencode CLI: npm i -g opencode-ai.\start.ps1
Starts: opencode serve (:4096) + FastAPI backend (:10951) + Vite frontend (:10950).
uv run -m opencode_cli_mcp.server Configure in Claude Desktop / Cursor / Windsurf (see Integration Guide).
| Tool | Purpose |
|---|---|
opencode_run_agent |
Launch agent (background or blocking) |
opencode_get_run_status |
Poll running agent |
opencode_list_runs |
List all agent runs |
opencode_cancel_run |
Cancel a stuck run |
opencode_list_sessions |
List opencode sessions |
opencode_get_session |
Session details |
opencode_session_diff |
Files changed in a session |
opencode_session_files |
Files touched in a session |
opencode_export_session |
Export session as JSON |
opencode_send_message |
Continue a session |
opencode_get_messages |
Session transcript |
opencode_server_status |
Server health + config |
opencode_list_providers |
Configured LLM providers |
opencode_get_project |
Active project context |
See Usage Guide for full details.
opencode_run_agent(prompt="refactor main.py", wait=false)
-> { job_id: "abc" }
opencode_get_run_status("abc") -> poll until completed
opencode_session_diff("session-xyz") -> review changes
Launch N agents across N repos in parallel, poll all, review diffs. Designed for fleet-wide operations.
Start an agent, read its messages mid-task, send corrections, review final diff.
Copy .opencode/tools/*.ts into your opencode project to give opencode's LLM direct access to MCP fleet management, session inspection, and system diagnostics. 6 tools covering fleet, sessions, runs, system, providers, and tool discovery. See the OC Tools page in the webapp for full documentation and source.
| Doc | Description |
|---|---|
| Usage Guide | All tools, workflows, async patterns, webapp pages |
| Integration Guide | MCP client config (Claude Desktop, Cursor, Windsurf) |
| Advanced Usage | Async patterns, session management, cross-project, custom tools |
| Improvement Plan | Known issues and roadmap |
| Assessment | Architecture review and bug audit |
| Changelog | Version history |
| Port | Service |
|---|---|
| 10950 | Frontend (Vite) |
| 10951 | Backend (FastAPI) |
| 4096 | opencode serve |
This MCP server runs arbitrary shell commands (opencode run) from LLM prompts. Only install in environments where you trust your MCP client (Claude Desktop, Cursor) and the models it uses.
mcp-central-docs: ports 10950/10951fleet-registry.json and glama.json in repo roothttp://localhost:10950 (run .\start.ps1)Выполни в терминале:
claude mcp add opencode-cli-mcp -- npx Да, Opencode Cli MCP бесплатный — установка в один клик через Unyly без оплаты.
Нет, Opencode Cli работает без API-ключей и переменных окружения.
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Открой Opencode Cli на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
CSA PROJECT - FZCO © 2026 IFZA Business Park, DDP, Premises Number 31174 - 001
Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.