Skip to main content
OpenCode can connect to remote MCP servers from opencode.json or opencode.jsonc. Use this guide to connect OpenCode to the hosted Lightsage MCP endpoint.
1

Get your Lightsage API key

Open the Lightsage dashboard, copy your API key, and store it as LIGHTSAGE_API_KEY:
Do not put your API key in shared project config, screenshots, issue reports, or public repositories.
2

Add Lightsage MCP to OpenCode

Add Lightsage MCP to opencode.json or opencode.jsonc:
3

Verify OpenCode can use Lightsage

Run OpenCode and ask it to use the lightsage MCP server. Use opencode mcp list if you need to inspect connection state.Then run a read-only prompt:
See the OpenCode MCP docs for local and remote server options.