OpenCode

Zenifra supports automatic public-client registration for both formats. Do not add clientId, clientSecret, client_id, or client_secret to the configuration.

OpenCode 1.x

For OpenCode 1.x, including the 1.18 series, add the remote server directly inside mcp:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "zenifra": {
      "type": "remote",
      "url": "https://mcp.zenifra.com/mcp",
      "enabled": true
    }
  }
}

Start authentication and confirm the status from the terminal:

opencode mcp auth zenifra
opencode mcp list

The browser flow selects the Zenifra organization, resources, and access for the connection. The OpenCode 1.x server is ready only after opencode mcp list reports that it is connected.

OpenCode V2

For OpenCode V2, use mcp.servers.zenifra:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "zenifra": {
        "type": "remote",
        "url": "https://mcp.zenifra.com/mcp"
      }
    }
  }
}

The official OpenCode V2 reference uses the MCP management interface to authenticate remote servers. Open that interface, start authentication for the Zenifra server, and complete OAuth in the browser. The flow selects the Zenifra organization, resources, and access for the connection. The OpenCode V2 server is ready only after the V2 MCP interface reports that it is connected.

See the official OpenCode MCP server reference and the official OpenCode V2 reference for configuration and authentication details.

Last updated on

On this page