execute_opencode_command
Execute any OpenCode CLI command with full flexibility
How to use it
Project documentation lists execute_opencode_command for the Opencode MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install Opencode MCP
$
pip install -r requirements.txtOther tools in Opencode MCP (5)
opencode_continue_session
Continue an existing OpenCode session
opencode_export_session
Export session data as JSON
opencode_get_status
Check OpenCode CLI availability and status
opencode_list_models
List available models, optionally filtered by provider
opencode_run
Run OpenCode with a simple prompt message