Skip to content
Agent Process
All agents

Connect OpenCode

One block of settings gives OpenCode your processes, the data and email templates you've allowed, and a way to wait for your approval.

Setup

  1. Get your address and an access token

    In your workspace, open Agents and create an access token. The page shows your exact MCP address and fills it, and the token, into these settings for you. Tokens are shown once, so keep yours somewhere safe.

  2. Add this to opencode.json in a project, or ~/.config/opencode/opencode.json, and set PROCESS_FLOW_TOKEN to your access token.

    Configuration
    {
      "$schema": "https://opencode.ai/config.json",
      "mcp": {
        "process-flow": {
          "type": "remote",
          "url": "https://<your-mcp-endpoint>/mcp",
          "enabled": true,
          "oauth": false,
          "headers": {
            "Authorization": "Bearer {env:PROCESS_FLOW_TOKEN}"
          }
        }
      }
    }
  3. Check it's connected

    Ask OpenCode: “What processes can you see?” It should list the published processes in your workspace. If it can't reach the server, check the address and that the token hasn't been revoked.

OpenCode's MCP documentation

This setup is written from OpenCode's own MCP documentation.