execute_opencode_command
Execute any OpenCode CLI command with full flexibility
How to use it
execute_opencode_command is exposed by the Opencode MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the execute_opencode_command tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
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