OpenCode Integration
OpenCode Integration
Section titled “OpenCode Integration”OpenCode (and similar coding tools) can connect to AutoVio via the Model Context Protocol using the AutoVio MCP server.
MCP server command
Section titled “MCP server command”Configure OpenCode to start the AutoVio MCP server as an external process, using the same entry point as other MCP clients:
node /path/to/AutoVio-MCP/dist/index.js \ --autovio-base-url http://localhost:3001 \ --autovio-api-token YOUR_API_TOKEN \ --vision-model gemini-2.0-flash-exp --vision-api-key YOUR_VISION_KEY \ --llm-model gemini-2.5-flash --llm-api-key YOUR_LLM_KEY \ --image-model gemini-2.5-flash-image --image-api-key YOUR_IMAGE_KEY \ --video-model veo-3.0-generate-001 --video-api-key YOUR_VIDEO_KEYSee MCP Setup for all supported flags and environment variables.
Environment-based configuration
Section titled “Environment-based configuration”Alternatively, run the server with env variables:
AUTOVIO_BASE_URL=http://localhost:3001 \AUTOVIO_API_TOKEN=your-token \AUTOVIO_LLM_API_KEY=your-llm-key \node /path/to/AutoVio-MCP/dist/index.jsYou can add additional env variables for vision, image, and video models and keys as needed.
Available tools
Section titled “Available tools”Once OpenCode connects to the MCP server, it can use the same tools documented in MCP Tools Reference, including:
autovio_projects_*— manage projectsautovio_works_*— manage works and run the pipelineautovio_ai_*— direct AI operationsautovio_templates_*— manage templatesautovio_providers_list— discover providers and models
Refer to OpenCode’s MCP documentation for how to register an MCP server; the AutoVio side only requires the command and configuration described here.