OpenCode
OpenCode auto-detects OAuth on 401 (DCR). Add a remote server and run `opencode mcp auth unitpost`.
Add the remote server
Put this in
~/.config/opencode/opencode.jsonc(or projectopencode.json). No key to copy. Your client opens Unitpost in the browser — pick a workspace, approve the scopes, and you're connected. Tokens refresh automatically.JSON{ "$schema": "https://opencode.ai/config.json", "mcp": { "unitpost": { "type": "remote", "url": "https://mcp.unitpost.com/mcp", "oauth": {} } } }Authenticate
Restart OpenCode, then run
opencode mcp auth unitpost(or wait for the first tool call). Complete the browser approval.Verify
Run
opencode mcp list. unitpost should show connected.Send a test
Ask the agent to send a test email from a verified domain and confirm it in Unitpost Activity.
No browser on this machine? For headless setups, CI, SSH, or clients that can only paste a key, use the API-key setup instead.