Verified Commit da2d6b23 authored by Dmitry Gruzd's avatar Dmitry Gruzd 2️⃣ Committed by GitLab
Browse files

docs(mcp): add opencode-specific config example

parent 3a257a1e
Loading
Loading
Loading
Loading
+21 −1
Original line number Diff line number Diff line
@@ -49,7 +49,9 @@ Configure your MCP client to point at `https://gitlab.com/api/v4/orbit/mcp`.

Some clients only support local stdio MCP servers. For those,
[`mcp-remote`](https://www.npmjs.com/package/mcp-remote) wraps the Orbit endpoint
as a local command:
as a local command.

**Claude Code, Cursor, Codex** — add to your agent's MCP config:

```json
{
@@ -62,6 +64,24 @@ as a local command:
}
```

**opencode** — add to `~/.config/opencode/opencode.json`:

```json
{
  "mcp": {
    "gitlab-orbit": {
      "type": "local",
      "command": ["npx", "mcp-remote", "https://gitlab.com/api/v4/orbit/mcp"]
    }
  }
}
```

> [!note]
> opencode requires `"type": "local"` and places command and arguments together
> in a single array. Using a separate `args` field or omitting `type` causes a
> `ConfigInvalidError`.

Authentication uses your existing `glab auth login` session - no token to copy or
paste. Supported clients: Claude Code, OpenCode, Cursor, Codex, Gemini CLI.