sandraschi

opencode-cli-mcp

Community sandraschi
Updated

MCP server that wraps opencode CLI's HTTP API (opencode serve) into MCP tools, plus a webapp dashboard.

opencode-cli-mcp

MCP server that wraps opencode CLI's HTTP API (opencode serve) into MCP tools, plus a SOTA fleet webapp dashboard.

Architecture

Clients (MCP hosts)  โ†’  opencode-cli-mcp (FastMCP 3.2)
                             โ†• HTTP
                         opencode serve (port 4096)
  • MCP Server (stdio): Exposes 9 tools for agent run, session management, and server status
  • FastAPI Bridge (port 10951): REST API for the webapp + capability introspection
  • Vite Webapp (port 10950): SOTA fleet-standard dashboard

Prerequisites

  • opencode โ€” npm i -g opencode-ai
  • Python 3.12+ with uv
  • Node.js 18+ with npm

Quick Start

.\start.ps1

This starts opencode serve, the API backend, and the webapp frontend.

Or run individually:

uv run -m opencode_cli_mcp.server    # MCP server (stdio)
uv run -m api.main                   # API backend (port 10951)
cd web_sota && npm run dev           # Frontend (port 10950)

MCP Tools

Tool Description
opencode_run_agent Run an agent non-interactively with a prompt
opencode_list_sessions List all active/recent sessions
opencode_get_session Get detailed session info
opencode_export_session Export session as JSON
opencode_send_message Send message to a running session
opencode_get_messages Retrieve session transcript
opencode_server_status Check server health and status
opencode_list_providers List configured LLM providers
opencode_get_project Get current project context

Ports

Port Service
10950 Frontend (Vite)
10951 Backend (FastAPI)
4096 opencode serve

License

MIT

MCP Server ยท Populars

MCP Server ยท New

    chinawsb

    Daofy for Delphi

    Daofy for Delphi โ€” MCP Server that compiles Delphi projects and queries knowledge base for AI assistants.

    Community chinawsb
    heymrun

    Heym

    Self-hosted AI workflow automation platform with visual canvas, agents, RAG, HITL, MCP, and observability in one runtime.

    Community heymrun
    Wide-Moat

    Open Computer Use

    MCP server that gives any LLM its own computer โ€” managed Docker workspaces with live browser, terminal, code execution, document skills, and autonomous sub-agents. Self-hosted, open-source, pluggable into any model.

    Community Wide-Moat
    uarlouski

    ๐Ÿš€ TestRail MCP Server

    AI-native MCP server connecting Claude, Cursor, Windsurf, and other AI assistants to TestRail โ€” manage test cases, runs, and results through natural-language conversation, with typed schemas built for LLMs.

    Community uarlouski
    metabase

    Metabase MCP Server

    The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

    Community metabase