Set up OpenCode
A remote MCP entry in opencode.json.
The fastest route is still the paste: the agent runs these steps itself.
By hand
1. Add the server to OpenCode's config
Global: ~/.config/opencode/opencode.json. Per project: opencode.json in the repository. OpenCode expands {env:NAME} from your shell, so export SUPERBOOKS_API_KEY (a key from https://app.superbooks.io/settings/developer) and the file never holds the secret.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"superbooks": {
"type": "remote",
"url": "https://api.superbooks.io/mcp",
"enabled": true,
"headers": {
"Authorization": "Bearer {env:SUPERBOOKS_API_KEY}"
}
}
}
}Verify
Running /mcp inside OpenCode lists superbooks as connected, and asking it to call the SuperBooks team_get tool returns your team's name.
What the agent can do
45 tools, gated by the credential's scopes: a Read Only key sees the read tier only, and destructive tools need two separate approvals. See Authentication and the API reference.
OpenCode sends a static header, so it uses an API key from https://app.superbooks.io/settings/developer. The raw instructions the agent executes are at /agent-setup/prompt.md; all guides are listed at Onboard your agent.