Skip to main content
OpenCode is an open-source AI coding assistant that runs in your terminal. You can connect it to TryPost’s MCP server to manage your social media scheduling with natural language.

Prerequisites

Setup

1

Open the configuration file

Edit opencode.json in your project root (or ~/.config/opencode/opencode.json for global config):
{
  "mcp": {
    "trypost": {
      "type": "remote",
      "url": "https://app.trypost.it/mcp/trypost",
      "enabled": true
    }
  }
}
No Authorization header — OpenCode discovers OAuth from the URL.
2

Sign in via mcp login

Run the OAuth flow explicitly so OpenCode caches the token:
opencode mcp login trypost
OpenCode opens your browser to TryPost; approve the request and return to the terminal.
3

Verify the connection

Inside OpenCode, ask:
List all my TryPost social accounts
If anything looks off, opencode mcp debug trypost prints the current token state.
OpenCode also supports opencode mcp logout trypost to revoke the cached token if you need to switch accounts.
For CI or non-interactive setups, skip mcp login and use a Personal Access Token in the config:
{
  "mcp": {
    "trypost": {
      "type": "remote",
      "url": "https://app.trypost.it/mcp/trypost",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      },
      "enabled": true
    }
  }
}
Create the key from Settings > API Keys on the TryPost dashboard.

Example prompts

Create a post for tomorrow at 9am
Show me all my signatures
Create a label called "Newsletter" with color #8b5cf6