Levirge Brain · install

Install in OpenCode

Add Levirge Brain to OpenCode with one JSON block, then sign in with opencode mcp auth or use a token.

One JSON block, one command.

1 · Add the server

Add this to your opencode.json:

{
  "mcp": {
    "brain": { "type": "remote", "url": "https://brain.levirge.com/mcp", "enabled": true }
  }
}

2 · Sign in

Run this and sign in when the browser opens:

opencode mcp auth brain

3 · Verify

Ask for a read-only call: kb_overview returns your workspace's knowledge summary.

Using a token instead

For machines that cannot open a browser (CI, a server). Get a token first, add a headers line to the block, and skip opencode mcp auth:

{
  "mcp": {
    "brain": {
      "type": "remote",
      "url": "https://brain.levirge.com/mcp",
      "enabled": true,
      "headers": { "Authorization": "Bearer <your-token>" }
    }
  }
}

Troubleshooting

It did not ask me to sign in. Run opencode mcp auth brain. Check the state with opencode mcp list; opencode mcp debug brain shows what failed.

"401" or "Unauthorized" with a token. Check the header is exactly Authorization: Bearer <your-token>, and that the token has not been revoked on Profile → MCP Tokens.

I connected, but there are no Brain tools. Clients read the tool list once, when they connect. Restart OpenCode so it reconnects.

Other clients

Every guide is listed under any MCP client. No workspace yet? Request access.