<!-- Generated from the canonical OpenPost public page. Do not edit this build artifact. -->

Title: Connect OpenCode
Description: Add OpenPost to OpenCode using remote MCP and OAuth.
Canonical: https://openpo.st/docs/mcp/opencode
Source: [https://openpo.st/docs/mcp/opencode](https://openpo.st/docs/mcp/opencode)

# Connect OpenCode

Add OpenPost as a remote server in OpenCode. OpenCode can open the browser sign-in when it first reaches a server that requires OAuth.

## Configure the server

Merge this entry into your OpenCode configuration, such as `opencode.json`:

```json
{
  "mcp": {
    "openpost": {
      "type": "remote",
      "url": "https://app.openpo.st/mcp"
    }
  }
}
```

The server name belongs directly under `mcp`. OpenCode's current [MCP configuration guide](https://dev.opencode.ai/docs/mcp-servers/) uses this shape for remote servers.

## Authorize and test

```sh
opencode mcp auth openpost
opencode mcp list
```

Complete OpenPost's consent with read-only access for reviews or full access for changes. Start a session and ask, "List my OpenPost workspaces," then request the schedule for a named workspace.

## If it does not connect

Use `opencode mcp debug openpost` to investigate authentication. Re-run `opencode mcp auth openpost` if your login expired. Check that the URL ends in `/mcp` and is reachable from the machine running OpenCode.

See [OpenCode MCP configuration](https://dev.opencode.ai/docs/mcp-servers/) for the current schema.
