Connect Flockx to OpenCode
OpenCode connects to Flockx as a remote MCP server. OAuth is on by default for remote servers, so the only setup is the server address and a sign-in.
1. Add Flockx to your configuration
Add Flockx to your global configuration at ~/.config/opencode/opencode.json to use it everywhere, or to opencode.json in a project to share it with the team:
Older OpenCode releases list servers directly under mcp ("mcp": { "flockx": { "type": "remote", "url": "..." } }). Use the shape your version’s MCP servers documentation shows.
2. Sign in
OpenCode opens a browser for the Flockx sign-in. You can also start the sign-in from inside OpenCode with /mcps.
3. Check that it works
Start OpenCode and ask: “Which Flockx organizations can I use?” OpenCode calls list-organizations and shows each organization and the one in use.
Pin an organization (optional)
If you belong to several Flockx organizations and want every call in a project to use one of them, send the X-Organization header:
Ask “which Flockx organizations can I use?” to get the ids. See Organizations and permissions.