Connecting services and preparing your dashboard.
OpenCode uses a remote MCP server entry with the hosted Zephex URL only. There is no Bearer header in the config: OpenCode discovers the OAuth-protected resource, opens the browser flow, and stores the token automatically.
OVERVIEW
OpenCode is an open-source terminal AI coding agent built by the SST team with 140K+ GitHub stars and 6.5M monthly active developers. It supports 75+ AI model providers and uses the standard MCP remote server protocol for tool integrations. Zephex connects via the `type: remote` SSE transport with OAuth handled automatically through Dynamic Client Registration, so the config only contains the URL.
CONFIG FILE LOCATION
~/.config/opencode/opencode.json. This is a global config. There is no per-project config file for OpenCode MCP servers.
Paste the JSON exactly as shown. Keep the server name as `zephex`. The config contains only the URL because OpenCode expects OAuth discovery instead of a pasted Bearer key.
Do not add an Authorization header to this config. When OpenCode connects without one, it hits Zephex's `/.well-known/oauth-protected-resource` metadata, opens the browser sign-in flow, and stores the token automatically.
{ "$schema": "https://opencode.ai/config.json", "mcp": { "zephex": { "type": "remote", "url": "https://zephex.dev/mcp" } }}Verify the server from inside an OpenCode session before relying on it in normal prompts.
This is expected. OpenCode remote MCP uses SSE transport. Zephex serves both SSE and Streamable HTTP from the same `/mcp` endpoint, so you do not need to change the config.
Run `opencode mcp auth zephex` manually to trigger the OAuth browser flow.
OpenCode may still be using an old stored Bearer credential instead of the OAuth token for Zephex. Clear the saved Zephex MCP auth in OpenCode, make sure your config does not include an Authorization header or API key, then run `opencode mcp auth zephex` again to force a fresh OAuth login.
Dynamic Client Registration usually failed. Update to the latest OpenCode version and try again. Older builds may not support DCR correctly.
Re-run `opencode mcp auth zephex` to refresh the stored token.
If the editor still does not connect, return to Quickstart or check Connection Issues.