- MCP
- CLI
Use If your credentials aren’t loaded from a Restart OpenCode after editing the config so it picks up the new server.OpenCode calls
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 youropencode.json. OpenCode reads it when you open the project.opencode.json
.env file, pass them under environment:opencode.json
Usage
Once connected, OpenCode can call Corsair tools directly:list_operations to discover available endpoints, get_schema to inspect parameters, then run_script to execute.