Skip to main content
Use runStdioMcpServer to expose Corsair as a local MCP server that OpenCode spawns on demand.

Install

Create the server script

mcp-server.ts

Configure OpenCode

Add a local MCP server to your opencode.json. OpenCode reads it when you open the project.
opencode.json
If your credentials aren’t loaded from a .env file, pass them under environment:
opencode.json
Restart OpenCode after editing the config so it picks up the new server.

Usage

Once connected, OpenCode can call Corsair tools directly:
OpenCode calls list_operations to discover available endpoints, get_schema to inspect parameters, then run_script to execute.