Skip to navigation

Connect Flockx to OpenCode

Add the Flockx MCP server to OpenCode and sign in with one command.

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:

{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"flockx": {
"type": "remote",
"url": "https://mcp.flockx.io/mcp"
}
}
}
}

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 mcp auth flockx

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:

{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"flockx": {
"type": "remote",
"url": "https://mcp.flockx.io/mcp",
"headers": {
"X-Organization": "your-organization-id"
}
}
}
}
}

Ask “which Flockx organizations can I use?” to get the ids. See Organizations and permissions.

Next steps